/*
Theme Name: OxyBytes Theme
Theme URI: https://oxybytes.com
Author: OxyBytes IT Solutions
Description: Custom OxyBytes website theme with full Customizer editing support
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: oxybytes
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --primary: #0affef;
    --secondary: #6c3fff;
    --dark: #0a0e1a;
    --dark-surface: #111827;
    --dark-card: #1a2235;
    --light: #e8eaf0;
    --muted: #8b92a8;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0affef 0%, #6c3fff 100%);
    --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0a0e1a 100%);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 2rem;
}
.preloader-logo-img {
    width: 220px;
    height: auto;
    opacity: 0;
    mix-blend-mode: screen;
    filter: brightness(1.1);
}
.preloader-bar {
    width: 200px; height: 3px;
    background: var(--dark-card);
    border-radius: 10px; overflow: hidden; opacity: 0;
}
.preloader-bar-fill {
    width: 0%; height: 100%;
    background: var(--gradient-primary); border-radius: 10px;
}

/* =============================================
   PAGE TRANSITION
   ============================================= */
.page-transition {
    position: fixed; inset: 0; z-index: 9000;
    background: var(--dark);
    transform: scaleY(0); transform-origin: bottom;
    pointer-events: none;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(10, 255, 239, 0.08);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.nav-logo-img {
    height: 85px;
    width: auto;
    transition: height 0.3s var(--ease-out);
    mix-blend-mode: screen;
    filter: brightness(1.1);
}
.navbar.scrolled .nav-logo-img {
    height: 70px;
}
.nav-links {
    display: flex; align-items: center;
    gap: 2.5rem; list-style: none;
}
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.95rem; font-weight: 500;
    transition: color 0.3s var(--ease-out);
    position: relative; cursor: pointer;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
    padding: 0.7rem 1.8rem !important;
    background: var(--gradient-primary);
    color: var(--dark) !important;
    border-radius: 50px; font-weight: 600 !important;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10, 255, 239, 0.3);
    color: var(--dark) !important;
}
.hamburger {
    display: none; flex-direction: column; gap: 6px;
    cursor: pointer; z-index: 1001;
    background: none; border: none; padding: 5px;
}
.hamburger span {
    width: 28px; height: 2px; background: var(--white);
    transition: all 0.3s var(--ease-out); transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
.mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(30px); z-index: 999;
    flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem;
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--ease-out);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 700;
    color: var(--light); text-decoration: none;
    transition: color 0.3s; cursor: pointer;
}
.mobile-menu a:hover { color: var(--primary); }

/* =============================================
   PAGE SYSTEM
   ============================================= */
