/* ==============================
   PRELOADER
   ============================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #02060D;
    z-index: var(--z-preloader);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

#preloader-initials {
    font-size: 3rem;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: var(--glow-blue);
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--electric-blue);
    box-shadow: var(--glow-electric);
}

.progress-text {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-secondary);
}

/* ==============================
   NAVIGATION
   ============================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-nav);
    background: rgba(5, 11, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, background 0.4s ease;
}

body.light-mode .glass-nav {
    background: rgba(245, 248, 252, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
}

body.light-mode .logo-text {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--electric-blue);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}
body.light-mode .nav-link:hover, body.light-mode .nav-link.active {
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--primary-blue);
}

.mobile-only {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    background: var(--electric-blue);
    box-shadow: var(--glow-electric);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

body.light-mode .btn-outline {
    color: var(--text-dark);
    border-color: rgba(0,0,0,0.2);
}

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

.magnetic {
    /* JS will handle magnetic movement */
}

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* offset nav */
}

.hero-content {
    text-align: center;
    z-index: var(--z-normal);
    max-width: 800px;
}

.glitch-text {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
}
body.light-mode .glitch-text {
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--electric-blue);
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.hero-bio {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.hero-share-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: var(--white);
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

body.light-mode .share-btn {
    border-color: rgba(0, 0, 0, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-normal);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--electric-blue);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 2s infinite ease-in-out;
}

/* ==============================
   CARDS & GRIDS
   ============================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.section-card {
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: block;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

body.light-mode .section-card {
    background: #FFFFFF;
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0,102,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-card:hover {
    border-color: rgba(0,102,255,0.3);
    box-shadow: var(--glow-blue);
    transform: translateY(-10px);
}

.section-card:hover::before {
    opacity: 1;
}

.card-number {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 20px;
    right: 20px;
}
body.light-mode .card-number {
    color: rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--electric-blue);
}

.section-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
}
body.light-mode .section-card h3 {
    color: var(--text-dark);
}

.about-content {
    display: block;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0,102,255,0.3) 0%, transparent 70%);
    z-index: 0;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s;
}

.about-image-container:hover .about-image {
    filter: grayscale(0%) contrast(1);
}

.about-bio {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
body.light-mode .skill-bar-bg {
    background: rgba(0,0,0,0.1);
}

.skill-bar-fill {
    height: 100%;
    background: var(--electric-blue);
    width: 0%; /* Animated via GSAP */
    border-radius: 3px;
    box-shadow: var(--glow-electric);
}

/* ==============================
   TIMELINE
   ============================== */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}
