/* ==========================================================================
   tamdijital - Modern Agency Styling & Corporate Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables (Dark theme first, light theme supported)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-primary: #080810;
    --bg-secondary: #0e0f1a;
    --accent-primary: #117dbb; /* Corporate Blue */
    --accent-secondary: #00a8e8; /* Sky Blue for gradient */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-glow: rgba(17, 125, 187, 0.18);
    
    /* Neutral Shades */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --card-bg: rgba(15, 17, 32, 0.5);
    --header-bg: rgba(8, 8, 16, 0.75);
    
    /* Layout Tokens */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.06);
    --card-bg: rgba(255, 255, 255, 0.65);
    --header-bg: rgba(248, 250, 252, 0.8);
    --accent-glow: rgba(17, 125, 187, 0.06);
}

/* --------------------------------------------------------------------------
   2. Reset & Core Structure
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Glowing Blobs */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

body.light-theme .blob {
    opacity: 0.12;
    filter: blur(100px);
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-primary);
}

.blob-2 {
    bottom: -10%;
    left: -5%;
    width: 45vw;
    height: 45vw;
    background: var(--accent-secondary);
}

/* --------------------------------------------------------------------------
   3. Typography & UI Components
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(17, 125, 187, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(17, 125, 187, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

.btn-white {
    background: #ffffff;
    color: #080810;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Sections Header */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.sub-title {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Structure (Premium Glassmorphic)
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Scrolled styling injected by Javascript */
.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 75px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body:not(.light-theme) .main-header.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-accent {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: var(--accent-primary);
    display: inline-block;
    box-shadow: 0 4px 10px rgba(17, 125, 187, 0.4);
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.02);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

body:not(.light-theme) .nav-menu {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    background: rgba(17, 125, 187, 0.08);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-secondary);
    min-width: 250px;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

body:not(.light-theme) .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(17, 125, 187, 0.08);
    color: var(--accent-primary);
    padding-left: 20px;
}

.btn-navbar {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 125, 187, 0.3);
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(17, 125, 187, 0.5);
    background: #00a8e8;
    color: #ffffff;
}

/* Header Utilities */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn {
    background: var(--card-bg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

body:not(.light-theme) .theme-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 8px 15px rgba(17, 125, 187, 0.1);
}

/* Toggle visibility between icons based on state */
body.light-theme .sun-icon { display: none; }
body:not(.light-theme) .moon-icon { display: none; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-toggle .menu-close { display: none; }

/* --------------------------------------------------------------------------
   5. Mobile Navigation Panel
   -------------------------------------------------------------------------- */
.mobile-nav-panel {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 40px 24px;
    overflow-y: auto;
}

.mobile-nav-panel.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

.btn-mobile-cta {
    margin-top: 20px;
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    color: white;
}

/* --------------------------------------------------------------------------
   6. Homepage Layout Blocks
   -------------------------------------------------------------------------- */
.page-content {
    padding-top: 80px; /* Offset fixed header */
    position: relative;
    z-index: 2;
}

/* Hero Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); box-shadow: 0 25px 40px -15px rgba(17, 125, 187, 0.4); }
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Interactive Full-Screen Slider Overhaul */
.interactive-slider-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.slider-backgrounds {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease-out;
    transform: scale(1.05);
}

.slide-bg.active {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.7) 50%, rgba(248, 250, 252, 0) 100%);
}

.slider-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    height: 100%;
    padding-top: 80px; /* Accounts for header */
}

/* Left Content */
.slider-active-content {
    position: relative;
    height: 400px; /* Fixed height to prevent jumping */
}

.slide-content-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(-40%);
}

.slide-content-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    transition-delay: 0.3s;
}

.slide-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.slide-subtitle .line {
    width: 40px;
    height: 2px;
    background-color: var(--text-primary);
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.slide-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
    font-weight: 500;
}

.slide-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background-color: var(--accent-primary);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(17, 125, 187, 0.4);
}

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

.btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--text-primary);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(15, 23, 42, 0.05);
}