.page { display: none; }
.page.active { display: block; }

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 90vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: var(--gradient-hero);
    padding: 6rem 0 3rem;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.85) 0%, rgba(26,16,64,0.75) 100%);
    z-index: 1;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(10, 255, 239, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 255, 239, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 1;
}
.hero-glow {
    position: absolute; width: 600px; height: 600px;
    border-radius: 50%; filter: blur(150px); z-index: 0;
}
.hero-glow-1 { top: -200px; right: -100px; background: rgba(108, 63, 255, 0.15); }
.hero-glow-2 { bottom: -200px; left: -100px; background: rgba(10, 255, 239, 0.08); }
.hero-container {
    max-width: 900px; margin: 0 auto;
    padding: 2rem 2rem;
    position: relative; z-index: 3;
    display: grid; grid-template-columns: 1fr;
    gap: 4rem; align-items: stretch;
    text-align: center;
}
.hero-content { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero-visual { display: none; }
.hero-description { margin: 0 auto 2rem; }
.hero-buttons { justify-content: center; }
.hero-bg-grid { z-index: 2; }
.hero-glow { z-index: 2; }.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(10, 255, 239, 0.2);
    border-radius: 50px; font-size: 0.85rem;
    color: var(--primary); margin-bottom: 1.5rem;
}
.hero-badge .pulse {
    width: 8px; height: 8px; background: var(--primary);
    border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem;
}
.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.15rem; color: var(--muted);
    line-height: 1.7; margin-bottom: 2.5rem; max-width: 540px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2.2rem; background: var(--gradient-primary);
    color: var(--dark); font-weight: 700; font-size: 1rem;
    border: none; border-radius: 50px; cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    font-family: var(--font-body);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(10, 255, 239, 0.3);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2.2rem; background: transparent;
    color: var(--light); font-weight: 600; font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; cursor: pointer; text-decoration: none;
    transition: all 0.3s var(--ease-out); font-family: var(--font-body);
}
.btn-secondary:hover {
    border-color: var(--primary); color: var(--primary); transform: translateY(-2px);
}
.hero-visual {
    position: relative; display: flex;
    align-items: center; justify-content: center;
}
.hero-image-wrapper {
    position: relative; border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(10, 255, 239, 0.1);
}
.hero-image-wrapper img { width: 100%; height: auto; display: block; border-radius: 24px; }
.hero-float-card {
    position: absolute;
    background: rgba(26, 34, 53, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 255, 239, 0.1);
    border-radius: 16px; padding: 1rem 1.5rem;
}
.hero-float-card.card-1 {
    bottom: -20px; left: -30px;
    display: flex; align-items: center; gap: 0.8rem;
}
.hero-float-card.card-2 { top: -15px; right: -20px; text-align: center; }
.float-card-number {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 800; color: var(--primary);
}
.float-card-label { font-size: 0.8rem; color: var(--muted); }
.float-card-icon {
    width: 45px; height: 45px;
    background: var(--gradient-primary); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.hero-stats { display: flex; gap: 3rem; margin-top: 3rem; }
.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 800; color: var(--white);
}
.hero-stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

/* =============================================
   COMMON SECTION STYLES
   ============================================= */
.section { padding: 7rem 0; position: relative; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
    content: ''; width: 30px; height: 1px;
    background: var(--primary); opacity: 0.4;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem; color: var(--muted);
    max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* =============================================
   PAGE HERO BANNER (inner pages)
   ============================================= */
.page-hero {
    padding: 10rem 0 5rem;
    background: var(--gradient-hero);
    position: relative; overflow: hidden; text-align: center;
}
.page-hero-content {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto; padding: 0 2rem;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; margin-bottom: 1rem;
}
.page-hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: 1.15rem; color: var(--muted);
    line-height: 1.7; max-width: 600px; margin: 0 auto;
}
.breadcrumb { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; cursor: pointer; }

/* =============================================
   MARQUEE
   ============================================= */
.tech-section {
    background: var(--dark-surface); padding: 4rem 0; overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.marquee-wrapper { overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-flex; gap: 3rem; animation: marquee 30s linear infinite; }
.marquee-item {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    color: rgba(255,255,255,0.08); text-transform: uppercase;
    letter-spacing: 3px; white-space: nowrap;
}
.marquee-item.highlight { color: rgba(10, 255, 239, 0.15); }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 2.5rem;
    transition: all 0.4s var(--ease-out);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient-primary);
    opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(10,255,239,0.15); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(10,255,239,0.1), rgba(108,63,255,0.1));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.service-card h3 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    margin-bottom: 0.8rem; color: var(--white);
}
.service-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.service-card .learn-more {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: 1.5rem; color: var(--primary);
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
    cursor: pointer; transition: gap 0.3s var(--ease-out);
}
.service-card:hover .learn-more { gap: 0.8rem; }

/* =============================================
   SERVICE DETAIL (Services page)
   ============================================= */
.service-detail {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px; padding: 3rem; margin-bottom: 2rem;
}
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }
.service-detail img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }
.service-detail h3 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    color: var(--white); margin-bottom: 1rem;
}
.service-detail p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.service-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--light); }
.service-features li::before { content: ''; width: 8px; height: 8px; min-width: 8px; background: var(--primary); border-radius: 50%; }

