:root {
    --primary-color: #007bff;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-light: #e0e0e0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    scroll-behavior: smooth;
}


/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 16px;
    background: rgba(18, 18, 18, 0.94);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

body {
    padding-top: 72px; /* account for fixed navbar */
}

.brand {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}


.brand-logo {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.brand-text {
    letter-spacing: 0.5px;
}

.nav-toggle {
    display: flex !important;
    position: fixed;
    top: 16px;
    right: 40px;
    flex-direction: column;
    justify-content: space-between;
    width: 42px;
    height: 34px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.85);
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-radius: 999px;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-radius: 999px;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}


.nav-links {
    list-style: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 25vw);
    height: 100vh;
    background: rgba(5, 7, 14, 0.98);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 90px 18px 20px;
    overflow-y: auto;
    z-index: 1100;
    transition: right 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-links.show {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}

.nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 14px 0;
    display: block;
}


@media (max-width: 1400px) {
    .nav-toggle {
        display: flex;
    }

    .contact-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 75vw);
        height: 100vh;
        background: rgba(5, 7, 14, 0.97);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        gap: 0;
        padding: 90px 20px 20px;
        overflow-y: auto;
        z-index: 1100;
        transition: right 0.35s ease, opacity 0.35s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.show {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links li a {
        display: block;
        padding: 14px 10px;
        width: 100%;
    }

    .nav-links li:first-child a {
        padding-top: 0;
    }
}

@media (min-width: 1401px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        right: auto;
        top: auto;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        gap: 24px;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        align-items: center;
        justify-content: center;
    }

    .nav-links li {
        border-bottom: none;
    }

    .nav-links li a {
        display: inline-block;
        padding: 0;
        margin: 0 8px;
        color: #f1f5f9;
        font-size: 1rem;
    }
}




.nav-links::-webkit-scrollbar {
    height: 5px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 99px;
}

.nav-links li {
    min-width: max-content;
}

.contact-btn {
    display: none; /* hidden to rely on slide-out menu for all widths */
    margin-left: 16px;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00bcd4, #007bff);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .contact-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 300px);
        height: 100vh;
        background: rgba(5, 7, 14, 0.97);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        gap: 0;
        padding: 90px 20px 20px;
        overflow-y: auto;
        z-index: 1100;
        transform: translateX(0);
        transition: right 0.35s ease, opacity 0.35s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.show {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links li a {
        display: block;
        padding: 14px 10px;
        width: 100%;
    }

    .nav-links li:first-child a {
        padding-top: 0;
    }
}

@media (max-width: 500px) {
    .brand-text {
        display: none;
    }

    .navbar {
        padding: 12px 4%;
    }
}

@media (max-width: 500px) {
    .brand-text {
        display: none;
    }

    .navbar {
        padding: 12px 4%;
    }
}


/* Navigation Link Styling */
.nav-links li a {
    color: #cbd5e1; /* Subtle grey-white */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease; /* Smooth color change */
}

/* Color change on hover */
.nav-links li a:hover {
    color: var(--primary-color); /* Changes to your theme blue */
}

/* The Animated Underline */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease; /* Makes the line grow */
}

.nav-links li a:hover::after {
    width: 100%; /* Line fills up when pointing at the link */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.active-link {
    color: var(--primary-color) !important;
}
.active-link::after {
    width: 100% !important;
}

/* --- Your Existing Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    animation: drift 60s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    opacity: 0;
    animation: lightning 4s infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: opacity;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes lightning {
    0%, 75% { opacity: 0; }
    77% { opacity: 0.35; }
    78% { opacity: 0; }
    80% { opacity: 0.25; }
    81% { opacity: 0; }
    82% { opacity: 0.42; }
    83% { opacity: 0.08; }
    84% { opacity: 0; }
    100% { opacity: 0; }
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

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

/* --- New: Typewriter & Cursor Integration --- */
#typewriter {
    color: var(--primary-color);
    font-weight: 600;
}

