:root {
    --bg-color: #0b0a1c;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #34D399; /* Primary Teal */
    --accent-secondary: #14f4c8; /* Brighter Cyan */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(17, 24, 39, 0.6);
    --font-heading: 'Comfortaa', cursive;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Image - Desktop Only */
@media (min-width: 768px) {
    body {
        background-image: 
            radial-gradient(circle at 15% 50%, rgba(50, 37, 235, 0.08), transparent 25%), 
            radial-gradient(circle at 85% 30%, rgba(65, 119, 255, 0.08), transparent 25%),
            url('/?u=https%3A%2F%2Fpushkarscripts.github.io%2Fpublic%2FBackgroundImage.png');
        background-repeat: no-repeat, no-repeat, repeat-y;
        background-position: center, center, top center;
        background-size: cover, cover, 100% auto;
        background-attachment: fixed;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Background Animation Layer */
#background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.03;
    color: white;
    animation: float-bob 15s ease-in-out infinite;
}

@keyframes float-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Utility */
.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: left;
    margin-left: 0;
    color: #fff;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-title {
        text-align: center;
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }
}

/* Wavy HR Divider */
.wavy-hr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6rem 0; /* Separation spacing */
    width: 100%;
}

.wavy-hr img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .wavy-hr { margin: 4rem 0; }
    .wavy-hr img { max-width: 300px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn.primary {
    background-color: #14b8a6;
    color: #0b0a1c;
    border: 1px solid #14b8a6;
}

.btn.primary:hover {
    background-color: #2dd4bf;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.4);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.btn.cyan {
    background-color: #93c5fd;
    color: #0b0a1c;
    border: 1px solid #93c5fd;
    box-shadow: 0 4px 15px rgba(147, 197, 253, 0.2);
}

.btn.cyan:hover {
    background-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(147, 197, 253, 0.5);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(11, 10, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    letter-spacing: -0.05em;
}

.bracket {
    color: var(--accent-color);
    margin: 0 2px;
}

.nav-links.desktop {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #0b0a1c;
    background-color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: #0f172a;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-links.desktop { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Main Layout */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0; /* Reduced vertical padding inside sections */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Compensation for fixed header */
    padding-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5rem;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
        gap: 3rem;
    }
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    flex-shrink: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(52, 211, 153, 0.2);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 50px rgba(52, 211, 153, 0.1);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.hero-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 0;
    filter: blur(30px);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

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

@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 2.75rem; }
    .hero-image-wrapper { width: 280px; height: 280px; }
}

.typewriter-container {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
}

@media (max-width: 900px) {
    .typewriter-container { margin-left: auto; margin-right: auto; }
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
    .social-icons { justify-content: center; }
}

.icon-link {
    color: var(--text-muted);
    transition: all 0.3s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .hero-cta { justify-content: center; }
}

/* Tech Stack */
.tech-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .tech-tabs { justify-content: center; }
}

.tech-tab {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tech-tab:hover, .tech-tab.active {
    background: var(--accent-color);
    color: #022c22;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
}

.tech-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    aspect-ratio: 1/1;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Experience Timeline 
.timeline-container {
    position: relative;
    max-width: 800px;
    margin-top: 2rem;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0; 
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(52, 211, 153, 0.1));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0; 
    top: 0;
    width: 42px;
    height: 42px;
    background: #0f172a;
    border: 2px solid rgba(52, 211, 153, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(11, 10, 28, 1);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent; 
    border-right: 10px solid rgba(255, 255, 255, 0.05);
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.timeline-meta .company {
    color: var(--accent-color);
    font-weight: 600;
}

.timeline-meta .dot {
    color: rgba(255,255,255,0.2);
}

.timeline-bullets {
    list-style-type: none;
    padding-left: 0;
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-bullets li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.timeline-tech span {
    font-size: 0.8rem;
    background: rgba(52, 211, 153, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: var(--accent-color);
    font-family: var(--font-mono);
}
*/

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

.project-card {
    background-color: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.project-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.project-tech span {
    background: rgba(30, 41, 59, 0.6);
    color: var(--accent-secondary);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-links {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 6rem;
    background: rgba(15, 23, 42, 0.4); /* Subtle dark background */
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-content p span {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.1);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- Mobile UI Revamp --- */
@media (max-width: 640px) {
    /* Layout & Spacing */
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    /* Hero adjustments */
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-wrapper {
        width: 220px;
        height: 220px;
        margin-bottom: 1rem;
    }

    /* Stack CTA buttons on very small screens */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Projects: Single column */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Timeline: Compact view 
    .timeline-container {
        padding: 0;
    }
    
    .timeline-item {
        padding-left: 48px;
    }
    
    .timeline-marker {
        width: 32px;
        height: 32px;
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    */

    /* Tech Stack Concise Mobile */
    .tech-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
        gap: 0.8rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .tech-tabs::-webkit-scrollbar { display: none; }

    .tech-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
        grid-template-columns: none; /* Reset grid */
    }
    .tech-grid::-webkit-scrollbar { display: none; }

    .tech-card {
        min-width: 120px;
        width: 120px;
        height: 120px;
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 1rem;
        aspect-ratio: auto; /* Reset aspect ratio */
    }
    
    .tech-icon-box {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-name {
        font-size: 0.8rem;
    }
}