/* =============================================
   ABOUT
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image { position: relative; border-radius: 24px; overflow: hidden; }
.about-image img { width: 100%; height: 500px; object-fit: cover; border-radius: 24px; }
.about-image::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(10,255,239,0.1); }
.about-experience-badge {
    position: absolute; bottom: 2rem; right: 2rem;
    background: var(--gradient-primary); color: var(--dark);
    padding: 1.2rem 1.8rem; border-radius: 16px; text-align: center;
}
.about-experience-badge .number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.about-experience-badge .text { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.about-content .section-label { justify-content: flex-start; }
.about-content .section-label::before { display: none; }
.about-content .section-title { text-align: left; }
.about-text { font-size: 1.05rem; color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.about-feature { display: flex; align-items: flex-start; gap: 0.8rem; }
.about-feature-icon {
    width: 36px; height: 36px; min-width: 36px;
    background: rgba(10,255,239,0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1rem;
}
.about-feature span { font-size: 0.95rem; font-weight: 500; color: var(--light); line-height: 1.4; }

/* =============================================
   STATS
   ============================================= */
.stats-section { position: relative; padding: 6rem 0; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; z-index: 0; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-bg::after { content: ''; position: absolute; inset: 0; background: rgba(10,14,26,0.88); }
.stats-container { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 2rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.5rem,4vw,3.5rem); font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* =============================================
   PROCESS
   ============================================= */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.process-timeline::before {
    content: ''; position: absolute; top: 45px; left: 10%; right: 10%;
    height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.2;
}
.process-step { text-align: center; position: relative; }
.process-number {
    width: 70px; height: 70px; background: var(--dark-card);
    border: 2px solid rgba(10,255,239,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--primary);
    margin: 0 auto 1.5rem; position: relative; z-index: 1;
    transition: all 0.3s var(--ease-out);
}
.process-step:hover .process-number { background: var(--gradient-primary); color: var(--dark); border-color: transparent; transform: scale(1.1); }
.process-step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.process-step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.portfolio-item { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,14,26,0.95) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.portfolio-overlay p { font-size: 0.85rem; color: var(--primary); font-weight: 500; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card { background: var(--dark-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 2.5rem; position: relative; }
.testimonial-stars { display: flex; gap: 0.2rem; margin-bottom: 1.5rem; color: #f59e0b; font-size: 1rem; }
.testimonial-text { font-size: 1rem; color: var(--light); line-height: 1.8; margin-bottom: 2rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(10,255,239,0.2); }
.testimonial-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--white); }
.testimonial-role { font-size: 0.85rem; color: var(--muted); }
.testimonial-quote { position: absolute; top: 1.5rem; right: 2rem; font-size: 4rem; font-family: var(--font-display); color: rgba(10,255,239,0.07); line-height: 1; }

/* =============================================
   VALUES
   ============================================= */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { background: var(--dark-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 2.5rem; text-align: center; transition: all 0.4s var(--ease-out); }
.value-card:hover { transform: translateY(-5px); border-color: rgba(10,255,239,0.15); }
.value-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.value-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.8rem; }
.value-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

/* =============================================
   FAQ
   ============================================= */
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; margin-bottom: 1rem; overflow: hidden; transition: border-color 0.3s var(--ease-out); }
.faq-item.active { border-color: rgba(10,255,239,0.15); }
.faq-question {
    width: 100%; padding: 1.5rem 2rem; background: var(--dark-card); border: none;
    color: var(--white); font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 1rem; transition: background 0.3s var(--ease-out);
}
.faq-question:hover { background: rgba(26,34,53,0.8); }
.faq-icon {
    width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
    border: 1px solid rgba(10,255,239,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem; transition: transform 0.3s var(--ease-out);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.faq-answer-inner { padding: 0 2rem 1.5rem; font-size: 0.95rem; color: var(--muted); line-height: 1.8; background: var(--dark-card); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { position: relative; padding: 8rem 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,14,26,0.92), rgba(26,16,64,0.9)); }
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content .section-title { color: var(--white); margin-bottom: 1.5rem; }
.cta-content p { font-size: 1.15rem; color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-text { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail-icon { width: 50px; height: 50px; min-width: 50px; background: rgba(10,255,239,0.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); }
.contact-detail h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.contact-detail p, .contact-detail a { font-size: 0.95rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.contact-detail a:hover { color: var(--primary); }
.contact-social { display: flex; gap: 1rem; margin-top: 1rem; }
.contact-social a { width: 45px; height: 45px; background: var(--dark-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; transition: all 0.3s var(--ease-out); font-size: 0.85rem; font-weight: 700; }
.contact-social a:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); transform: translateY(-3px); }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.8rem; background: #25D366; color: var(--white); border-radius: 50px; font-weight: 600; text-decoration: none; font-size: 0.95rem; transition: all 0.3s var(--ease-out); width: fit-content; }
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.3); }
.contact-form-wrapper { background: var(--dark-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 3rem; }
.contact-form-wrapper h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); }
.form-subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--light); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.9rem 1.2rem; background: rgba(10,14,26,0.6); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; color: var(--white); font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color 0.3s var(--ease-out); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-submit { width: 100%; padding: 1rem; margin-top: 0.5rem; }
.form-error { color: #ef4444; font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.form-success { display: none; padding: 1rem; background: rgba(10,255,239,0.1); border: 1px solid rgba(10,255,239,0.2); border-radius: 12px; color: var(--primary); text-align: center; font-weight: 500; margin-top: 1rem; }

/* =============================================
   MAP
   ============================================= */
.map-section { height: 400px; }
.map-section iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.6) brightness(0.7) contrast(1.2); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); padding: 5rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.03); }
.footer-logo { display: block; margin-bottom: 1.2rem; cursor: pointer; }
.footer-logo img {
    height: 95px;
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; margin-top: 1.5rem; }
.footer-heading { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; cursor: pointer; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.9rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a { font-size: 0.9rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--primary); }