.cursor {
    color: var(--primary-color);
    font-weight: bold;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- New: Nav Link Hover Effects --- */
.nav-links li a {
    color: #cbd5e1;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

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

/* Sliding Underline Effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}; 

#typewriter {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); /* Cybersecurity glow */
}

.cursor {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 3px;
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tagline {
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.statement {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    font-size: 1.1rem;
    color: #94a3b8; /* Muted slate for the supporting text */
}

/* Grid Layouts */
/* 1. Universal Section Styling */
.section {
    padding: 80px 10%;
    display: flex;
    flex-direction: column; /* Stack heading above content */
    align-items: center;    /* Centers items horizontally in the flex container */
    text-align: center;     /* Centers the text inside the elements */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
/* Resume Grid Layout */
#resume {
    background-color: var(--bg-dark);
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.resume-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resume-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
    border-color: var(--primary-color);
}

.resume-box .resume-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.resume-box h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: white;
}

.box-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin: 15px 0 25px;
    flex-grow: 1;
}

.btn-view-details {
    background: linear-gradient(135deg, #00bcd4, #007bff);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-view-details:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #b0b0b0;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: white;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: white;
    font-size: 1.8rem;
}

.modal-body {
    color: #e0e0e0;
}

/* Experience Items in Modal */
.experience-item {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h4 {
    margin: 0 0 8px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.experience-item p {
    margin: 5px 0;
    color: #e0e0e0;
    text-align: center;
}

.experience-item .company {
    color: var(--primary-color);
    font-weight: 600;
    margin: 5px 0;
    text-align: center;
}

.experience-item .date {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 5px 0 10px;
    text-align: center;
}

.experience-item .company-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.experience-item ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #d0d0d0;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

.experience-item li {
    margin: 8px 0;
    line-height: 1.5;
}

.experience-item .company-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.experience-item .company-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.experience-item .company-links a:hover {
    opacity: 0.7;
}

.experience-item ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #d0d0d0;
}

.experience-item li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Education Items */
.education-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.education-item h4 {
    margin: 0 0 5px;
    color: white;
}

.education-item p {
    margin: 5px 0;
    color: #b0b0b0;
}

/* Certifications List */
.certifications-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.cert-item p {
    margin: 0;
    flex-grow: 1;
    color: #e0e0e0;
}

.cert-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 15px;
    transition: opacity 0.2s ease;
}

.cert-link:hover {
    opacity: 0.7;
}

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

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.skill-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-pill {
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.skill-pill:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 90%;
        padding: 30px;
    }

    .certifications-list {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Styling for company links within the experience section */
.company-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}

.company-links a {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.resume-detail p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03); /* Subtle background for each row */
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 10px;
}

.company-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Ensures the bullets don't overlap with icons */
.job-bullets {
    margin-top: 10px;
    padding-left: 20px;
}

/* Pulsing Header Links */
.pulse-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pulse-link:hover {
    transform: scale(1.1); /* Enlarge */
}

.pulse-link:active {
    transform: scale(0.9); /* Diminish */
}

.job-title {
   /* color: var(--primary-color);  */
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    display: block; /* Ensures the title doesn't crowd the date */
}

/* Skills Container and Pills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-pill {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid #444;
    color: var(--text-light);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    transform: scale(1.15); /* Enlarge */
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.skill-pill:active {
    transform: scale(0.85); /* Diminish */
}

/* Detail Styling for Certifications */

/* Container for the certification list */
.resume-detail {
    margin-bottom: 20px;
}

/* Individual certification lines */
.resume-detail p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03); /* Subtle background for each row */
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

/* Hover effect for the row */
.resume-detail p:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Styling the "Check out" buttons */
.btn-secondary {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents button text from wrapping */
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* The Pulse Link for the "Certifications" Header */
.pulse-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.pulse-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .resume-slides {
        width: 300%; /* Still 3 slides */
    }

    .resume-item {
        flex: 0 0 100%; /* Full width on mobile */
        margin: 0;
    }

    .carousel-prev, .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}


/* Projects Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Project Box Model */
.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 12px;
    overflow: hidden; /* Clips content to border radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #333; /* Fallback color */
    overflow: hidden;
}


/* Pro Analyst Background */
.pro-analyst-bg {
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pro-emoji {
    font-size: 3.5rem;
    z-index: 5;
    filter: drop-shadow(0 0 20px var(--primary-color));
}

/* Floating Data Points Animation */
.data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(1px);
}

.p1 { top: 20%; left: 20%; animation: float-data 4s infinite linear; }
.p2 { top: 60%; left: 80%; animation: float-data 6s infinite linear reverse; }
.p3 { top: 80%; left: 30%; animation: float-data 5s infinite linear; }

@keyframes float-data {
    0% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(20px, -20px); opacity: 0.8; }
    100% { transform: translate(0, 0); opacity: 0.3; }
}

