/* 
 * CTech Solutions - Premium Design System
 * Modern, Clean, and Dynamic Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Option 3: Bright & Energetic */
    --primary: #00d2ff;
    --primary-dark: #3a7bd5;
    --primary-light: #8edefc;
    --secondary: #92fe9d;
    --accent: #ff6a00;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #ffffff;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Semantic Colors */
    --success: #00e676;
    --warning: #ffea00;
    --danger: #ff1744;
    --info: #00b0ff;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --grad-secondary: linear-gradient(135deg, #92fe9d 0%, #00c9ff 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,210,255,0.1);
    --shadow-md: 0 8px 16px -2px rgba(0,210,255,0.15), 0 4px 8px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,210,255,0.2), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 30px 40px -10px rgba(0,210,255,0.25), 0 15px 15px -10px rgba(0,0,0,0.05);
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1280px;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* 3D Perspective & Glow variables */
    --perspective: 1000px;
    --glow-cyan: 0 0 20px rgba(0, 210, 255, 0.5);
    --glow-purple: 0 0 20px rgba(138, 43, 226, 0.5);
    --glow-emerald: 0 0 20px rgba(146, 254, 157, 0.5);
}

[data-theme="dark"] {
    --light: #0f172a;
    --white: #1e293b;
    --dark: #f8fafc;
    --dark-light: #f1f5f9;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-400: #94a3b8;
    --gray-600: #cbd5e1;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Premium UI Enhancements */
::selection {
    background: var(--primary);
    color: #0f172a;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--grad-primary);
    border-radius: 10px;
}

/* Page Entrance Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    animation: pageReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    pointer-events: none;
}

@keyframes pageReveal {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

button, input, textarea {
    font-family: inherit;
    outline: none;
}

/* Typography Utilities */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--gray-600);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.flex-column { flex-direction: column !important; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid { display: grid; }

/* Display Utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-flex { display: flex !important; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-icon {
    background: rgba(0,0,0,0.03);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Header */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    background: var(--white);
    height: 70px;
    box-shadow: var(--shadow-md);
}

header .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    flex: 1; /* Pushes nav to center */
}

.logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.88rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex: 1; /* Matches logo flex to keep nav centered */
}

.lang-switcher {
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0,0,0,0.04);
    padding: 4px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.btn-icon {
    background: rgba(0,0,0,0.04);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    backdrop-filter: blur(15px);
    z-index: 10000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 50px rgba(0,0,0,0.15);
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #00d2ff, #3a7bd5, #92fe9d, #00c9ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-slider-active .swiper {
    width: 100%;
    height: 100%;
}

.hero-slider-active .swiper-slide {
    display: flex;
    align-items: center;
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out;
}

.hero-slider-active .swiper-slide-active {
    opacity: 1 !important;
}

.hero-slider-active .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-slider-active .swiper-pagination-bullet-active {
    background: var(--white);
    width: 25px;
    border-radius: 5px;
}

.hero-slider-active .swiper-pagination {
    bottom: 40px !important;
}

.hero-slider-active .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    transition: var(--transition);
}

.hero-slider-active .swiper-pagination-bullet-active {
    background: var(--white);
    width: 35px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatShape 20s infinite linear;
}

.shape-1 { width: 100px; height: 100px; top: 20%; left: 10%; animation-duration: 25s; }
.shape-2 { width: 150px; height: 150px; bottom: 20%; right: 10%; animation-duration: 30s; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.shape-3 { width: 80px; height: 80px; top: 60%; left: 40%; animation-duration: 20s; }

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 80px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Ensure content stays above shapes and 3D canvas */
.hero .container {
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    transition: var(--transition);
    z-index: -1;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 210, 255, 0.25);
    border-color: var(--primary);
}