/* =============================================
   FLOATING ELEMENTS
   ============================================= */
.floating-whatsapp { position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; text-decoration: none; z-index: 900; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all 0.3s var(--ease-out); }
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.back-to-top { position: fixed; bottom: 2rem; right: 6rem; width: 45px; height: 45px; background: var(--dark-card); border: 1px solid rgba(10,255,239,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; text-decoration: none; z-index: 900; opacity: 0; visibility: hidden; transition: all 0.3s var(--ease-out); cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: var(--dark); transform: translateY(-3px); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-content .section-label { justify-content: center; }
    .about-content .section-title { text-align: center; }
    .about-text { text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { display: none; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-grid.reverse { direction: ltr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-logo-img { height: 65px; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .hero-container { padding: 7rem 1.5rem 3rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-float-card { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .process-timeline { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 5rem 0; }
    .container { padding: 0 1.5rem; }
    .contact-form-wrapper { padding: 2rem; }
}
@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .stat-item { padding: 1rem; }
    .floating-whatsapp { bottom: 1.5rem; right: 1.5rem; }
    .back-to-top { right: 5rem; bottom: 1.5rem; }
}
/* ========== BATCH FIXES ========== */

/* Services page — reduce spacing between sections */
#page-services .section { padding-top: 2rem !important; padding-bottom: 3rem !important; }
#page-services .section:first-of-type { padding-top: 0.5rem !important; }
#page-services .service-detail { margin-bottom: 1.5rem; }
#page-services .page-hero { padding-bottom: 1rem !important; }

/* Remove cursor pointer on non-clickable service page tiles */
.page[id^="page-service-"] .service-card {
    cursor: default;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.page[id^="page-service-"] .service-card:hover {
    transform: none;
    border-color: rgba(255,255,255,0.05);
    box-shadow: none;
}
.page[id^="page-service-"] .service-card:hover::before {
    opacity: 0;
}
.page[id^="page-service-"] .service-card .service-icon {
    margin: 0 auto 1.5rem;
}
.page[id^="page-service-"] .service-card h3 {
    text-align: center;
    width: 100%;
}
.page[id^="page-service-"] .service-card p {
    text-align: center;
    width: 100%;
}
/* About Us — Story section with background image */
.about-story-section {
    padding: 7rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
}
.about-story-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.88) 0%, rgba(26,16,64,0.85) 100%);
    z-index: 1;
}
.about-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.about-content-wrapper .about-content .section-label {
    justify-content: center;
}
.about-content-wrapper .about-content .section-title {
    text-align: center;
}
.about-content-wrapper .about-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 1.5rem;
}
.about-content-wrapper .about-features {
    max-width: 700px;
    margin: 2.5rem auto;
}
/* ========== DROPDOWN MENU ========== */
.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: -20px;
    background: rgba(20, 26, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 255, 239, 0.1);
    border-radius: 14px; padding: 0.5rem;
    min-width: 260px; list-style: none;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    margin-top: 15px;
    z-index: 1000;
}
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block !important;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light) !important;
    transition: all 0.25s var(--ease-out);
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover {
    background: rgba(10, 255, 239, 0.08);
    padding-left: 1.3rem;
    color: var(--primary) !important;
}

/* ========== PRICING CARDS ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.pricing-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(10,255,239,0.1);
}
.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.pricing-card .price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
}
.pricing-card .price small {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}
.pricing-card .price-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.pricing-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}
.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 3rem auto 0; }
    .pricing-card.featured { transform: scale(1); }
}
/* ========== LOGO IMAGE FIXES ========== */

/* Preloader Logo */
.preloader-logo-img {
    width: 280px;
    height: auto;
    opacity: 0;
    max-width: 80%;
}

/* Navigation Logo */
.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.nav-logo-img {
    height: 90px;
    width: auto;
    transition: height 0.3s var(--ease-out);
    display: block;
}
.navbar.scrolled .nav-logo-img {
    height: 70px;
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 1.2rem;
    cursor: pointer;
}
.footer-logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* Mobile Logo Adjustment */
@media (max-width: 768px) {
    .nav-logo-img { height: 70px; }
    .navbar.scrolled .nav-logo-img { height: 55px; }
    .footer-logo img { height: 85px; }
    .preloader-logo-img { width: 220px; }
}

/* ========== COLORED SOCIAL ICONS ========== */
.footer-social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.footer-social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
    padding: 8px;
}
.footer-social-icons a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}
.footer-social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* ========== CENTERED SERVICE CARDS (Home Page) ========== */
.service-card-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.service-card-centered .service-icon-img {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10,255,239,0.1), rgba(108,63,255,0.1));
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    padding: 15px;
    transition: transform 0.4s var(--ease-out);
}
.service-card-centered .service-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.service-card-centered:hover .service-icon-img {
    transform: scale(1.1) rotate(-5deg);
}
.service-card-centered h3 {
    text-align: center;
    width: 100%;
}
.service-card-centered p {
    text-align: center;
    width: 100%;
    flex-grow: 1;
}
.service-card-centered .learn-more {
    justify-content: center;
    margin: 1.5rem auto 0;
}

