/* ============================================
   INTELLIGENT MEDIA TECHNOLOGY LTD
   Custom Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #0f2942;
    --primary-light: #1a3d5c;
    --primary-dark: #091a2a;
    --accent-color: #00b4d8;
    --accent-light: #48cae4;
    --accent-dark: #0096c7;
    --text-color: #2d3748;
    --text-light: #718096;
    --text-dark: #1a202c;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-dark);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: var(--transition-base);
}

.navbar-brand .logo-light {
    display: block;
}

.navbar-brand .logo-dark {
    display: none;
}

.navbar.scrolled .navbar-brand .logo-light {
    display: none;
}

.navbar.scrolled .navbar-brand .logo-dark {
    display: block;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white) !important;
}

.lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.navbar.scrolled .lang-icon {
    background: var(--bg-light);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-light);
    color: var(--accent-color);
}

/* ============================================
   Hero Sections
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.95);
    }
    75% {
        transform: translate(15px, 15px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--bg-white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Page Hero (smaller) */
.page-hero {
    min-height: 50vh;
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-hero .hero-title {
    font-size: 2.75rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    background: transparent;
}

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

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

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

/* ============================================
   Sections
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--bg-white);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-color);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   Solutions Section
   ============================================ */
.solution-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.solution-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--bg-white);
    stroke-width: 2;
    fill: none;
}

.solution-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-desc {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   About Page
   ============================================ */
.about-content {
    padding: 40px 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition-base);
}

.value-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
}

.value-card:hover .value-icon {
    background: var(--accent-color);
}

.value-card:hover .value-icon svg {
    stroke: var(--bg-white);
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.approach-section {
    background: var(--bg-light);
}

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

.contact-form-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Honeypot field - hidden from humans */
.form-field-website {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Submit button states */
#submitBtn {
    position: relative;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-base);
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#submitBtn .btn-text {
    transition: var(--transition-base);
}

#submitBtn .btn-icon,
#submitBtn .btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#submitBtn .btn-spinner {
    margin-left: 8px;
}

/* Spinner animation */
.spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Alert improvements */
#formAlert .alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    font-weight: 500;
}

#formAlert .alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

#formAlert .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

#formAlert .alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

#formAlert .btn-close {
    padding: 1rem;
}

.contact-info-card {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem;
    height: 100%;
    color: var(--bg-white);
}

.contact-info-title {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-light);
    stroke-width: 2;
    fill: none;
}

.contact-info-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 1rem;
    color: var(--bg-white);
}

/* Alert messages */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-content {
    padding: 80px 0;
}

.legal-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
}

.legal-highlight {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.footer-brand img {
    height: 36px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.company-number {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-title {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.company-reg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .page-hero .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-collapse .nav-link {
        color: var(--text-dark) !important;
        padding: 0.75rem 1rem !important;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: var(--accent-color) !important;
    }

    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .contact-form-card,
    .contact-info-card,
    .legal-card {
        padding: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .footer {
        padding: 60px 0 20px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-light-custom {
    background: var(--bg-light);
}

.text-accent {
    color: var(--accent-color);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Sub-Service Cards (New Services Page)
   ============================================ */
.sub-service-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.sub-service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.sub-service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.sub-service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail .service-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.service-detail .service-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* ============================================
   Integrated Service Cards
   ============================================ */
.integrated-section {
    background: var(--gradient-primary);
}

.integrated-section .section-title,
.integrated-section .section-subtitle {
    color: var(--bg-white);
}

.integrated-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.integrated-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.integrated-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.integrated-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bg-white);
}

.integrated-content h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.integrated-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   Solutions Page - Client Segments
   ============================================ */
.client-segment-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    text-align: center;
}

.client-segment-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.client-segment-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-base);
}

.client-segment-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
}

.client-segment-card:hover .client-segment-icon {
    background: var(--accent-color);
}

.client-segment-card:hover .client-segment-icon svg {
    stroke: var(--bg-white);
}

.client-segment-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.client-segment-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   Home Page Service Preview (Updated)
   ============================================ */
.service-preview-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-preview-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-8px);
}

.service-preview-card:hover::before {
    transform: scaleX(1);
}

.service-preview-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-preview-card:hover .service-preview-icon {
    background: var(--accent-color);
}

.service-preview-card:hover .service-preview-icon svg {
    stroke: var(--bg-white);
}

.service-preview-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
}

/* Responsive adjustments for new components */
@media (max-width: 991.98px) {
    .integrated-card {
        flex-direction: column;
        text-align: center;
    }

    .integrated-icon {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .sub-service-card {
        padding: 1.5rem;
    }

    .integrated-card {
        padding: 1.5rem;
    }

    .client-segment-card {
        padding: 2rem;
    }
}

/* ============================================
   Cookie Consent Modal
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 1rem 1rem;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cookie-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-cookie-settings {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-cookie-settings:hover {
    border-color: var(--text-color);
    background: var(--bg-light);
}

.btn-cookie-reject {
    background: var(--bg-light);
    border: none;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-cookie-reject:hover {
    background: var(--border-color);
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: fadeInUp 0.3s ease-out;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-settings-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition-base);
}

.cookie-settings-close:hover {
    color: var(--text-dark);
}

.cookie-settings-body {
    padding: 1rem 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
    padding-right: 1rem;
}

.cookie-option-info h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.cookie-option-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.cookie-option-toggle {
    flex-shrink: 0;
}

.toggle-label.disabled {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition-base);
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-base);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-settings-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.btn-cookie-save {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-cookie-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

/* Responsive Cookie Consent */
@media (max-width: 767.98px) {
    .cookie-consent {
        padding: 0 0.5rem 0.5rem;
    }

    .cookie-consent-container {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: center;
        min-width: auto;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-actions .btn-cookie-settings,
    .cookie-consent-actions .btn-cookie-reject,
    .cookie-consent-actions .btn-cookie-accept {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 1rem;
    }

    .cookie-settings-panel {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-height: 90vh;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}
