/* ============================================================
   DITHER INDIA — Professional Parallax SPA Stylesheet
   CSS Custom Properties for Dynamic Theming
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #0d6efd;
    --primary-rgb: 13, 110, 253;
    --primary-dark: #0a58ca;
    --secondary: #6610f2;
    --secondary-rgb: 102, 16, 242;
    --accent: #0dcaf0;
    --accent-rgb: 13, 202, 240;

    --dark: #0f1624;
    --dark-2: #1a2332;
    --dark-3: #243040;
    --light: #f8f9fc;
    --light-2: #eef1f6;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --white: #ffffff;

    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-2));

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-color: 0 8px 30px rgba(var(--primary-rgb), 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL RESETS ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    text-align: center;
    position: relative;
    width: 100px;
    height: 100px;
}

.spinner-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--accent);
    animation-delay: -0.3s;
    animation-direction: reverse;
}

.spinner-ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--secondary);
    animation-delay: -0.6s;
}

.preloader-text {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== THEME SWITCHER ==================== */
.theme-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
}

.theme-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-color);
}

.theme-panel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 240px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.theme-panel-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.theme-preset {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    cursor: pointer;
    padding: 3px;
    background: var(--white);
    transition: var(--transition);
}

.theme-preset span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.theme-preset.active,
.theme-preset:hover {
    border-color: var(--dark);
    transform: scale(1.05);
}

.custom-color-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.custom-color-inputs label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-3);
}

.custom-color-inputs input[type="color"] {
    width: 35px;
    height: 28px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
}

.btn-apply-theme {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 0;
    font-weight: 600;
    margin-bottom: 6px;
    transition: var(--transition);
}

.btn-apply-theme:hover {
    opacity: 0.9;
    color: var(--white);
}

.btn-reset-theme {
    width: 100%;
    background: var(--light-2);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 0;
    font-weight: 500;
    transition: var(--transition);
}

.btn-reset-theme:hover {
    background: var(--gray-light);
}

/* ==================== ADMIN STYLES ==================== */
.admin-modal-content {
    background: var(--dark);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}

.admin-modal-content .form-control {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.admin-modal-content .form-control:focus {
    background: var(--dark-3);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    color: var(--white);
}

.admin-modal-content .form-label {
    color: var(--gray-light);
    font-size: 0.85rem;
}

.admin-modal-content .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.admin-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    z-index: 10001;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

.admin-toolbar span {
    font-weight: 500;
}

body.admin-mode #mainNav {
    top: 44px;
}

body.admin-mode .editable {
    outline: 2px dashed rgba(var(--primary-rgb), 0.5);
    outline-offset: 3px;
    cursor: text;
    position: relative;
    transition: outline-color 0.2s;
    min-height: 1em;
}

body.admin-mode .editable:hover {
    outline-color: var(--primary);
    outline-style: solid;
}

body.admin-mode .editable:focus {
    outline-color: var(--accent);
    outline-style: solid;
    outline-width: 3px;
    background: rgba(var(--accent-rgb), 0.05);
}

.btn-admin-login {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0;
}

.btn-admin-login:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ==================== NAVIGATION ==================== */
#mainNav {
    padding: 15px 0;
    transition: var(--transition-slow);
    background: transparent;
    z-index: 10000;
}

#mainNav.scrolled {
    background: rgba(15, 22, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* ==================== PARALLAX SECTIONS ==================== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,22,36,0.85), rgba(var(--primary-rgb),0.4));
    z-index: 1;
}

.overlay-dark {
    background: linear-gradient(135deg, rgba(15,22,36,0.9), rgba(15,22,36,0.7)) !important;
}

.overlay-gradient {
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.85), rgba(var(--secondary-rgb),0.85)) !important;
}

.parallax-section .container {
    position: relative;
    z-index: 2;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
    perspective: 800px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    min-width: 2ch;
    min-height: 1.2em;
    filter: drop-shadow(0 2px 15px rgba(var(--primary-rgb), 0.35));
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    margin-bottom: 50px;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.5);
    color: var(--white);
}

