/* CSS Styling for Portfolio - LIQUID GLASS & AURORA THEME */

:root {
    /* Liquid Aurora Color Palette */
    --bg-main: #020617; /* Very deep slate/blue */
    --bg-darker: #01030b;
    
    /* Highly transparent card bg for liquid glass */
    --card-bg: rgba(255, 255, 255, 0.03); 
    --card-border-top: rgba(255, 255, 255, 0.2);
    --card-border-side: rgba(255, 255, 255, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.5);
    
    /* Vibrant Accents */
    --primary: #00ffcc; /* Neon Teal */
    --secondary: #0bc6ff; /* Electric Blue */
    --tertiary: #ff00cc; /* Soft Magenta */
    
    --gradient-primary: linear-gradient(135deg, var(--secondary), var(--primary));
    --gradient-hover: linear-gradient(135deg, var(--primary), var(--secondary));
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Fluid bouncy transitions */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Liquid Animated Background Blobs */
.liquid-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-main);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.6;
}

.glow-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(11,198,255,0.4) 0%, transparent 60%);
    animation: liquidMove 25s infinite alternate ease-in-out;
    top: -10%; left: -10%;
}

.glow-2 {
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(255,0,204,0.3) 0%, transparent 60%);
    animation: liquidMove2 30s infinite alternate-reverse ease-in-out;
    bottom: -20%; right: -10%;
}

.glow-3 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0,255,204,0.3) 0%, transparent 60%);
    animation: liquidMove3 20s infinite alternate ease-in-out;
    top: 40%; left: 30%;
}

.glow-4 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 60%);
    animation: liquidMove 22s infinite alternate ease-in-out;
    bottom: 20%; left: -10%;
}

@keyframes liquidMove {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15vw, 10vh) scale(1.1); }
    100% { transform: translate(-5vw, 5vh) scale(0.9); }
}

@keyframes liquidMove2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10vw, -15vh) scale(1.2); }
    100% { transform: translate(10vw, 5vh) scale(0.85); }
}

@keyframes liquidMove3 {
    0% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(5vw, -20vh) scale(1.15); }
    100% { transform: translate(-10vw, -10vh) scale(1.05); }
}

/* Developer Tech Grid Overlay */
.liquid-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
}

/* Floating Developer Background Code */
.floating-code {
    position: absolute;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    z-index: 0; /* Below grid, but with the liquid */
    pointer-events: none;
    user-select: none;
}

.code-1 {
    top: 15%; left: -5%;
    font-size: 15vw;
    transform: rotate(-10deg);
}

.code-2 {
    bottom: 10%; right: -5%;
    font-size: 20vw;
    transform: rotate(15deg);
}

.code-3 {
    top: 50%; left: 35%;
    font-size: 10vw;
    transform: rotate(-5deg);
    opacity: 0.5;
}

/* Typography and Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-primary {
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 0;
}

/* Tactile Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:active {
    transform: scale(0.94) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #020617; /* Dark text for high contrast against neon */
    border: none;
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-hover);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 255, 204, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

/* Liquid Glass Cards (High Gloss) */
.glassmorphism {
    background: var(--card-bg);
    backdrop-filter: blur(24px); /* Very heavy blur for liquid effect */
    -webkit-backdrop-filter: blur(24px);
    /* Asymmetric glossy border for realism */
    border-top: 1px solid var(--card-border-top);
    border-left: 1px solid var(--card-border-top);
    border-right: 1px solid var(--card-border-side);
    border-bottom: 1px solid var(--card-border-side);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--card-shadow), inset 0 2px 3px rgba(255,255,255,0.05); /* Sharp inner gloss */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Adds a very subtle liquid sheen over the cards */
.glassmorphism::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
}

.glassmorphism:hover::before {
    left: 200%;
}

/* Section Headings */
.section-heading {
    margin-bottom: 4rem;
    text-align: center;
}

.section-heading h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.logo .dot {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(0,255,204,0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-greeting {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255,255,255,0.2);
    /* Deep transparent liquid core */
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    animation: morph 8s ease-in-out infinite;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.abstract-icon {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0,255,204,0.3));
}

.circle-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    scale: 1.25;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Section */
.about .section-heading {
    text-align: left;
}

.about .heading-line {
    margin: 0;
}

.about-card {
    padding: 3.5rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 15px rgba(0,255,204,0.5);
}

.about-text {
    flex: 2;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 3rem;
}

.stat-item h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.stat-item p {
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* What I Do Section */
.what-i-do {
    margin-top: 5rem;
}

.subsection-heading {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: left;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: rgba(255,255,255,0.4);
    box-shadow: 0 25px 40px rgba(0,0,0,0.6), inset 0 2px 3px rgba(255,255,255,0.15);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(0,255,204,0.3));
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Journey / Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary), transparent);
    top: 0; bottom: 0; left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px 40px 60px;
    position: relative;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    width: 20px; height: 20px;
    left: 11px; top: 15px;
    background-color: var(--bg-main);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(11, 198, 255, 0.8);
}

.timeline-content {
    padding: 2.5rem;
    position: relative;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-top-color: rgba(255,255,255,0.3);
}

.timeline-date {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0,255,204,0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.2rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    cursor: pointer;
}

.skill-card:active {
    transform: scale(0.92) !important;
}

.skill-card:hover {
    transform: translateY(-12px);
    border-top-color: rgba(255,255,255,0.4);
    box-shadow: 0 20px 30px rgba(0,0,0,0.6), inset 0 2px 3px rgba(255,255,255,0.2);
}

.skill-icon {
    font-size: 3.5rem;
    height: 56px; width: 56px;
    display: flex;
    justify-content: center;
    transition: var(--transition-fast);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.skill-card span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-top-color: rgba(255,255,255,0.4);
    box-shadow: 0 30px 50px rgba(0,0,0,0.6), inset 0 2px 3px rgba(255,255,255,0.2);
}

.project-card:active {
    transform: scale(0.96) !important;
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.project-links {
    display: flex;
    gap: 1.2rem;
    font-size: 1.3rem;
    z-index: 2;
}

.project-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.project-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.05rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.tech-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-list.disabled li {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.contact-card {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card:hover {
    border-top-color: rgba(255,255,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0,255,204,0.3));
}

.contact-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-darker);
    padding: 3rem 0;
    text-align: center;
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.copyright {
    opacity: 0.5;
    font-size: 0.85rem !important;
}

/* Animations (Scroll Trigger) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Responsive */
@media (max-width: 900px) {
    .section-heading h2 { font-size: 2.3rem; }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
    }
    
    .hero-content {
        margin-bottom: 4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-card {
        flex-direction: column;
        padding: 2.5rem;
        gap: 2.5rem;
    }
    
    .about-card::after {
        width: 100%; height: 6px;
    }
    
    .about-stats {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-left: 0;
        padding-top: 2rem;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        gap: 1rem;
    }
    
    .timeline::after {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-dot {
        left: 6px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; height: 100vh;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-left: 1px solid var(--card-border-side);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.4rem; }
    
    .about-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 3rem 1.5rem;
    }
}