/* Right Thumbnails */
.slider-thumbnails-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.thumbnails-track {
    display: flex;
    gap: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.5s ease;
    padding-left: 20px;
}

.thumbnail-card {
    width: 180px;
    height: 280px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.thumbnail-card.active {
    width: 220px;
    height: 320px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.thumb-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    color: var(--text-primary);
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s ease;
}

.thumb-bg-icon i {
    width: 100px; height: 100px;
}

.thumbnail-card.active .thumb-bg-icon {
    opacity: 0.12;
    transform: translate(-50%, -50%) scale(1.2);
}

.thumb-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.08);
    z-index: 1;
    line-height: 1;
    font-family: var(--font-heading);
    pointer-events: none;
    letter-spacing: -2px;
}

.thumb-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
}

.thumb-content {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
}

.thumb-cat {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.thumbnail-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

/* Bottom Nav */
.slider-bottom-nav {
    position: absolute;
    bottom: 40px;
    left: 0; width: 100%;
    z-index: 10;
}

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

.nav-controls {
    display: flex;
    gap: 15px;
}

.nav-btn {
    width: 50px; height: 50px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: var(--text-primary);
    background: rgba(15, 23, 42, 0.05);
}

.nav-progress-wrapper {
    flex-grow: 1;
    margin: 0 40px;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(15, 23, 42, 0.1);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background-color: var(--accent-primary);
    width: 0%;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

.nav-counter {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
}

/* Premium Stats Redesign */
.premium-stats {
    position: relative;
    z-index: 20;
    padding-top: 80px; 
    padding-bottom: 80px;
    background-color: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(17, 125, 187, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(17, 125, 187, 0.15);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-icon-wrapper {
    width: 60px; height: 60px;
    border-radius: 15px;
    background: rgba(17, 125, 187, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-box:hover .stat-icon-wrapper {
    background: var(--accent-primary);
    color: #ffffff;
    transform: rotate(10deg) scale(1.1);
}

.stat-icon-wrapper i {
    width: 28px; height: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 5px 0;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Infinite Marquee Services Block */
.services-marquee-section {
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.marquee-header-container {
    margin-bottom: 60px;
}

.marquee-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
    animation: scrollMarquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    /* Transform must be exactly half the width of the track, 
       since we duplicated the cards perfectly. We use calc to translate half the children */
    100% { transform: translateX(calc(-50% - 15px)); }
}

.marquee-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 380px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
}

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

.m-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(17, 125, 187, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.m-card-icon i {
    width: 32px;
    height: 32px;
}

.marquee-card:hover .m-card-icon {
    background: var(--accent-gradient);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.marquee-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.marquee-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.m-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.m-card-link i {
    width: 18px; height: 18px;
    transition: transform 0.3s ease;
}

.m-card-link:hover {
    color: var(--accent-secondary);
}

.m-card-link:hover i {
    transform: translate(3px, -3px);
}

/* Premium Portfolio Section */
.portfolio-section {
    padding: 100px 0 140px 0;
}

.portfolio-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.portfolio-premium-card {
    position: relative;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.portfolio-premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(5, 8, 16, 0.95) 0%, rgba(5, 8, 16, 0.6) 50%, transparent 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.portfolio-premium-card:hover .portfolio-overlay {
    height: 100%;
    background: linear-gradient(to top, rgba(5, 8, 16, 0.98) 0%, rgba(17, 125, 187, 0.4) 100%);
}

.portfolio-premium-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.portfolio-cat {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.portfolio-premium-card:hover .portfolio-cat {
    transform: translateY(0);
    opacity: 1;
    color: #ffffff;
}

.portfolio-premium-content h3 {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.portfolio-premium-card:hover .portfolio-premium-content h3 {
    transform: translateY(-5px);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-link i {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    padding: 4px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.portfolio-premium-card:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-premium-card:hover .portfolio-link i {
    transform: translate(3px, -3px);
}

/* Contact Section Form Styles */
.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(17, 125, 187, 0.1);
}

.modern-form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(17, 125, 187, 0.4) !important;
}

/* Quick Quote Modal */
.quote-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.quote-modal-container {
    background: var(--bg-primary);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.quote-modal-overlay.active .quote-modal-container {
    transform: translateY(0) scale(1);
}

.quote-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-modal-close:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: rotate(90deg);
}

.quote-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.quote-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.quote-modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-text-left h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    margin: 0;
}

.philosophy-text-right p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.philosophy-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.p-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.p-feature i {
    color: var(--accent-primary);
    width: 24px; height: 24px;
}

/* Process Modern Section */
.process-modern-section {
    padding: 120px 0;
    background-color: var(--bg-secondary);
}

.process-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.process-modern-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(17, 125, 187, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
}

.process-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 125, 187, 0.1);
    border-color: rgba(17, 125, 187, 0.2);
}

.p-step-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(17, 125, 187, 0.05);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.p-step-icon {
    width: 60px; height: 60px;
    background: rgba(17, 125, 187, 0.08);
    color: var(--accent-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.process-modern-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.process-modern-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Modern Dark Glass CTA Section */
.cta-section {
    padding: 80px 0 140px 0;
}

.cta-container {
    position: relative;
    background: linear-gradient(135deg, #090e17 0%, #111a2d 100%);
    border-radius: 30px;
    padding: 100px 60px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Glow effects behind the CTA */
.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(17, 125, 187, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.cta-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 45px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Glow Buttons */
.cta-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #007bb5 0%, #00a8e8 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.4);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 232, 0.6);
}

.cta-buttons .btn-primary i {
    width: 20px;
    height: 20px;
}

.cta-buttons .btn-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   7. Inner Pages Layout Templates (Services/Contact/404)
   -------------------------------------------------------------------------- */
.inner-hero-section {
    padding: 100px 0 60px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.inner-hero-content {
    max-width: 800px;
}

.inner-badge {
    display: inline-block;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.inner-badge a {
    color: var(--text-secondary);
}

.inner-badge a:hover {
    color: var(--accent-primary);
}

.inner-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.inner-hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Large Services Grid listing */
.services-list-section {
    padding: 100px 0;
}

.services-large-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-large-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
}

.service-large-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.service-large-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-index {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-muted);
}

.service-card-body h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.service-card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-quick-quote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.service-quick-quote:hover {
    color: var(--text-primary);
}

/* Progress Workflow Steps */
.process-section {
    padding: 60px 0 120px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.process-step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.process-step:hover {
    border-color: var(--accent-secondary);
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    opacity: 0.15;
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Service Detail View */
.service-detail-section {
    padding: 80px 0;
}

.service-detail-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
}

.detail-card, .features-checklist-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(12px);
}

.detail-icon-badge {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border: 1px solid rgba(17, 125, 187, 0.2);
    color: var(--accent-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.detail-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.detail-text-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.features-checklist-card h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.features-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-checklist li {
    display: flex;
    gap: 20px;
}

.chk-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-checklist h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.features-checklist p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar structure */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    backdrop-filter: blur(12px);
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(17, 125, 187, 0.1) 0%, rgba(0, 168, 232, 0.1) 100%);
    border-color: var(--accent-primary);
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.sidebar-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.sidebar-nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.sidebar-nav-list a.active, .sidebar-nav-list a:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(17, 125, 187, 0.05);
}

.sidebar-nav-list a i {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   8. Contact Page Styling
   -------------------------------------------------------------------------- */
.contact-page-section {
    padding: 80px 0;
}

.contact-page-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-details-panel h2, .contact-form-panel h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.panel-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius-md);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.card-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.map-placeholder-card {
    height: 200px;
    background: linear-gradient(135deg, rgba(17, 125, 187, 0.1), rgba(0, 168, 232, 0.1));
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.map-overlay-content i {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

/* Contact Forms Elements */
.contact-form-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(12px);
}

.agency-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.agency-form input, .agency-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.agency-form input {
    padding-left: 48px; /* Offset icon */
}

body.light-theme .agency-form input, body.light-theme .agency-form textarea {
    background: rgba(255, 255, 255, 0.8);
}

.agency-form input:focus, .agency-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Action Alerts Banners */
.form-alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-icon i {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   9. 404 Error Screen Styling
   -------------------------------------------------------------------------- */
.error-404-section {
    padding: 120px 0 160px 0;
    text-align: center;
}

.error-404-container {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-visual-block {
    position: relative;
    margin-bottom: 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--accent-primary);
    filter: blur(50px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
}

/* --------------------------------------------------------------------------
   10. Footer Section Layout (Premium Light Mode)
   -------------------------------------------------------------------------- */
.main-footer {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    border-top: 1px solid rgba(17, 125, 187, 0.1);
    padding: 100px 0 30px 0;
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    overflow: hidden;
}

/* Subtle glow orb in footer */
.main-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(17, 125, 187, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
    text-align: center;
}

.footer-brand .logo {
    margin-bottom: 25px;
    display: inline-block;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 auto 30px auto;
    max-width: 320px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(17, 125, 187, 0.2);
}

.social-link i {
    width: 18px; height: 18px;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: 0px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.footer-links-list a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-contact {
    text-align: left;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

.footer-contact p i {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 30px;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-bottom-container strong {
    color: var(--text-primary);
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #ff4b4b;
    margin: 0 4px;
    display: inline-block;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    10% { transform: scale(1.2); }
    20% { transform: scale(1); }
    30% { transform: scale(1.2); }
    40% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    background-color: #1ebe57;
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .floating-wa svg {
        width: 26px !important;
        height: 26px !important;
    }
}

/* --------------------------------------------------------------------------
   11. Responsiveness & Adaptive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Interactive Slider Mobile Fixes */
    .interactive-slider-hero {
        min-height: auto;
    }
    
    .slider-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 100px;
        padding-bottom: 120px; /* Space for nav */
    }
    
    .slider-active-content {
        height: auto;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 3.2rem;
    }
    
    .slide-desc {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .slider-thumbnails-wrapper {
        height: 200px;
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }
    
    .thumbnail-card {
        width: 140px;
        height: 180px;
    }
    
    .thumbnail-card.active {
        width: 160px;
        height: 200px;
    }
    
    .slider-bottom-nav {
        bottom: 20px;
    }
    
    .nav-counter {
        font-size: 2.5rem;
    }
    
    .nav-btn {
        width: 40px; height: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-box {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 15px;
    }
    
    .portfolio-premium-grid, .services-large-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps, .process-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-container {
        grid-template-columns: 1fr;
    }
    
    .contact-page-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }
    
    .nav-menu {
        display: none; /* Hide standard nav on mobile */
    }
    
    .mobile-toggle {
        display: flex; /* Show mobile menu trigger */
    }
    
    body.menu-open .menu-open { display: none; }
    body.menu-open .menu-close { display: flex; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-premium-grid, .services-large-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps, .process-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .philosophy-features {
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2.4rem;
    }
    
    .slide-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .slider-thumbnails-wrapper {
        display: none; /* Hide thumbnails on very small mobile screens for cleaner view */
    }
    
    .slider-active-content {
        min-height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        padding: 30px 20px;
    }
    
    .contact-form-panel {
        padding: 24px 16px;
    }
    
    .error-code {
        font-size: 6rem;
    }
}

/* ==========================================================================
   Blog Section Styles
   ========================================================================== */
.blog-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(17, 125, 187, 0.05) 0%, transparent 70%);
    z-index: -1;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 125, 187, 0.08);
    border-color: rgba(17, 125, 187, 0.2);
}

.blog-card:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(17, 125, 187, 0.1) 0%, transparent 70%);
}

.blog-cat {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(17, 125, 187, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
}

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-read-more i {
    width: 18px; height: 18px;
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.blog-card:hover .blog-read-more {
    color: var(--accent-primary);
}

.blog-card:hover .blog-read-more i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card {
        padding: 30px;
        min-height: auto;
    }
}