.btn-hero-outline {
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.stat-num-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    white-space: nowrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounceDown 2s infinite;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.6);
    font-size: 1.8rem;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--white);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== SECTION COMMON ==================== */
.section-padding {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.badge-light {
    background: rgba(255,255,255,0.15);
    color: var(--accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transform-style: preserve-3d;
    perspective: 600px;
    position: relative;
}

.section-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.section-divider span {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.divider-light span {
    background: var(--gradient-accent);
}

.section-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==================== ABOUT SECTION ==================== */
.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    object-fit: cover;
    height: 500px;
    width: 100%;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.3;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    margin-top: 30px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-feature-item:hover {
    box-shadow: var(--shadow-color);
    transform: translateY(-3px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
}

.about-feature-item h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.about-feature-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ==================== WHY CHOOSE US ==================== */
.parallax-mid-section {
    padding: 100px 0;
}

.why-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 800px;
    transform: translateZ(0);
}

.why-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-12px) translateZ(25px) rotateX(3deg);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(var(--primary-rgb), 0.15);
}

.why-card i {
    transform: translateZ(30px);
}

.why-card i,
.why-card .why-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

.why-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.why-card p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* ==================== SERVICES SECTION ==================== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px) translateZ(20px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.15), 0 10px 20px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
}

.service-card:hover .service-icon-wrapper i {
    color: var(--white);
}

.service-card h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ==================== CTA SECTION ==================== */
.parallax-cta-section {
    padding: 100px 0;
}

.btn-cta-light {
    background: var(--white);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid var(--light-2);
    padding: 8px 25px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.portfolio-card:hover {
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.2), 0 15px 25px rgba(0,0,0,0.12);
    transform: translateY(-15px) translateZ(20px) rotateY(2deg);
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    width: fit-content;
}

.portfolio-overlay h5 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.4;
}

/* Portfolio item animation */
.portfolio-item {
    transition: var(--transition-slow);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

.portfolio-item.visible {
    opacity: 1;
    transform: scale(1);
    position: relative;
    visibility: visible;
}

/* ==================== TEAM SECTION ==================== */
.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.team-card:hover {
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.15), 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-15px) translateZ(30px) rotateX(3deg);
}

.team-img-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    transform: translateY(100%);
    transition: var(--transition);
}

.team-card:hover .team-social {
    transform: translateY(0);
}

.team-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-info p {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.parallax-testimonial-section {
    padding: 100px 0;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 35px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 800px;
    transform: translateZ(0);
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-12px) translateZ(20px) rotateX(2deg);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 25px rgba(var(--primary-rgb), 0.1);
}

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-author h6 {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 0.85rem;
    display: flex;
    gap: 3px;
}

/* ==================== TECH SECTION ==================== */
.tech-section {
    background: var(--white);
    overflow: hidden;
}

.tech-carousel {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 40px;
    animation: scrollTech 30s linear infinite;
    width: max-content;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--light);
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

@keyframes scrollTech {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== CONTACT SECTION ==================== */
.contact-info-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    height: 100%;
    color: var(--white);
}

.contact-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-info-item h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

.contact-info-item a {
    color: rgba(255,255,255,0.8);
}

.contact-info-item a:hover {
    color: var(--accent);
}

