:root {
    --primary: #0A0E27;
    --accent: #4A90E2;
    --accent-hover: #357ABD;
    --text: #2C3E50;
    --text-light: #6B7280;
    --bg: #FAFBFC;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1f3a 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent);
    margin-bottom: 32px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.contact-link:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse {
    border-color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

.scroll-indicator p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    max-width: 900px;
    margin-top: 40px;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 24px;
}

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

.project-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 60px;
    box-shadow: 0 4px 24px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.project-header {
    margin-bottom: 40px;
}

.project-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.project-meta {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 800px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.app-store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.app-store-link:hover {
    color: var(--accent-hover);
    gap: 12px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Experience Section */
.experience-section {
    background: white;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px 0;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 0;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content .role {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-content .period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.timeline-content .description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.tech-stack-label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

.tech-tags-small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags-small span {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(74, 144, 226, 0.08);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(74, 144, 226, 0.15);
}

/* Education Section */
.education-section {
    background: var(--bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.info-primary {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}

.info-secondary {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1f3a 100%);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.footer-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-link {
    display: inline-block;
    padding: 14px 32px;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.footer-link:hover {
    background: rgba(74, 144, 226, 0.3);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .section {
        padding: 60px 0;
    }

    .project-card {
        padding: 32px 24px;
    }

    .project-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline-item {
        padding-left: 0;
    }

    .contact-links {
        gap: 12px;
    }

    .contact-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .project-card {
        padding: 24px 16px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .contact-link svg {
        width: 16px;
        height: 16px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .hero-bg {
        display: none;
    }

    .contact-link,
    .footer-link {
        border: 1px solid var(--primary);
        color: var(--primary);
    }

    .project-image {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