body.light-mode .timeline-container::before {
    background: rgba(0,0,0,0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
    padding: 2rem 2rem 2rem 3rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover {
    background: rgba(0, 150, 255, 0.06);
    border-left-color: var(--electric-blue);
    transform: translateX(10px);
    box-shadow: inset 0 0 20px rgba(0, 150, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-dot {
    position: absolute;
    left: -2.3rem; /* 2rem for container padding + half of width */
    top: 2.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid var(--electric-blue);
    box-shadow: var(--glow-blue), 0 0 20px rgba(0, 150, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4) translateX(5px);
    background: var(--electric-blue);
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.timeline-year {
    font-family: var(--font-secondary);
    color: var(--electric-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}
body.light-mode .timeline-title {
    color: var(--text-dark);
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==============================
   PORTFOLIO & PROJECTS
   ============================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-item:hover {
    box-shadow: 0 30px 60px rgba(0, 150, 255, 0.2);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 150, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08) rotateZ(0.5deg);
    filter: brightness(0.85);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    font-weight: 700;
}

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
}

.portfolio-category {
    color: var(--electric-blue);
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

/* Case Study Project Row */
.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.project-row:nth-child(even) {
    direction: rtl;
}

.project-row:nth-child(even) > * {
    direction: ltr;
}

.project-visual {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
}

.project-clickable {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.project-image-wrapper:hover .project-clickable {
    transform: scale(1.08) rotateZ(0.5deg);
    filter: brightness(0.85);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 150, 255, 0.15);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 2;
}

.project-image-wrapper:hover .project-overlay {
    opacity: 1;
}

.project-hover-icon {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 150, 255, 0.3);
    border: 2px solid var(--electric-blue);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.project-image-wrapper:hover .project-hover-icon {
    transform: scale(1.1) translateY(-5px);
    background: rgba(0, 150, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.4);
}

.project-info h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
body.light-mode .project-info h3 { color: var(--text-dark); }

.project-info h4 {
    color: var(--electric-blue);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==============================
   CERTIFICATES SLIDER
   ============================== */
.certificates-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

/* Accordion List View */
.certificates-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.accordion-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.light-mode .accordion-group {
    background: #FFFFFF;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}
body.light-mode .accordion-header:hover {
    background: #f8fafc;
}

.accordion-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00897b; /* Teal color to match screenshot */
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #00897b;
    font-weight: 700;
}

.accordion-group.active .accordion-icon {
    transform: rotate(45deg); /* Turns + into x */
}

.accordion-content {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-group.active .accordion-content {
    display: flex;
}

.accordion-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.light-mode .accordion-item-row {
    border-bottom: 1px solid #e2e8f0;
}

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

.certificates-slider::-webkit-scrollbar {
    height: 8px;
}
.certificates-slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.certificates-slider::-webkit-scrollbar-thumb {
    background: var(--electric-blue);
    border-radius: 4px;
}

.cert-card {
    min-width: 300px;
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
body.light-mode .cert-card {
    background: #FFF;
    border-color: rgba(0,0,0,0.1);
}

.cert-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--electric-blue);
    box-shadow: 0 20px 50px rgba(0, 150, 255, 0.3), inset 0 0 20px rgba(0, 150, 255, 0.1);
}

.cert-img-container {
    height: 200px;
    overflow: hidden;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.3s;
}

.cert-card:hover .cert-img-container img {
    filter: grayscale(0%);
}

.cert-info {
    padding: 1.5rem;
}

.cert-title {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
body.light-mode .cert-title { color: var(--text-dark); }

.cert-inst {
    color: var(--electric-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==============================
   CONTACT & FOOTER
   ============================== */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-link span {
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-link:hover span {
    color: var(--white);
    border-color: var(--electric-blue);
}
body.light-mode .contact-link:hover span {
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

body.light-mode .form-group input, body.light-mode .form-group textarea {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: rgba(255,255,255,0.1);
}
body.light-mode .form-group input:focus, body.light-mode .form-group textarea:focus {
    background: rgba(0,0,0,0.05);
}

.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
    margin-top: 5rem;
}
body.light-mode .footer { border-color: rgba(0,0,0,0.1); }

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

.footer-brand {
    font-family: var(--font-secondary);
    font-weight: 800;
}

.footer-divider {
    margin: 0 1rem;
    color: var(--electric-blue);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--electric-blue);
}

/* ==============================
   MODALS
   ============================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 13, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.light-mode .modal-overlay {
    background: rgba(245, 248, 252, 0.9);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: calc(var(--z-modal) + 1);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    background: var(--dark-surface);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
body.light-mode .modal {
    background: #FFF;
    border-color: rgba(0,0,0,0.1);
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
body.light-mode .modal-close {
    background: rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.modal-close:hover {
    background: var(--electric-blue);
    color: white;
}

.modal-content-container {
    padding: 3rem;
}

/* =========================================
   CLIENTS SECTION
   ========================================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 150, 255, 0.05);
    transition: left 0.4s ease;
    z-index: 0;
}

.client-card:hover::before {
    left: 0;
}

.client-card > * {
    position: relative;
    z-index: 1;
}

.client-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 150, 255, 0.25), inset 0 0 30px rgba(0, 150, 255, 0.08);
    border-color: rgba(0, 150, 255, 0.4);
}

body.light-mode .client-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(0px);
}

body.light-mode .client-card:hover {
    box-shadow: 0 15px 35px rgba(0, 150, 255, 0.15);
    border-color: var(--electric-blue);
    background: #ffffff;
}
