/* --- Global Setup & Variables --- */
:root {
/* Color Palette - Modern & Vibrant */
--primary-color: #0A2540; /* Deep Oxford Blue */
--primary-color-light: #3D5A80; /* Lighter shade for gradients */
--accent-color: #FF4C29; /* Vibrant Coral Red */
--secondary-color: #E0FBFC; /* Very light Cyan */
--text-color: #2D3748; /* Charcoal Grey */
--text-color-light: #718096; /* Lighter Grey */
--header-bg: rgba(255, 255, 255, 0.7);
--card-bg: #FFFFFF;
--footer-bg: #1A202C;
--success-color: #48BB78;
--error-color: #F56565;


/* Fonts - Stylish & Readable */
--font-heading: 'Poppins', sans-serif;
--font-body: 'Lato', sans-serif;


/* Effects & Transitions */
--transition-speed: 0.5s;
--transition-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--border-radius-md: 15px;
--border-radius-lg: 25px;
--box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
--box-shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #E0FBFC;
    --primary-color-light: #B2FAFC;
    --accent-color: #FF8C00;
    --secondary-color: #1A202C;
    --text-color: #F7FAFC;
    --text-color-light: #A0AEC0;
    --header-bg: rgba(26, 32, 44, 0.7);
    --card-bg: #2D3748;
    --footer-bg: #0A2540;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-color);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--secondary-color);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s, visibility 0.8s;
}
.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-icon {
    width: 80px;
    height: 80px;
    border: 5px solid var(--primary-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-heavy);
    z-index: 1000;
    transition: top 0.3s, background-color 0.3s;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.tab-container {
    display: flex;
    gap: 15px;
}

.tab {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-light));
    color: #fff;
    border-radius: 50px;
    padding: 14px;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-easing);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.2);
    overflow: hidden;
}

.tab:hover,
.tab.active {
    width: 180px;
    justify-content: flex-start;
    background: linear-gradient(45deg, var(--accent-color), #ff7e5f);
}

.tab i {
    font-size: 22px;
    min-width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tab:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.tab span {
    position: absolute;
    left: 50px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    font-weight: 600;
    transition: opacity 0.4s ease 0.1s, left 0.4s ease;
}

.tab:hover span,
.tab.active span {
    opacity: 1;
    visibility: visible;
    left: 60px;
}


/* --- Hero Section & 3D Cube --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, var(--secondary-color) 0%, #ffffff 100%);
}

.scene {
    width: 80vw;
    /* height: 50vh; */ /* MODIFIED */
    height: 45vw; /* ADDED: Use viewport width for a stable aspect ratio */
    max-width: 900px;
    max-height: 500px;
    position: relative;
    transform-style: preserve-3d; /* This is important for nesting 3D transforms */
}

/* Rotator handles the JS-driven rotation */
.cube-rotator {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1.5s var(--transition-easing);
}

/* Cube handles the CSS-driven animation */
.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

/* This keyframe only modifies properties that JS doesn't touch */
@keyframes float {
    0% { transform: translateY(0px) rotateX(3deg); }
    50% { transform: translateY(-20px) rotateX(-3deg); }
    100% { transform: translateY(0px) rotateX(3deg); }
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-heavy);
    backface-visibility: hidden;
}

.cube-face::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.4) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.cube-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.cube-face-front  { transform: rotateY(   0deg) translateZ(calc(80vw / 2)); }
.cube-face-right  { transform: rotateY(  90deg) translateZ(calc(80vw / 2)); }
.cube-face-back   { transform: rotateY(180deg) translateZ(calc(80vw / 2)); }
.cube-face-left   { transform: rotateY(-90deg) translateZ(calc(80vw / 2)); }

@media (min-width: 1125px) {
    .cube-face-front  { transform: rotateY(   0deg) translateZ(450px); }
    .cube-face-right  { transform: rotateY(  90deg) translateZ(450px); }
    .cube-face-back   { transform: rotateY(180deg) translateZ(450px); }
    .cube-face-left   { transform: rotateY(-90deg) translateZ(450px); }
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 85%;
    z-index: 2;
}

