:root {
    --bg-color: #fdfaf6;
    --text-color: #1a1a1a;
    --text-muted: #666;
    --accent: #ff4d00;
    --accent-hover: #e64500;
    --border: #e0dcd5;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 77, 0, 0.1);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.3), 0 0 40px rgba(255, 77, 0, 0.1);
}

/* Glassmorphism x-ray effect on interactive components when cursor hovers */
.glass-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glass-hover:hover {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-hover:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, transparent 70%);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.glass-hover::before {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-hover:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 25px rgba(255,255,255,0.15), inset 0 0 20px rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 2;
}

.glass-hover::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, .nav-logo, .hero-bg-text {
    font-family: var(--font-heading);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(253, 250, 246, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    transition: transform 0.4s var(--ease-out-expo);
}

.nav.hidden {
    transform: translateY(-100%);
}

.nav-logo {
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: baseline;
    line-height: 1;
    letter-spacing: -0.1em;
}

.logo-accent {
    color: var(--accent);
    margin-right: -0.05em;
}

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

.nav-link {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

/* Base Components */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.label-line {
    width: 40px;
    height: 1px;
    background-color: var(--text-color);
}

.section-heading {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 700;
    color: rgba(0,0,0,0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.hero-name {
    font-size: clamp(3rem, 10vw, 9rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
    flex-wrap: wrap;
}

.char-wrap {
    overflow: hidden;
    display: inline-block;
}

.char {
    display: inline-block;
    transform: translateY(100%);
}

.hero-title {
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-family: var(--font-heading);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    animation: scrollLine 2s var(--ease-in-out-expo) infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 { width: 300px; height: 300px; background: #ff4d0033; top: -10%; left: -10%; }
.shape-2 { width: 400px; height: 400px; background: #ffb80033; top: 40%; right: -10%; animation-delay: -5s; }
.shape-3 { width: 250px; height: 250px; background: #00ffcc33; bottom: -10%; left: 20%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 50px) rotate(180deg); }
}

/* About Section */
.about {
    background-color: #fff;
    border-radius: 3rem;
    margin: 0 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
}

.about-desc {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.profile-photo-main {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    display: block;
}

.profile-photo-main:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

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

.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Marquee */
.marquee-section {
    padding: 4rem 0;
    background-color: var(--text-color);
    color: var(--bg-color);
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    margin: 4rem 0;
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: marquee 20s linear infinite;
}

.marquee-dot {
    color: var(--accent);
    font-size: 1.5rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s var(--ease-out-expo);
    flex-grow: 1;
    justify-content: center;
}

.tech-chip:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.1);
}

.tech-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Projects */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

.project-item:first-child {
    border-top: 1px solid var(--border);
}

.project-item:hover {
    padding: 4rem 2rem;
    background-color: rgba(0,0,0,0.02);
    border-radius: 1rem;
    border-bottom-color: transparent;
    margin: -1px -2rem;
}

.project-index {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.project-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-item:hover .project-name {
    color: var(--accent);
}

.project-desc {
    color: var(--text-muted);
    max-width: 400px;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 200px;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 50px;
}

.project-arrow {
    font-size: 2rem;
    transform: rotate(-45deg);
    transition: transform 0.4s var(--ease-out-expo);
}

.project-item:hover .project-arrow {
    transform: rotate(0);
}

/* Contact */
.contact {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-radius: 3rem 3rem 0 0;
    margin-top: 4rem;
}

.contact .section-label .label-line {
    background-color: var(--bg-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-heading {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-subtext {
    font-size: 1.5rem;
    color: #999;
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: inherit;
    font-size: 1.5rem;
    transition: padding 0.3s ease;
}

.contact-link:first-child {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-link:hover {
    padding: 2rem 1rem;
    color: var(--accent);
}

.contact-link-label {
    font-family: var(--font-heading);
}

.contact-link-value {
    color: #999;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: #999;
    padding: 2rem 0;
}

.footer-inner {
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Animations Classes */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Education */
.education-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.education-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.education-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.edu-degree {
    font-weight: 600;
}

.edu-school {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Certifications Section */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.3s var(--ease-out-expo);
}

.cert-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.cert-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
}

.cert-issuer {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.cert-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cert-link:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .cert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .project-item {
        grid-template-columns: auto 1fr auto;
    }
    
    .project-tags {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none; /* Add mobile menu later if needed */
    }
    
    .section-container {
        padding: 4rem 1.5rem;
    }

    .hero-bg-text {
        font-size: 35vw;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-stats {
        gap: 2rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .marquee-content {
        font-size: 1.5rem;
        gap: 1.5rem;
    }
    
    .project-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }
    
    .project-item:hover {
        padding: 2rem 1rem;
        margin: -1px -1rem;
    }
    
    .project-index, .project-arrow {
        display: none;
    }
    
    .contact {
        border-radius: 1.5rem 1.5rem 0 0;
    }
    
    .contact-link {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.2rem;
        align-items: flex-start;
    }
    
    .cursor-dot, .cursor-outline {
        display: none; /* Disable custom cursor on mobile */
    }
    
    html {
        cursor: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
        text-align: center;
    }
}
