@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-card: rgba(18, 18, 18, 0.7);
    --accent-primary: #8B5CF6;
    /* Electric Violet */
    --accent-secondary: #06B6D4;
    /* Cyber Cyan */
    --accent-tertiary: #F43F5E;
    /* Neon Pink */
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-glass: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Lenis handles this */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
}

/* Navigation Styles */
.nav-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    border-radius: 100px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--accent-primary);
}

/* Typography & Layout */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    position: relative;
    padding: 120px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section Refactor */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-name {
    font-size: clamp(3rem, 10vw, 8rem);
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-cta {
    margin-top: 2rem;
}

.secondary-button {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-out);
}

.secondary-button:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

/* About Section Refactor */
.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 4rem;
    align-items: flex-start;
}

.profile-container {
    position: sticky;
    top: 120px;
}

.profile-photo {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.1);
    transition: transform 0.5s var(--ease-out);
}

.profile-photo:hover .photo-image {
    transform: scale(1.15);
}

.photo-placeholder {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    opacity: 0.5;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.interest-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.interest-tag {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    cursor: default;
}

.interest-tag:hover {
    background: var(--accent-primary);
    transform: translateY(-5px) rotate(2deg);
}

/* Values Section (SACHIN Framework) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
    width: 100%;
}

.acronym-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.acronym-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.value-card:hover .acronym-list li {
    color: var(--text-main);
}

.acronym-list li .letter {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1rem;
    width: 30px;
    display: inline-block;
    text-align: center;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-primary);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: all 0.3s var(--ease-out);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 3rem;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-primary);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
}

/* Projects Section Refactor */
.section-header {
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 1rem;
    display: block;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    padding: 3rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out);
}

.project-card:hover {
    transform: scale(0.98);
}

/* Project Visual Variations */
.project-visual.alpha {
    background: 
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.4), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.4), transparent 50%),
        linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.444 6.13 48.03 7.544 41.886 0h1.428zM16.686 0L10.556 6.13l1.414 1.414L18.114 0h-1.428zm21.17 0l8.23 8.23-1.414 1.414L36.428 0h1.428zM22.144 0L13.914 8.23l1.414 1.414L23.572 0h-1.428zm10.142 0l11.058 11.058-1.414 1.414L30.858 0h1.428zM27.856 0L16.8 11.058l1.414 1.414L29.284 0h-1.428z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.project-visual.beta {
    background: 
        linear-gradient(45deg, rgba(244, 63, 94, 0.2) 0%, transparent 70%),
        linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 57c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.project-visual.gamma {
    background: 
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.4), transparent 50%),
        linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)),
        url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 8h12v6H56V8zm14-8h12v6H70V0zm14 8h12v6H84V8zM0 16h12v6H0v-6zm28 8h12v6H28v-6zm14-16h12v6H42v-6zm14 8h12v6H56v-6zm14-16h12v6H70v-6zm14 8h12v6H84v-6zM0 32h12v6H0v-6zm28 8h12v6H28v-6zm14-16h12v6H42v-6zm14 8h12v6H56v-6zm14-16h12v6H70v-6zm14 8h12v6H84v-6zM0 48h12v6H0v-6zm28 8h12v6H28v-6zm14-16h12v6H42v-6zm14 8h12v6H56v-6zm14-16h12v6H70v-6zm14 8h12v6H84v-6z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.project-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.project-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.project-details p {
    z-index: 2;
    position: relative;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    z-index: 2;
    position: relative;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Image Showcase Section */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.showcase-item {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out);
}

.showcase-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s var(--ease-out);
}

.showcase-item:hover .showcase-image {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.showcase-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Section Refactor */
.contact-hero {
    text-align: center;
    padding: 10rem 2rem;
}

.contact-hero h2 {
    font-size: clamp(2rem, 6vw, 5rem);
    margin-bottom: 3rem;
}

.cta-button {
    position: relative;
    padding: 2rem 4rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--accent-primary);
    border-radius: 100px;
    overflow: hidden;
    display: inline-block;
    transition: color 0.4s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    z-index: -1;
    transition: width 0.4s var(--ease-out);
}

.cta-button:hover::before {
    width: 100%;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-socials .social-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Updated Responsive Adjustments */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-container {
        position: relative;
        top: 0;
        max-width: 300px;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .image-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 80px 1.5rem;
    }
}

@media (max-width: 768px) {
    .image-showcase {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .cta-button {
        padding: 1.5rem 3rem;
        font-size: 1.25rem;
    }

    .cursor-follower {
        display: none;
        /* Hide custom cursor on tablets/phones */
    }

    .nav-container {
        width: 95%;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-socials {
        display: none;
    }
}

@media (hover: none) {
    .cursor-follower {
        display: none;
    }
}