.hero-text h1, .hero-text p {
    opacity: 0;
    transform: translateY(50px);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.cube-face.active .hero-text h1 {
    animation: slideInUp 1s forwards 0.3s;
}
.cube-face.active .hero-text p {
    animation: slideInUp 1s forwards 0.6s;
}

.color-split {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 7vw, 6rem); /* MODIFIED: Reduced minimum size */
    font-weight: 800;
    background: linear-gradient(to top, var(--accent-color) 40%, white 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-text p {
    font-size: clamp(1rem, 2.2vw, 1.6rem); /* MODIFIED: Reduced minimum size */
    margin-top: 15px;
    font-weight: 300;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Animated background particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: rise 25s infinite linear;
}
@keyframes rise {
    from { transform: translateY(100vh) scale(0); }
    to { transform: translateY(-10vh) scale(1); }
}


/* --- General Content Styling --- */
.content-section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-color-light);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s var(--transition-easing);
    border: 3px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.4s var(--transition-easing);
    z-index: -1;
}

/* ========== ADDED: Surprise Feature 1 - Button Shine Effect ========== */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 20%;
    height: 200%;
    opacity: 0;
    transform: rotate(20deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transition: opacity 0.6s, left 0.6s;
    z-index: -1;
}
.btn:hover::after {
    opacity: 1;
    left: 120%;
}
/* ================================================================== */


.btn:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 76, 41, 0.4);
}
.btn:hover::before {
    width: 100%;
}


/* ========== ADDED: Styles for Hero Button (from index.html) ========== */
.btn-hero {
    background-color: var(--primary-color, #ff5722);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm, 5px);
    text-decoration: none;
    font-weight: 700;
    /* display: inline-block; */ /* MODIFIED */
    display: none; /* ADDED: Hides the hero buttons as requested */
    margin-top: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative; /* ADDED: Ensure it's clickable */
    z-index: 5; /* ADDED: Ensure it's on top of other elements */
}

.btn-hero:hover {
    background-color: transparent;
    border-color: var(--primary-color, #ff5722);
    color: var(--primary-color, #ff5722);
    transform: translateY(-2px);
}
/* ================================================================== */


/* --- Services Showcase Section --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.service-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-heavy);
    text-align: left;
    transition: all 0.4s ease;
    border-top: 5px solid transparent;
    border-image: linear-gradient(to right, var(--primary-color), var(--accent-color)) 1;
    position: relative;
    overflow: hidden;
    /* ========== MODIFIED: Added for 3D Effect ========== */
    transform-style: preserve-3d;
}

/* ========== MODIFIED: Surprise Feature 2 - 3D Card Tilt ========== */
.service-card:hover {
    transform: perspective(1500px) rotateX(5deg) rotateY(7deg) scale(1.03) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
/* ================================================================== */

.service-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.4s ease;
}
.service-card:hover::after {
    transform: scale(2);
    opacity: 0.05;
}

.service-card i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 25px;
    background: -webkit-linear-gradient(45deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* ========== ADDED: For 3D Effect ========== */
    transition: transform 0.4s var(--transition-easing);
}

/* ========== ADDED: Icon 3D "Pop" Effect ========== */
.service-card:hover i {
    transform: translateZ(40px);
}
/* ================================================ */

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.service-card p {
    line-height: 1.8;
    color: var(--text-color-light);
}

/* --- Features Section (Interactive) --- */
.features {
    background: var(--secondary-color);
}
.features-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.feature-item {
    flex-basis: 320px;
    padding: 30px;
    border-radius: var(--border-radius-md);
    transition: background-color 0.3s;
}
.feature-item:hover {
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow-light);
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.feature-item:hover i {
    transform: scale(1.2);
}
.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.feature-item p {
    font-size: 1rem;
    color: var(--text-color-light);
}


/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ========== MODIFIED: Styles from index.html ========== */
    cursor: pointer; /* Show users the images are clickable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========== MODIFIED: New Lightbox-focused Hover Effect ========== */
.gallery-item:hover img {
    transform: scale(1.03); /* Slight zoom on hover */
    box-shadow: var(--box-shadow-heavy, 0 10px 20px rgba(0,0,0,0.2));
}
/* ============================================================== */


/* ========== ADDED: Styles for Gallery Button (from index.html) ========== */
.gallery-cta {
    text-align: center;
    margin-top: 30px;
}
/* ====================================================================== */


/* ========== ADDED: Lightbox Modal Styles (from index.html) ========== */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    animation: fadeIn 0.5s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation: zoomIn 0.5s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
/* ==================================================================== */


/* --- Call-to-Action Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    padding: 80px 5%;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin: 100px auto;
    max-width: 1200px;
    box-shadow: var(--box-shadow-heavy);
}
.cta-section h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.cta-section p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.btn.btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}
.btn.btn-primary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
.btn.btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}
.btn.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* --- NEW: Testimonials Section --- */
.testimonial-section {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}
.testimonial-container {
    max-width: 900px;
    margin: auto;
    position: relative;
}
.testimonial-slide {
    display: none; /* Hidden by default, JS will manage visibility */
    text-align: center;
    padding: 2rem;
}
.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}
.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-color-light);
    /* ========== ADDED: Surprise Feature 3 - Avatar Polish ========== */
    transition: transform 0.4s var(--transition-easing), box-shadow 0.4s var(--transition-easing);
}

