/* Header */
.header {
    background: rgba(15, 23, 42, 0.6);
    /* Darker glass */
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    padding: 0.7rem 1.5rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
    /* Updated shadow color */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* White subtle border */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    /* More opaque on scroll */
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1px;
    position: relative;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo .text {
    font-family: var(--font-heading);
    letter-spacing: -1px;
    z-index: 2;
    transition: color 0.3s ease;
}

.logo .dot {
    color: var(--secondary-color);
    font-size: 2.2rem;
    line-height: 0;
    margin-right: 2px;
    transition: color 0.3s ease;
}

.tech-bracket {
    color: var(--text-light);
    /* Updated */
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
    font-size: 1.4rem;
    display: inline-block;
}

/* Cursor Animation */
.cursor {
    color: var(--secondary-color);
    font-weight: 900;
    margin: 0 2px 0 0;
    animation: blink 1s step-end infinite;
    opacity: 1;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hover Interactions */
.logo:hover {
    background: rgba(37, 99, 235, 0.05);
    /* Kept consistent with blue tint */
}

/* Syntax Highlighting on Hover */
.logo:hover .tech-bracket {
    color: var(--soft-orange);
    /* Updated */
    opacity: 1;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.logo:hover .tech-bracket:first-child {
    transform: translateX(-4px);
}

.logo:hover .tech-bracket:last-child {
    transform: translateX(4px);
}

.logo:hover .text {
    color: var(--primary-blue);
    /* Updated */
}

.logo:hover .dot {
    color: var(--soft-orange);
    /* Updated */
}

.logo:hover .cursor {
    color: var(--primary-blue);
    /* Updated */
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.nav-list {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background: rgba(37, 99, 235, 0.08);
    /* Updated to match variable base */
}

.nav-link.btn-primary {
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--gradient-primary);
    /* Updated to gradient */
    border: none;
    /* Removed border for gradient button */
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    margin-left: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
    position: relative;
    /* For pseudo-element if needed */
    z-index: 1;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 66, 150, 0.4);
    color: #ffffff;
    /* Gradient handles hover state naturally or handled in components.css */
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    font-size: 1rem;
    font-weight: 500;
}

.icon-bubble {
    width: 60px;
    height: 60px;
    background: transparent;
    /* Removed background */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.8rem;
    /* Slightly larger icon since bubble is gone */
    transition: all 0.4s ease;
    border: none;
    /* Removed border */
}

.contact-option-card:hover .icon-bubble {
    background: transparent;
    /* Ensure it stays transparent on hover */
    color: var(--cyan-accent);
    /* Just change icon color */
    transform: scale(1.1);
    box-shadow: none;
    /* Remove shadow */
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    cursor: crosshair;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    /* Updated */
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.6;
}

.hero-buttons .btn {
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    /* Updated */
    color: var(--text-light);
    /* Updated */
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Softened border */
    margin-bottom: 0;
    /* Default for desktop */
}

/* Ensure mobile nav is hidden on desktop by default */
.mobile-bottom-nav {
    display: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Removed bubble background */
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-socials a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.footer-socials a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    /* Blue glow */
}

.footer-socials a:hover::before {
    width: 150px;
    height: 150px;
}

.footer-socials a:hover i {
    transform: scale(1.1);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
        /* Updated base */
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.nav-link.btn-primary {
    animation: pulse-blue 2s infinite;
}

.nav-link.btn-primary:hover {
    animation: none;
}