.contact-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-form-card .form-control {
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.contact-form-card .form-floating > label {
    padding: 12px 16px;
}

.btn-submit-contact {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    color: var(--white);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    margin-right: 8px;
    font-size: 0.7rem;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 70px 0;
    }

    .about-img {
        height: 350px;
    }

    .about-experience-badge {
        right: 10px;
        bottom: -10px;
        padding: 20px;
    }

    .exp-number {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: rgba(15, 22, 36, 0.98);
        border-radius: var(--radius-md);
        padding: 15px;
        margin-top: 10px;
    }

    .theme-switcher {
        right: 10px;
        top: auto;
        bottom: 90px;
        transform: none;
    }

    .theme-panel {
        right: 0;
        top: auto;
        bottom: 60px;
        transform: scale(0.8);
    }

    .theme-panel.active {
        transform: scale(1);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 0 0 calc(33.33% - 15px);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .about-subtitle {
        font-size: 1.4rem;
    }

    .about-img {
        height: 250px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }

    .parallax-mid-section,
    .parallax-cta-section,
    .parallax-testimonial-section {
        padding: 70px 0;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .theme-switcher {
        bottom: 65px;
    }
}

@media (max-width: 575.98px) {
    .hero-tagline {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .portfolio-img-wrapper {
        height: 220px;
    }
}

/* ==================== UTILITY ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== CURSOR GLOW ==================== */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0;
    mix-blend-mode: screen;
}

.cursor-glow.active {
    opacity: 1;
}

/* ==================== PARTICLE CANVAS ==================== */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ==================== FLOATING SHAPES ==================== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-shapes-subtle {
    z-index: 1;
}

.shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 80px; height: 80px;
    top: 15%; left: 5%;
    border-radius: 50%;
    border-color: rgba(var(--primary-rgb), 0.2);
    animation-duration: 18s;
    animation-delay: 0s;
}

.shape-2 {
    width: 50px; height: 50px;
    top: 70%; left: 15%;
    border-color: rgba(var(--accent-rgb), 0.15);
    animation-duration: 22s;
    animation-delay: -3s;
    transform: rotate(45deg);
}

.shape-3 {
    width: 120px; height: 120px;
    top: 25%; right: 10%;
    border-radius: 50%;
    border-color: rgba(var(--secondary-rgb), 0.12);
    animation-duration: 25s;
    animation-delay: -5s;
}

.shape-4 {
    width: 40px; height: 40px;
    top: 60%; right: 20%;
    border-color: rgba(var(--primary-rgb), 0.15);
    animation-duration: 20s;
    animation-delay: -8s;
    border-radius: 8px;
}

.shape-5 {
    width: 60px; height: 60px;
    top: 80%; left: 55%;
    border-radius: 50%;
    border-color: rgba(var(--accent-rgb), 0.1);
    animation-duration: 23s;
    animation-delay: -2s;
}

.shape-6 {
    width: 35px; height: 35px;
    top: 10%; left: 65%;
    border-color: rgba(255,255,255,0.08);
    animation-duration: 19s;
    animation-delay: -7s;
    transform: rotate(30deg);
}

.shape-7 {
    width: 90px; height: 90px;
    top: 45%; left: 80%;
    border-radius: 50%;
    border-color: rgba(var(--primary-rgb), 0.1);
    animation-duration: 26s;
    animation-delay: -4s;
}

.shape-8 {
    width: 25px; height: 25px;
    top: 35%; left: 40%;
    border-color: rgba(var(--accent-rgb), 0.12);
    animation-duration: 17s;
    animation-delay: -10s;
    border-radius: 4px;
    transform: rotate(60deg);
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg);
        opacity: 0.8;
    }
}

/* ==================== GRADIENT ORBS ==================== */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -10%; right: -5%;
    animation-duration: 18s;
}

.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -10%; left: 10%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: 40%; left: 50%;
    animation-duration: 20s;
    animation-delay: -8s;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.15); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ==================== WAVE DIVIDER ==================== */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 120px;
}

.wave-1 {
    fill: rgba(var(--primary-rgb), 0.15);
    animation: waveMove 8s ease-in-out infinite;
}

.wave-2 {
    fill: rgba(var(--primary-rgb), 0.08);
    animation: waveMove 10s ease-in-out infinite reverse;
}

