@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    /* Color Palette - Premium Slate & Glowing Violet/Cyan */
    --bg-darkest: #030712;
    --bg-darker: #080c14;
    --bg-card: rgba(15, 23, 42, 0.65);
    --border-color: rgba(255, 255, 255, 0.07);
    
    /* Neon Accents */
    --accent-violet: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Nav & Heights */
    --nav-height: 72px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(6, 182, 212, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Glowing Background Blobs */
.glow-blob {
    position: fixed;
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    animation: float-glow 25s infinite alternate ease-in-out;
}

.glow-1 {
    top: -15%;
    left: -10%;
    background: var(--accent-violet);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-cyan);
    animation-delay: -5s;
}

.glow-3 {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-indigo);
    opacity: 0.07;
    animation-delay: -12s;
}

@keyframes float-glow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, 60px) scale(1.1);
    }
    100% {
        transform: translate(-20px, -30px) scale(0.95);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 5px;
    border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Floating Glassmorphism Navbar */
#navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 92%);
    height: var(--nav-height);
    background: rgba(8, 12, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    z-index: 1000;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    top: 12px;
    width: min(1100px, 95%);
    height: 64px;
    background: rgba(3, 7, 18, 0.8);
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

#navbar ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

#navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
    transition: var(--transition-smooth);
}

#navbar a:hover {
    color: #fff;
}

#navbar a:hover::after {
    width: 100%;
}

.btn-resume {
    border: 1px solid var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    color: var(--accent-cyan) !important;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-left: 0.5rem;
}

.btn-resume:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    color: #fff !important;
    border-color: #fff;
}

.btn-resume::after {
    display: none !important;
}

/* Hero Section */
#welcome-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-tag::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

#welcome-section h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

#welcome-section h1 span.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-indigo) 65%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

.cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -10px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -8px rgba(99, 102, 241, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Scroll Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scroll-wheel 1.6s infinite alternate;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 0.3; }
    100% { transform: translateY(8px); opacity: 1; }
}

/* General Sections */
section {
    padding: 9rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    color: #fff;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: flex-start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-indigo));
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.about-card h4 {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-card li i {
    color: var(--accent-indigo);
    margin-top: 0.35rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.skills-category:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.skills-category h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.skills-category h3 i {
    color: var(--accent-cyan);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.skill-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.skill-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.skill-item:hover i {
    color: var(--accent-cyan);
}

/* Projects Section */
.projects-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 900px;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}

.p-img-wrapper {
    position: relative;
    width: 45%;
    min-height: 350px;
    overflow: hidden;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.p-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 30%, rgba(3, 7, 18, 0.95) 100%);
    pointer-events: none;
}

.p-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    width: 55%;
}

.project-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.p-tech-stack {
    display: flex;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.p-tech-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.project-card:hover .p-tech-stack span {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-primary);
}

.p-links {
    display: flex;
    gap: 1.25rem;
    margin-top: auto;
}

.p-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.p-link:hover {
    color: #fff;
}

.p-link i {
    font-size: 1rem;
    color: var(--accent-cyan);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.contact-method:hover {
    color: #fff;
}

.contact-method i {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.contact-method:hover i {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-indigo);
    background: rgba(8, 12, 20, 0.85);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.12);
}

.contact-form button[type="submit"] {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.4);
    transition: var(--transition-smooth);
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -6px rgba(99, 102, 241, 0.55);
}

/* Footer Section */
footer {
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(3, 7, 18, 0.4);
    position: relative;
    z-index: 10;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Responsive Queries */
@media (max-width: 992px) {
    #navbar {
        padding: 0 1.5rem;
    }
    #navbar ul {
        gap: 1.5rem;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    .project-card {
        flex-direction: column;
    }
    .p-img-wrapper {
        width: 100%;
        height: 250px;
        min-height: auto;
    }
    .p-img-overlay {
        background: linear-gradient(to bottom, transparent 30%, rgba(3, 7, 18, 0.95) 100%);
    }
    .p-body {
        width: 100%;
        padding: 2rem;
    }
    section {
        padding: 7rem 1.5rem;
    }
}

@media (max-width: 600px) {
    #navbar {
        height: 60px;
        padding: 0 1rem;
        border-radius: 14px;
        top: 12px;
    }
    #navbar ul {
        gap: 0.85rem;
    }
    #navbar a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    #welcome-section {
        padding: 0 5%;
        align-items: center;
        text-align: center;
    }
    #welcome-section h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .hero-tag {
        font-size: 0.8rem;
    }
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
    .cta-group {
        justify-content: center;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .scroll-indicator {
        display: none;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
}