/* ========== ADDED: Surprise Feature 3 - Avatar Hover ========== */
.testimonial-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--box-shadow-heavy);
}
/* ============================================================== */

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color-light);
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.testimonial-author span {
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--text-color-light);
    display: block;
}
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.testimonial-nav button {
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--box-shadow-light);
    transition: all 0.3s ease;
}
.testimonial-nav button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* --- NEW: Pricing Table Section --- */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-heavy);
    text-align: center;
    transition: all 0.4s ease;
}
.pricing-card:hover {
    transform: translateY(-15px);
}
.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--accent-color);
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.pricing-price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-color-light);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}
.pricing-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}
.pricing-features li::before {
    content: '\2713'; /* Checkmark */
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- NEW: FAQ Accordion Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card-bg);
    margin-bottom: 10px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
}
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}
.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-color-light);
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

/* --- NEW: Contact Form Section --- */
.contact-section {
    background: var(--secondary-color);
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}
.form-group {
    position: relative;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 2px solid #ddd;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.contact-form .btn:hover {
    border-color: var(--accent-color);
}


/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: #A0AEC0;
    padding-top: 80px;
}
.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.footer-content .logo {
    color: white;
    margin-bottom: 25px;
    font-size: 32px;
}
.footer-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}
.footer-bottom {
    background-color: #000;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 60px;
    color: #718096;
}


/* --- Scroll Animation Classes --- */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--box-shadow-heavy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    z-index: 999;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    transform: scale(1.1);
}

/* --- Theme Switcher --- */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    z-index: 1001;
}
.theme-switcher .slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
body.dark-mode .theme-switcher .slider {
    transform: translateX(30px);
}


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    .tab-container {
        justify-content: center;
        width: 100%;
    }
    .pricing-card.featured {
        transform: scale(1); /* Remove scaling on smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-section {
        perspective: 1200px;
    }
    .scene {
        width: 90vw;
        height: 50.625vw; /* MODIFIED: (90 * 9/16) - maintains aspect ratio */
    }
    .cube-face-front  { transform: rotateY(   0deg) translateZ(calc(45vw)); } /* MODIFIED: (90vw / 2) */
    .cube-face-right  { transform: rotateY(  90deg) translateZ(calc(45vw)); } /* MODIFIED */
    .cube-face-back   { transform: rotateY(180deg) translateZ(calc(45vw)); } /* MODIFIED */
    .cube-face-left   { transform: rotateY(-90deg) translateZ(calc(45vw)); } /* MODIFIED */
    
    .services-container {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-nav {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
        top: 10px;
    }
    .tab {
        width: 45px;
        height: 45px;
    }
    .tab:hover, .tab.active {
        width: 140px;
    }
    .tab:hover span, .tab.active span {
        left: 50px;
    }

    /* ADDED: Hero text responsiveness for small screens */
    .hero-text {
        width: 90%;
    }
    .color-split {
        font-size: 2rem; /* Override clamp */
        line-height: 1.2;
    }
    .hero-text p {
        font-size: 0.9rem; /* Override clamp */
        margin-top: 10px;
    }
    .btn-hero {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-top: 10px;
    }
    /* END ADDED */

    .content-section {
        padding: 80px 3%;
    }
}