/* Scraper Specific Background */
/* Scraper Background */
.scraper-bg {
    background: radial-gradient(circle at center, #111827 0%, #020617 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.scraper-emoji {
    font-size: 3.5rem;
    z-index: 5;
    filter: drop-shadow(0 0 15px #ff4d4d); /* A subtle red glow for the spider */
}

/* Web Nodes Animation (Data points being "scraped") */
.web-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}

/* Positioning and custom movement for each node */
.n1 { top: 10%; left: 10%; animation: scrape-in 3s infinite linear; }
.n2 { top: 80%; left: 20%; animation: scrape-in 4s infinite linear 1s; }
.n3 { top: 20%; left: 85%; animation: scrape-in 3.5s infinite linear 0.5s; }
.n4 { top: 75%; left: 80%; animation: scrape-in 5s infinite linear 2s; }

@keyframes scrape-in {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        /* Moves toward the center where the spider is */
        transform: translate(calc(50% - var(--x, 50%)), calc(50% - var(--y, 50%)));
        left: 50%;
        top: 50%;
        opacity: 0;
    }
}


.project-card:hover .project-image img {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Info Padding inside the Box */
.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-info h3 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}

.project-tags {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.project-tags code {
    font-size: 0.75rem;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-weight: bold;
}

/* The background of the project card top */
.scanner-bg {
    background: #0f172a; /* Deep space navy */
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* The Satellite Emoji */
.scanning-emoji {
    font-size: 3.5rem;
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* The Animated Pulse Ring */
.radar-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: radar-ping 2.5s infinite ease-out;
    opacity: 0;
}

@keyframes radar-ping {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.8;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
        border-width: 1px;
    }
}

.btn-primary {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.status-tag {
    font-family: 'Consolas', monospace;
    font-size: 0.7rem;
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.project-links {
    margin-top: auto; /* Pushes buttons to the bottom of the box */
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-primary { background: var(--primary-color); color: #000; }
.btn-secondary { border: 1px solid var(--primary-color); color: var(--primary-color); }


/* Container remains the same for layout consistency */
.labs-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Updated Card: Softer border and cleaner background */
.lab-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Header: Changed from "Terminal" to "Dashboard" style */
.lab-header {
    background: #252525;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333;
}

/* Status Dot: Changed to Analysis Blue */
.status-dot {
    width: 10px;
    height: 10px;
    background: #00d4ff; 
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.lab-category {
    font-family: 'Inter', sans-serif; /* Clean sans-serif */
    font-size: 0.85rem;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lab-body {
    padding: 30px;
}

.lab-section h4 {
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Meta Grid: Refined background */
.lab-meta-grid {
    background: #2a2a2a;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

code {
    background: #3a3a3a;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: #00d4ff; /* Consistent data blue */
}

/* Screenshot: Optimized for charts/visualizations */
.lab-screenshot {
    width: 100%;
    background: #121212;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #333;
}

.image-placeholder {
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
}

/* Lessons/Insights: Replaced arrow with a chart icon/bullet */
.lab-lessons ul {
    list-style: none;
    padding-left: 0;
}

.lab-lessons li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
    color: #ccc;
}

.lab-lessons li::before {
    content: "📊"; /* Insight emoji */
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* View More Case Studies Link */
.view-more-container {
    text-align: center;
    margin-top: 20px;
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #00d4ff, #8a2be2);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    border: 2px solid transparent;
}

.view-more-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: linear-gradient(45deg, #8a2be2, #00d4ff);
}

.view-more-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.view-more-link:hover i {
    transform: translateX(3px);
}

/* Case Studies CTA Section */
.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #8a2be2);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: linear-gradient(45deg, #8a2be2, #00d4ff);
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
#footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #8a2be2);
    border-radius: 2px;
}

.contact-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.footer-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.footer-item:hover::before {
    left: 100%;
}

.footer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.footer-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    display: block;
}

.footer-action-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-action-box span {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.copy-pill, .call-pill {
    background: linear-gradient(45deg, #00d4ff, #8a2be2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.copy-pill:hover, .call-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.call-pill.whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.call-pill.whatsapp:hover {
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}

.social-links a i {
    font-size: 1.2rem;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.back-to-top {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-top:hover {
    color: #8a2be2;
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 1rem;
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
    .contact-header h2 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-item {
        padding: 25px;
    }

    .social-links {
        gap: 20px;
    }

    .social-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #footer {
        padding: 60px 0 30px;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .footer-item {
        padding: 20px;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .footer-action-box {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-links a {
        justify-content: center;
    }
}


/* Universal Title Centering */
.section-title {
    text-align: center;      /* Centers the text characters */
    margin: 0 auto 50px;     /* Centers the block and adds space below */
    font-size: 2.5rem;
    color: white;
    width: 100%;             /* Ensures it takes full width to find the center */
    display: block;
}

/* Decorative Underline Centering */
.section-title::after {
    content: '';
    display: block;
    width: 60px;             /* Length of the underline */
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;     /* 'auto' on left/right centers the line */
    border-radius: 2px;
}