.card:hover::before {
    top: -50%;
    left: -50%;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--grad-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.card:hover .card-icon {
    transform: rotateY(180deg);
    background: var(--grad-secondary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.text-link i {
    transition: var(--transition);
}

.card:hover .text-link i {
    transform: translateX(10px);
}

.card:hover .text-link {
    color: var(--primary-dark);
}
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-about p {
    color: var(--gray-400);
    margin-top: 1.5rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: var(--gray-400);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.5s ease;
}

.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Portfolio & Masonry */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--grad-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.masonry-grid {
    columns: 3;
    column-gap: 2rem;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 210, 255, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(20px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.05;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.testimonial-card:hover::before {
    transform: scale(1.2) rotate(-10deg);
    opacity: 0.1;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-100);
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-author img {
    border-color: var(--primary);
    transform: scale(1.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-card {
    background: var(--grad-primary);
    border-radius: 50px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 40px 100px -20px rgba(0, 210, 255, 0.4);
}

.cta-shapes .shape {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
.cta-shape-2 { width: 150px; height: 150px; bottom: -50px; left: 10%; opacity: 0.5; }

.contact-form-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.btn-initialize {
    background: var(--dark);
    color: var(--white);
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.btn-initialize:hover {
    background: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.4);
}

.cta-content {
    position: relative;
    z-index: 2;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

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

/* Animations */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-image img {
    animation: hero-float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse-glow 2s infinite;
}

/* Mobile Responsive */
/* Utility Classes */
.bg-primary-subtle { background: rgba(0, 210, 255, 0.1); }
.text-primary { color: var(--primary); }
.rounded-pill { border-radius: 50px; }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Avatar Grouping */
.avatar-group {
    display: flex;
    align-items: center;
}
.avatar-group img {
    margin-left: -15px;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.avatar-group img:first-child { margin-left: 0; }
.avatar-group img:hover { transform: translateY(-5px); z-index: 10; }

.ms-n3 { margin-left: -1rem !important; }

/* Buttons Enhancement */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Home Section Wrapper */
.home-section-wrapper {
    position: relative;
    width: 100%;
}

/* Form Styling */
.form-control, .form-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

/* Section Specific Fixes */
.section-contact {
    padding: 0 0 100px;
}

@media (max-width: 1280px) and (min-width: 992px) {
    .nav-links {
        gap: 1.2rem;
    }
    .nav-link {
        font-size: 0.85rem;
    }
    .header-actions {
        gap: 0.8rem;
    }
    .header-actions .btn {
        padding: 8px 16px;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 1140px) and (min-width: 992px) {
    .nav-links {
        gap: 0.7rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .header-actions .btn {
        padding: 6px 12px;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 992px) {
    .section-padding { padding: 60px 0; }
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .masonry-grid { columns: 2; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .masonry-grid { columns: 1; }
    .container { padding: 0 1.5rem; }
}

/* Homepage Contact Section */
.home-contact-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.home-contact-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.home-office-map {
    width: 100%;
    height: 250px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.cinematic-map {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 2;
    background: transparent;
    filter: grayscale(1) invert(0.9) contrast(1.2) brightness(1.1);
    transition: var(--transition);
}

.cinematic-map:hover {
    filter: grayscale(0) invert(0) contrast(1) brightness(1);
}

@media (max-width: 992px) {
    .home-contact-card { padding: 2.5rem; }
    .home-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .home-office-map { height: 200px; }
}

/* ──────────────────────────────────────────────────────────────────────────────
 * 3D, GLASSMORPHISM & AURORA OVERLAYS
 * ────────────────────────────────────────────────────────────────────────────── */

/* Hero Canvas Layer */
#hero-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 3D Tilt Component */
.tilt-3d {
    transform-style: preserve-3d;
    transform: perspective(var(--perspective)) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.tilt-3d-child {
    transform: translateZ(30px) scale(0.95);
    transform-style: preserve-3d;
}

/* Glare overlay for shiny dynamic reflections */
.glare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.tilt-3d:hover .glare-overlay {
    opacity: 1;
}

/* Glassmorphism Panels */
.glassmorphic-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.08) !important;
}

[data-theme="dark"] .glassmorphic-card {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3) !important;
}

/* Floating Aurora Orbs in Background */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

[data-theme="dark"] .aurora-orb {
    opacity: 0.45;
}

.aurora-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.6) 0%, rgba(58, 123, 213, 0) 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.aurora-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.6) 0%, rgba(138, 43, 226, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.aurora-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(146, 254, 157, 0.5) 0%, rgba(0, 201, 255, 0) 70%);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1) rotate(180deg);
    }
    100% {
        transform: translate(-40px, -60px) scale(0.9) rotate(360deg);
    }
}

/* Neon Glow utilities */
.glow-cyan:hover {
    box-shadow: var(--glow-cyan) !important;
    border-color: var(--primary) !important;
}

.glow-purple:hover {
    box-shadow: var(--glow-purple) !important;
    border-color: #8a2be2 !important;
}

.glow-emerald:hover {
    box-shadow: var(--glow-emerald) !important;
    border-color: #92fe9d !important;
}

/* ──────────────────────────────────────────────────────────────────────────────
 * RESPONSIVE GRID & LAYOUT PATCHES FOR MOBILE & TABLET VIEWPORTS
 * ────────────────────────────────────────────────────────────────────────────── */

/* Scale down header logo on small phone screens */
@media (max-width: 480px) {
    .logo span {
        font-size: 1.05rem !important;
        letter-spacing: -0.3px !important;
    }
    header .container {
        padding: 0 1rem !important;
    }
}
@media (max-width: 360px) {
    .logo span {
        font-size: 0.95rem !important;
    }
}

/* Base Responsive Grids Overrides */
@media (max-width: 992px) {
    /* Collapse hero 2-column layout on mobile */
    .hero .grid,
    .hero-swiper .swiper-slide .grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        align-items: center !important;
        text-align: center !important;
        min-height: auto !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-title {
        font-size: 2.8rem !important;
    }

    .hero-btns {
        justify-content: center !important;
    }

    .hero-image {
        margin-top: 2rem !important;
        max-width: 450px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Collapse homepage section layouts and container grids */
    .home-section-wrapper .container.grid,
    .section-padding .container.grid,
    main .section-padding .container.grid,
    .container > .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Collapse homepage about illustration & map */
    .about-illustration-container {
        margin-top: 2rem !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .about-illustration-container img {
        max-width: 450px !important;
        width: 100% !important;
    }
    
    /* Homepage success stories header flex direction */
    .section-testimonials .d-flex.justify-between.align-center,
    .section-portfolio .d-flex.justify-between.align-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Collapse contact page grids & form fields */
    .page-contact .grid,
    .page-contact form .grid,
    .page-careers form .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Story page inner cards (mission & vision) */
    .page-about .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Collapsing stats grid on homepage & pages to 2 columns */
    .grid:has(.stat-item),
    .section-padding .container.grid:has(.stat-item) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1rem !important;
    }
    
    /* Collapsing project-detail grid */
    .page-project-detail .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    /* Stats grid to 1 column on extra small viewports */
    .grid:has(.stat-item),
    .section-padding .container.grid:has(.stat-item) {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .hero-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .hero-btns .btn {
        width: 100% !important;
    }
    
    /* Map element aspect ratio for small screens */
    .home-office-map {
        height: 250px !important;
    }
}

/* Fix CSS grid minmax auto-fit wrapping overflow issues on small devices */
.grid[style*="minmax("] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

@media (max-width: 350px) {
    .grid[style*="minmax("] {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }
}

/* Blog Page Newsletter Section Responsive Overrides */
@media (max-width: 768px) {
    .page-blog .section-padding .card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2rem !important;
        padding: 2.5rem 2rem !important;
    }
    .page-blog .section-padding .card[style*="display: flex"] form {
        flex-direction: column !important;
    }
}

/* Chat Widget Width Responsive Fix */
.chat-widget-container {
    width: 350px !important;
    max-width: calc(100vw - 40px) !important;
}