/* ========== TESTIMONIAL SWIPER ========== */
.testimonial-swiper {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.6s var(--ease-out);
    will-change: transform;
}
.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}
.testimonial-swiper .testimonial-card {
    text-align: center;
    padding: 3rem 2.5rem;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    position: relative;
}
.testimonial-swiper .testimonial-stars {
    justify-content: center;
    margin-bottom: 1.5rem;
}
.testimonial-swiper .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--light);
    font-style: italic;
}
.testimonial-swiper .testimonial-author {
    justify-content: center;
    text-align: left;
}
.testimonial-swiper .testimonial-avatar {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(10,255,239,0.3);
}

/* Swiper Controls */
.swiper-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
.swiper-btn {
    width: 48px;
    height: 48px;
    background: var(--dark-card);
    border: 1px solid rgba(10,255,239,0.2);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-size: 1.1rem;
    font-family: inherit;
}
.swiper-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.1);
}
.swiper-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}
.swiper-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
    padding: 0;
}
.swiper-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .testimonial-swiper .testimonial-card {
        padding: 2rem 1.5rem;
    }
    .testimonial-swiper .testimonial-text {
        font-size: 0.95rem;
    }
}
/* ========== SERVICES PAGE EXPLORE BUTTONS ========== */
.service-explore-btn {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.service-explore-btn:hover {
    gap: 0.8rem;
}

/* Add spacing after the features list */
.service-detail .service-features {
    margin-bottom: 2rem;
}
/* ========== ABOUT US PAGE CENTERING FIXES ========== */

/* Center all tiles in Values section (What Drives Us Every Day) */
#page-about .values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

#page-about .value-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 380px;
}