.wave-3 {
    fill: var(--light);
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

/* ==================== SECTION BG PATTERNS ==================== */
.services-section {
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 25% 25%, var(--primary) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--secondary) 2px, transparent 2px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.pattern-dots {
    background-image:
        radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.04;
}

/* ==================== NUMBER COUNTER SECTION ==================== */
.parallax-numbers-section {
    padding: 80px 0;
}

.number-card {
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 800px;
    transform: translateZ(0);
}

.number-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-15px) translateZ(30px) scale(1.05) rotateX(3deg);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 30px rgba(var(--primary-rgb), 0.15);
}

.number-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.number-value {
    font-size: 3rem;
    font-weight: 900;
    display: inline;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.number-label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== FOOTER WAVE ==================== */
.footer-wave {
    line-height: 0;
    margin-top: -2px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100px;
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== ENHANCED CARD EFFECTS ==================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* Glassmorphism for why-cards */
.why-card {
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(255,255,255,0.05), transparent);
    transition: top 0.6s ease;
}

.why-card:hover::before {
    top: 100%;
}

/* Testimonial card glow */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transition: left 0.5s ease;
}

.testimonial-card:hover::before {
    left: 0;
}

/* Team card overlay glow */
.team-card {
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.team-card:hover::before {
    transform: scaleX(1);
}

/* ==================== ANIMATED GRADIENT BG (Hero + CTA) ==================== */
.hero-section .parallax-overlay {
    background:
        linear-gradient(135deg, rgba(15,22,36,0.88), rgba(var(--primary-rgb),0.3)),
        linear-gradient(45deg, rgba(var(--secondary-rgb),0.2), transparent);
    animation: gradientShift 15s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==================== TYPEWRITER EFFECT ==================== */
.typewriter-target {
    position: relative;
    display: inline-block;
    min-width: 2ch;
    min-height: 1.2em;
    vertical-align: baseline;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 0.75s step-end infinite;
    vertical-align: text-bottom;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(var(--primary-rgb), 0.3);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==================== 3D TILT ON CARDS (via JS) ==================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card-inner {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

/* ==================== MAGNETIC BUTTONS ==================== */
.btn-hero-primary,
.btn-hero-outline,
.btn-cta-light,
.btn-submit-contact {
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before,
.btn-cta-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hero-primary:hover::before,
.btn-cta-light:hover::before {
    width: 400px;
    height: 400px;
}

/* ==================== PORTFOLIO TILT HOVER ==================== */
.portfolio-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-card:hover {
    box-shadow:
        0 20px 60px rgba(var(--primary-rgb), 0.2),
        0 0 0 1px rgba(var(--primary-rgb), 0.1);
}

/* ==================== SECTION REVEAL LINES ==================== */
.section-divider span {
    position: relative;
    overflow: hidden;
}

.section-divider span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ==================== ABOUT IMAGE PARALLAX TILT ==================== */
.about-image-wrapper {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-lg);
    z-index: -1;
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.02); opacity: 1; }
}

.about-experience-badge {
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==================== ENHANCED SCROLL INDICATOR ==================== */
.scroll-indicator {
    z-index: 4;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-indicator a::before {
    content: '';
    display: block;
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Smooth transitions for theme changes */
body,
.service-card,
.team-card,
.portfolio-card,
.contact-form-card,
.about-feature-item,
.btn-hero-primary,
.btn-submit-contact,
.service-icon-wrapper,
.feature-icon,
.filter-btn,
.why-card,
.testimonial-card,
.number-card {
    transition: var(--transition);
}

/* ==================== PARALLAX DEPTH LAYERS ==================== */
.parallax-section .container {
    transform: translateZ(0);
}

/* Glass morphism stat items */
.hero-stats .stat-item {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-stats .stat-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ==================== SERVICE CARD NUMBER ==================== */
.service-card {
    counter-increment: service-counter;
}

.service-card .service-icon-wrapper::before {
    content: '0' counter(service-counter);
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.06);
    font-family: var(--font-heading);
    line-height: 1;
    pointer-events: none;
}

.service-card .service-icon-wrapper {
    position: relative;
}

/* Reset counter on the services section */
.services-section .row {
    counter-reset: service-counter;
}


/* ============================================================
   ADVANCED 3D EFFECTS
   ============================================================ */

/* 3D Hero Content - multi-layer depth */
.hero-content {
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* NOTE: individual hero child transforms are handled by JS parallax
   to avoid static CSS overrides breaking layout */

/* 3D Section Title Reveal */
.section-header {
    perspective: 800px;
    transform-style: preserve-3d;
}

.section-title {
    animation: titleFloat 5s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateZ(0) rotateX(0); }
    50% { transform: translateZ(10px) rotateX(1deg); }
}

/* 3D Depth Shadow Layers on all cards */
.service-card::after,
.team-card::after,
.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after,
.team-card:hover::after,
.portfolio-card:hover::after {
    inset: -4px;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

/* 3D floating icon animation */
.service-icon-wrapper {
    transform-style: preserve-3d;
}

.service-card:hover .service-icon-wrapper {
    transform: translateZ(40px) rotateY(8deg);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.25);
}

.service-card:hover .service-icon-wrapper i {
    transform: translateZ(10px);
    text-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* 3D Perspective nav */
.navbar {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.navbar .nav-link:hover {
    transform: translateZ(5px) scale(1.05);
}

/* 3D Hero Stat Items */
.hero-stats .stat-item {
    transform-style: preserve-3d;
    perspective: 500px;
}

.hero-stats .stat-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.hero-stats .stat-number {
    color: var(--white);
    font-weight: 800;
}

/* 3D why-card icons */
.why-card:hover i {
    transform: translateZ(40px) scale(1.15);
    filter: drop-shadow(0 5px 20px rgba(var(--primary-rgb), 0.4));
}

/* 3D testimonial depth */
.testimonial-card .testimonial-quote {
    transform: translateZ(30px);
    display: block;
}

.testimonial-card:hover .testimonial-quote {
    transform: translateZ(50px) scale(1.1);
}

/* 3D Number cards */
.number-card .number-value {
    transform: translateZ(40px);
    display: inline-block;
}

.number-card:hover .number-value {
    transform: translateZ(60px) scale(1.1);
    filter: drop-shadow(0 5px 20px rgba(var(--primary-rgb), 0.3));
}

.number-card i {
    transform: translateZ(25px);
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.number-card:hover i {
    transform: translateZ(50px) rotateY(15deg) scale(1.2);
}

/* 3D team image hover */
.team-card:hover .team-img {
    transform: scale(1.1) translateZ(10px);
}

.team-card .team-info {
    transform-style: preserve-3d;
}

.team-card:hover .team-info {
    transform: translateZ(20px);
}

/* Section depth illusion with box-shadow layers */
.section-padding {
    position: relative;
}

.section-padding .container {
    position: relative;
    z-index: 2;
}

.section-padding::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(var(--primary-rgb), 0.02));
    pointer-events: none;
    z-index: 1;
}

/* 3D Contact Form Card */
.contact-form-card {
    position: relative;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.12);
}

.contact-form-card form,
.contact-form-card .form-floating,
.contact-form-card .form-control,
.contact-form-card textarea,
.contact-form-card input,
.contact-form-card button {
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

/* Labels must keep position:absolute (Bootstrap form-floating requirement) */
.contact-form-card label {
    z-index: 12;
    pointer-events: none;
}

/* 3D footer depth */
.footer {
    transform-style: preserve-3d;
    perspective: 800px;
}

.footer a:hover {
    transform: translateZ(5px) translateX(3px);
    display: inline-block;
}

/* Deep 3D glow for dark sections */
.parallax-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(8px);
    opacity: 0.3;
    pointer-events: none;
}

/* 3D card inner content lift */
.service-card h4,
.team-card h5 {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover h4 {
    transform: translateZ(20px);
}

.team-card:hover h5 {
    transform: translateZ(15px);
}
