@import url('index.css');
@import url('experience.css');
@import url('education.css');
@import url('projects.css');
@import url('contact.css');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a; /* Deep black */
    color: #ffffff;
    font-family: Monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Layout */
.navbar {
    /* This grid creates 3 columns: 
    - The 1st and 3rd share equal space (1fr)
    - The middle only takes as much space as the links need (auto) */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 20px;
    background: #3a3a3a;

    /* Create the border with color gradient */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, #60a5fa, #22d3ee, #34d399) 1;

    position: relative;
    overflow: hidden; /* Ensures the shine stays inside */
}

/* Nav Bar Shine Effect */
.navbar::after {
    content: '';        /* Required for pseudo-elements to render */
    position: absolute; /* Positions the shine relative to the navbar */
    top: 0;             /* Aligns with the top of the navbar */
    left: -100%;        /* Starts the shine hidden far to the left */
    width: 50%;         /* Width of the shine beam */
    height: 100%;       /* Makes the shine span the full height of the navbar */
    
    /* Creates a soft, transparent white gradient beam */
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    
    /* 13s total duration = 3s motion + 10s pause */
    animation: shine 13s infinite;
}

@keyframes shine {
    /* 0%: Start state (hidden on left) */
    0% { left: -100%; }
    /* 23%: End of the shine motion (roughly 3s/13s). Moves to right */
    23% { left: 150%; }
    /* 100%: "Park" the element off-screen for the remainder of the 13s */
    100% { left: 150%; }
}

.logo {
    grid-column: 1;
    justify-self: start;
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(to right, #60a5fa, #22d3ee, #34d399); /* Gradient effect */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.4)); /* Glow effect */
    /* border: 1px solid #ffffff; */
}

nav {
    grid-column: 2;
    /* border: 1px solid #ffffff; */
    
    /* & .nav-links {
        display: flex;
        list-style: none;
        gap: 25px;
    }
    
    & .nav-links a {
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: bold;
        color: #a0a0a0;
        transition: 0.3s;
    }
    
    & .nav-links a:hover {
        color: #00ffff;
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    } */
}

.empty-spacer {
    grid-column: 3;
    /* border: 1px solid #ffffff; */
}

/* CTA Button Styling - Not in use */
.cta-button {
    background-color: #00ffff;
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none; 
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Ensure nav links styling works in plain CSS (non-preprocessed) */
.navbar > nav .nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar > nav .nav-links a,
.mobile-menu .nav-links a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #a0a0a0;
    transition: 0.3s;
}

.navbar > nav .nav-links a:hover,
.mobile-menu .nav-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Mobile hamburger toggle */
.mobile-toggle {
    display: none !important; /* shown via media query only */
    position: absolute; /* don't affect navbar height */
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #00ffff;
    border-radius: 8px;
    width: 44px;
    height: 36px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,255,255,0.12);
    display: grid;
    place-items: center;
}

.mobile-toggle:hover {
    background: #00828b;
}

.mobile-toggle .bars {
    width: 18px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mobile-toggle .bars span {
    display: block;
    height: 2px;
    background: #000000;
    border-radius: 2px;
}

/* The dropdown/drawer that appears below the navbar */
.mobile-menu {
    position: fixed; /* place above content and outside header to avoid clipping */
    top: 64px; /* will be updated by JS to match navbar height */
    left: 0;
    width: 260px;
    max-width: 80vw;
    height: calc(100vh - 64px);
    background: rgba(3,3,3,0.76);
    backdrop-filter: blur(6px);
    border-right: 1px solid rgba(255,255,255,0.04);
    box-shadow: 12px 0 24px rgba(0,0,0,0.6);
    transform: translateX(-110%);
    transition: transform 240ms ease;
    z-index: 9999; /* ensure it's above other content */
    padding: 1.5rem 1rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu .nav-links a {
    color: #e5e7eb;
    font-size: 1.05rem;
    padding-left: 0.25rem;
}

/* Show hamburger and hide desktop links on small screens */
@media (max-width: 860px) {
    .navbar > nav .nav-links {
        display: none !important;
    }
    .mobile-toggle {
        display: grid !important;
    }
}
