/* --- Variables & Reset --- */
:root {
    --bg-color: #0a192f;
    --light-bg: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda; /* Neon Cyan */
    --accent-glow: rgba(100, 255, 218, 0.1);
    
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Typography --- */
h1, h2, h3 {
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.highlight {
    color: var(--accent);
}

.number {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-right: 10px;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

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

.hamburger {
    display: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Buttons --- */
.btn-primary {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    margin-right: 15px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Layout Sections --- */
section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background: var(--light-bg);
    margin-left: 20px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-socials {
    margin-top: 30px; /* Space between buttons and icons */
    display: flex;
    gap: 25px; /* Space between icons */
    align-items: center;
}

.hero-socials a {
    font-size: 1.8rem; /* Make them nice and big */
    color: var(--text-secondary); /* Grey by default */
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: var(--accent); /* Neon Cyan on hover */
    transform: translateY(-3px); /* Slight float up effect */
}

.accent-text {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.bio-text {
    max-width: 500px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.img-wrapper {
    position: relative;
    border-radius: 250px;
    background-color: var(--accent);
}

.img-wrapper img {
    width: 100%;
    border-radius: 5px;
    display: block;
    transition: 0.3s;
}

.img-wrapper:hover img {
    mix-blend-mode: normal;
    filter: none;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 4px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.project-card {
    background: var(--light-bg);
    padding: 2rem 1.75rem;
    border-radius: 4px;
    transition: 0.3s;
    cursor: default;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.open-folder {
    color: var(--accent);
    font-size: 2.5rem;
}

.project-card h3 {
    margin-bottom: 10px;
    transition: color 0.3s;
}

.project-card:hover h3 {
    color: var(--accent);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.tech-list {
    display: flex;
    gap: 15px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Contact & Footer --- */
.contact-section {
    text-align: center;
    max-width: 600px;
    margin-bottom: 100px;
}

.big-heading {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.big-btn {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

.socials {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.socials i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: 0.3s;
}

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

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        background: var(--light-bg);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
        box-shadow: -10px 0px 30px -10px rgba(0,0,0,0.5);
    }

    .hamburger {
        display: block;
        z-index: 2000;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
    
    .img-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    section {
        padding: 80px 25px;
    }
}
/* --- 1. Header Glitch Effect --- */
.glitch {
    position: relative;
    color: var(--text-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 80px, 0); }
    100% { clip: rect(42px, 9999px, 115px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(120px, 9999px, 15px, 0); }
    100% { clip: rect(65px, 9999px, 100px, 0); }
}

/* --- 2. Typewriter Effect --- */
.typewriter {
    color: var(--accent);
    border-right: 2px solid var(--accent); /* The blinking cursor */
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

/* --- 3. Project Links Update --- */
.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: 0.3s;
}

.project-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* --- 4. Scroll Reveal Animation (Fade In) --- */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%); /* Slide from left */
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* --- 5. Cool Cyber Background Grid --- */
/* Add this to the existing BODY tag in your CSS */
body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.95)),
        linear-gradient(0deg, transparent 24%, rgba(100, 255, 218, .03) 25%, rgba(100, 255, 218, .03) 26%, transparent 27%, transparent 74%, rgba(100, 255, 218, .03) 75%, rgba(100, 255, 218, .03) 76%, transparent 77%, transparent), 
        linear-gradient(90deg, transparent 24%, rgba(100, 255, 218, .03) 25%, rgba(100, 255, 218, .03) 26%, transparent 27%, transparent 74%, rgba(100, 255, 218, .03) 75%, rgba(100, 255, 218, .03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}
/* --- Experience Section Layout --- */
.experience-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

/* The Tab Buttons (Left Column) */
.exp-tabs {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.tab-btn {
    background: transparent;
    border: none;
    border-left: 2px solid var(--light-bg); /* Default border */
    color: var(--text-secondary);
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: 0.3s;
}

.tab-btn:hover {
    background: rgba(100, 255, 218, 0.05); /* Very faint hover glow */
    color: var(--accent);
}

/* The Active State (Current Tab) */
.tab-btn.active {
    color: var(--accent);
    border-left: 2px solid var(--accent); /* Neon Line */
    background: rgba(100, 255, 218, 0.1);
}

/* The Content Panels (Right Column) */
.exp-content-wrapper {
    flex-grow: 1;
}

.exp-panel {
    display: none; /* Hidden by default */
}

.exp-panel.active {
    display: block; /* Show if active */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exp-panel h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.exp-panel ul {
    list-style: none;
}

.exp-panel ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Custom Bullet Point (Arrow) */
.exp-panel ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Responsive for Mobile --- */
@media (max-width: 600px) {
    .experience-container {
        flex-direction: column;
        gap: 30px;
    }

    .exp-tabs {
        flex-direction: row;
        overflow-x: auto; /* Scroll sideways if too many tabs */
        border-bottom: 2px solid var(--light-bg);
    }

    .tab-btn {
        border-left: none;
        border-bottom: 2px solid transparent; /* Move border to bottom for mobile */
        min-width: 120px;
        text-align: center;
    }

    .tab-btn.active {
        border-left: none;
        border-bottom: 2px solid var(--accent);
    }
}
/* --- Add this to the bottom of style.css --- */

/* 1. Hide extra projects by default */
.hidden-project {
    display: none;
    animation: fadeIn 0.5s ease-in-out; 
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--light-bg);
    border-radius: 5px;
    border: 1px solid var(--accent);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.btn-primary, .btn-outline, .tab-btn, .project-card {
    user-select: none;
}

.exp-item {
    margin-bottom: 25px; 
}

.exp-divider {
    border: 0;
    height: 1px;
    background: var(--light-bg); 
    margin: 20px 0;
}
.cert-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.cert-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cert-link {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cert-link:hover {
    text-decoration: underline;
}
.hidden-project, .hidden-cert {
    display: none;
    animation: fadeIn 0.5s ease-in-out; 
}
