/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF3347;
    --secondary-color: #FF6B7A;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --bg-color: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --grid-color: rgba(255, 51, 71, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.trademark {
    font-size: 0.7rem;
    vertical-align: super;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 100px;
    position: relative;
    background: linear-gradient(135deg, #FFE5E8 0%, #FFF5F6 50%, #FAFAFA 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 51, 71, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-decoration {
    position: absolute;
    top: 120px;
    right: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-prefix {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -3px;
}

.hero-title .line {
    display: block;
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-tagline {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--text-color);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translate(4px, -4px);
    box-shadow: -4px 4px 0 var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: white;
    transform: translate(4px, -4px);
    box-shadow: -4px 4px 0 var(--text-color);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.3rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Section Styles */
section {
    padding: 120px 40px;
    position: relative;
    z-index: 10;
}

.section-number {
    position: absolute;
    top: 120px;
    left: 40px;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 51, 71, 0.05);
    line-height: 1;
    z-index: 0;
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4rem;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text .large-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

.projects-grid {
    display: grid;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.project-number {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 51, 71, 0.1);
    line-height: 1;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--bg-color);
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-size: 4rem;
    color: white;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.project-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background-color: transparent;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.project-links {
    display: flex;
    gap: 2rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
    gap: 1rem;
}

/* Skills Section */
.skills {
    background-color: var(--bg-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.skill-category {
    background-color: var(--bg-color);
    padding: 3rem;
    border-left: 4px solid var(--primary-color);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

.bullet {
    color: var(--primary-color);
    font-weight: 700;
}

/* Contact Section */
.contact {
    background-color: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-method div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left .logo {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-left p {
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-socials a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: clamp(3rem, 10vw, 8rem);
    }

    .section-title {
        font-size: clamp(2.5rem, 7vw, 5rem);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 3rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .hero-decoration {
        top: 90px;
        right: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 80px 20px;
    }

    .section-number {
        font-size: 5rem;
        top: 80px;
        left: 20px;
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .project-number {
        top: 2rem;
        right: 2rem;
        font-size: 3rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}
