/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-primary: #020617;
    /* Darker, richer blue/slate */
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    /* Royal Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --max-width: 1280px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: 60px 0;
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    /* White text on blue background */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(112, 77, 244, 0.3);
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(3, 0, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.btn-hire {
    padding: 8px 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: #9333ea;
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: #4f46e5;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

.glow-text {
    font-family: var(--font-heading);
    font-size: 84px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.4s ease;
    cursor: default;
}

.glow-text:hover {
    transform: scale(1.08);
    text-shadow: 0 0 50px rgba(59, 130, 246, 0.8);
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 28px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-status {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(112, 77, 244, 0.1);
    border: 1px solid rgba(112, 77, 244, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 79px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    color: var(--text-secondary);
    font-size: 20px;
    max-width: 500px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

/* Rocket Card (Hero Visual) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.rocket-card {
    background: rgba(15, 10, 40, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

.rocket-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

/* Section Headers */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
}

/* About & Skills Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.hidden-project {
    display: none;
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.skill-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Projects */
.project-browser {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    padding: 12px;
    display: flex;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #eab308;
}

.dot-green {
    background: #22c55e;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tech-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-secondary);
}

.project-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .project-image {
    transform: scale(1.05);
}

.glass-card:hover .project-image-container::after {
    opacity: 1;
}

.project-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(2, 6, 23, 0.6) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Contact */
.contact-section {
    background-color: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Form */
.contact-form {
    text-align: left;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(112, 77, 244, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-primary);
}

/* Experience */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.experience-card {
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
    border-left: 4px solid var(--accent-color);
    border-right: 4px solid var(--accent-color);
}

.exp-date {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.experience-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.experience-card h4 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-form-card {
    padding: 40px;
}

.contact-info {
    padding: 0px 0px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-logo-container {
    margin-bottom: 10px;
}

.contact-logo-container .logo {
    font-size: 48px;
    display: block;
    margin-bottom: 5px;
}

.logo-sub {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-text h4 {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-text p {
    font-size: 18px;
    color: white;
    font-weight: 500;
}

.social-links-contact {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-links-contact .social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links-contact .social-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .glow-text,
    .hero h1 {
        font-size: 72px;
    }
}

@media (max-width: 960px) {
    .container {
        padding: 0 40px;
    }

    .hero-visual {
        display: none;
    }

    .glow-text,
    .hero h1 {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .grid-4,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 10, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .btn-hire {
        display: none;
    }

    .glow-text,
    .hero h1 {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero p {
        font-size: 18px;
    }

    .grid-2,
    .grid-4,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* About cards specifically handled to stay 2-column or stack */
    .about-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .experience-card {
        padding: 30px 20px;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .glow-text,
    .hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .about-cards {
        grid-template-columns: 1fr !important;
    }

    .contact-logo-container .logo {
        font-size: 36px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-text p {
        font-size: 16px;
    }
}