#page-about .value-card .value-icon {
    margin: 0 auto 1.5rem;
    text-align: center;
}

#page-about .value-card h3 {
    text-align: center;
    width: 100%;
}

#page-about .value-card p {
    text-align: center;
    width: 100%;
}

/* Center About Features (Agile Development, etc.) */
#page-about .about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 2.5rem auto;
    justify-items: center;
}

#page-about .about-feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 100%;
    max-width: 320px;
}

/* Make sure Our Story is fully centered */
#page-about .about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

#page-about .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#page-about .about-content .section-label {
    justify-content: center;
    margin: 0 auto 1rem;
}

#page-about .about-content .section-title {
    text-align: center;
    margin: 0 auto 1.5rem;
}

#page-about .about-content .about-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 1.5rem;
}

#page-about .about-content .btn-primary {
    margin: 1rem auto 0;
}

/* Center the Stats section tiles on About page */
#page-about .stats-grid {
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#page-about .stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #page-about .values-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    #page-about .about-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}
/* ========== PORTFOLIO VIEW BUTTON ========== */
.portfolio-item {
    cursor: pointer;
}

.portfolio-view-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    transition: gap 0.3s var(--ease-out);
}

/* ========== PORTFOLIO POPUP MODAL ========== */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
}

.portfolio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.portfolio-modal-content {
    position: relative;
    background: var(--dark-card);
    border: 1px solid rgba(10, 255, 239, 0.1);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-out);
}

.portfolio-modal.active .portfolio-modal-content {
    transform: scale(1);
}

.portfolio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    padding: 0;
}

.portfolio-modal-close:hover {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(90deg);
}

.portfolio-modal-inner {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark-card);
}

.portfolio-modal-inner::-webkit-scrollbar {
    width: 8px;
}

.portfolio-modal-inner::-webkit-scrollbar-track {
    background: var(--dark-card);
}

.portfolio-modal-inner::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.portfolio-modal-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.portfolio-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-modal-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--dark-card) 100%);
}

.portfolio-modal-body {
    padding: 2.5rem;
}

.portfolio-modal-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(10, 255, 239, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.portfolio-modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portfolio-modal-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.portfolio-modal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(10, 14, 26, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-modal-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.portfolio-modal-section p {
    font-size: 1rem;
    color: var(--light);
    line-height: 1.8;
}

.portfolio-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-modal-detail {
    padding: 1.2rem;
    background: rgba(10, 14, 26, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
}

.portfolio-modal-body .btn-primary {
    display: inline-flex;
    cursor: pointer;
    margin-top: 1rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portfolio-modal {
        padding: 1rem 0.5rem;
    }
    .portfolio-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    .portfolio-modal-image {
        height: 220px;
    }
    .portfolio-modal-body {
        padding: 1.5rem;
    }
    .portfolio-modal-details {
        grid-template-columns: 1fr;
    }
    .portfolio-modal-title {
        font-size: 1.5rem;
    }
    .portfolio-modal-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}