/* ===== RESET & BASE STYLES ===== */
:root {
    --primary: #C1121F; /* Lava Red */
    --primary-dark: #A10E19; /* Slightly darker Lava Red */
    --secondary: #002449; /* Oxford Blue */
    --accent: #C1121F; /* Use Lava Red as accent */
    --light: #fff;
    --dark: #002449; /* Oxford Blue for text */
    --dark-light: #f4f6fa; /* Very light gray for sections */
    --gray: #6b7280;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --max-width: 1200px;
    --header-height: 80px;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

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

html::-webkit-scrollbar-track {
    background: var(--light);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    opacity: 0; /* Start with 0 opacity for page transition */
    visibility: hidden; /* Hidden until loaded */
}

body.loaded {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

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

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

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn.btn-secondary:hover {
    background: var(--secondary);
    opacity: 0.9;
}

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

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

.btn.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
    display: flex;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

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

.hidden {
    display: none;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.preloader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: preloader-spin 1.5s linear infinite;
}

.preloader-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--secondary);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.preloader-circle:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--accent);
    animation-duration: 0.9s;
}

.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.3);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 0.1s linear;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 215, 0, 0.1);
    mix-blend-mode: normal;
}

.cursor.active {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.6);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255,255,255,0.98);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    z-index: 102;
}

.logo span {
    color: var(--primary);
}

.nav-toggler {
    display: none;
}

.nav-toggler .fa-times {
    color: var(--primary) !important;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.header-cta {
    position: relative;
}

.header-cta .btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 99;
}

.overlay.show {
    visibility: visible;
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(94, 158, 214, 0.05));
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    margin-bottom: 1.5rem;
    overflow: visible;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.hero-title span {
    display: inline-block;
}

.hero-title > span:last-child {
    color: var(--primary);
    transform: translateY(0);
    animation: none;
}

.hero-text {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.hero-cta {
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: 320px;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.shape {
    position: absolute;
    opacity: 0.2;
    z-index: -1;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    animation: moveUpDown 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 15s ease-in-out infinite;
}

.shape-3 {
    top: 40%;
    right: 30%;
    width: 60px;
    height: 60px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate 10s linear infinite;
}

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

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

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

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

@keyframes moveUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

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

/* Service Word Rotation Animation */
.service-word-container {
    position: relative;
    display: block;
    min-width: 320px;
    text-align: left;
    height: 1.3em;
    margin-bottom: 0.5rem;
}

.service-word {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--secondary);
    font-size: 0.8em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.service-card {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(50px);
    opacity: 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
    height: 100%; /* Make all cards the same height */
    display: flex;
    flex-direction: column;
}

.service-card.show {
    transform: translateY(0);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 215, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 0.02;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--dark);
}

.service-title {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--light);
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-title::after {
    width: 60px;
}

.service-features {
    margin: 1.5rem 0;
    flex-grow: 1; /* Make the features list take up available space */
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    color: var(--light);
}

.service-features li i {
    color: var(--primary);
    margin-right: 0.7rem;
    font-size: 0.9rem;
}

.service-card .btn {
    align-self: flex-start; /* Align buttons to bottom */
    margin-top: auto;
}

.services .service-card p {
    color: #fff;
}

.services .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services .service-card .service-features {
    margin-top: auto;
}

/* ===== PRODUCTS SECTION ===== */
/*
.products {
    background-color: var(--dark);
    position: relative;
}
.products::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 15, 34, 0.9), rgba(26, 31, 66, 0.6));
    z-index: 0;
}
.products .container {
    position: relative;
    z-index: 1;
}
*/

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
}

.tab-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Product Card */
.product-card {
    background-color: var(--dark-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
    height: 100%;
}

.product-card.show {
    transform: translateY(0);
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 215, 0, 0.3);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 15, 34, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.product-description {
    color: var(--light);
    margin-bottom: 1.5rem;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.product-price {
    font-weight: 600;
    color: var(--primary);
}

/* Product Info Card */
.product-info-card {
    background-color: var(--dark-light);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 215, 0, 0.1);
    height: 100%;
    transform: translateY(50px);
    opacity: 0;
    transition: var(--transition);
}

.product-info-card.show {
    transform: translateY(0);
    opacity: 1;
}

.product-info-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.product-info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.comparison-list {
    margin-bottom: 1.5rem;
}

.comparison-list li {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.comparison-list li i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.comparison-list li h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.comparison-list li p {
    color: var(--gray);
    font-size: 0.95rem;
}
/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    background-color: #fff;
    color: var(--dark);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    border: 1px solid rgba(0,0,0,0.08);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: rgba(255, 215, 0, 0.1);
    z-index: -1;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--dark);
}

.testimonial-rating {
    margin-top: 1rem;
}

.testimonial-rating i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(59, 59, 56, 0.1);
    padding-top: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    margin-right: 1rem;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.testimonial-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.testimonial-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 70%);
    z-index: 0;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.contact-info {
    flex: 1 1 320px;
    max-width: 350px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-social {
    margin-top: 1rem;
}

.contact-social h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form Styles */
.contact-form-container {
    flex: 2 1 420px;
    max-width: 500px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2rem 2rem;
    align-self: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form-container {
        max-width: 600px;
    }
    .form-row {
        flex-direction: row;
        gap: 2rem;
    }
    .form-group {
        flex: 1;
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-field textarea + label {
    top: 1rem;
    transform: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-field input:focus + label,
.form-field select:focus + label,
.form-field textarea:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field select:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.85rem;
    background: var(--card-bg);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.form-field input::placeholder,
.form-field select::placeholder,
.form-field textarea::placeholder {
    color: transparent;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-field label {
    position: static;
    transform: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-error {
    display: none;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: var(--error-color);
}

.form-field.error .form-error {
    display: block;
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.form-status {
    text-align: center;
}

.form-success {
    color: var(--success-color);
    display: none;
}

.form-error-message {
    color: var(--error-color);
    display: none;
}

/* Newsletter Form Styles */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .form-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.newsletter-form input[type="email"] {
    flex: 1 1 auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 1rem;
    font-size: 1rem;
    background: transparent;
    color: var(--dark);
    outline: none;
    height: 48px;
    min-width: 0;
    box-sizing: border-box;
}

.newsletter-form button {
    border: none;
    border-radius: 0 6px 6px 0;
    background: var(--primary);
    color: #fff;
    padding: 0 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    height: 48px;
    min-width: 48px;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-row,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.footer-top {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-info {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.footer-links a {
    color: var(--dark);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.newsletter-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 0;
    overflow: visible;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-right: none;
    background-color: rgba(12, 15, 34, 0.5);
    color: var(--light);
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.newsletter-recaptcha {
    margin-top: 0.75rem;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--dark);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Styles for Testimonials, Contact & Footer */
@media (max-width: 992px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info, .contact-form-container {
        max-width: 100%;
        width: 100%;
    }
    
    /* Navigation styles for tablets */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggler {
        display: block;
        color: var(--dark) !important;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        z-index: 200;
        position: relative;
    }
    .nav-toggler i {
        transition: color 0.3s;
    }
    .nav-toggler .fa-times {
        color: var(--primary) !important;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--dark-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 101;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.show {
        right: 0;
    }
    .nav-menu li {
        margin: 1.5rem 0;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
    .nav-menu li a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        color: var(--dark);
    }
    .header-cta {
        display: none;
    }
    .overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .contact-form-container {
        margin-top: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Mobile Navigation Styles */
    .nav-toggler {
        display: block;
        color: var(--light);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--dark-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 101;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.show {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
        margin-left: 0; /* Reset the left margin that's set for desktop */
        text-align: center;
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Responsive service word container */
    .service-word-container {
        min-width: 260px;
        display: block;
        margin-bottom: 0.8rem;
        height: 1.4em;
    }
    
    .service-word {
        font-size: 0.85em;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .testimonial-indicators {
        display: none;
    }
    
    .footer .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-info, .footer-links, .footer-newsletter {
        text-align: center;
    }
    
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Small mobile adjustments */
    .nav-menu {
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .service-word-container {
        min-width: 220px;
        height: 1.5em;
    }
    
    .service-word {
        font-size: 0.8em;
    }
}

/* 1. Hero section service word color for visibility */
.hero .service-word {
    color: var(--secondary);
}

/* 2. Section titles on dark backgrounds */
.products .section-title,
.contact .section-title,
.footer .section-title {
    color: #fff;
}

/* 3. Differentiate contact section background from footer */
.contact {
    background-color: var(--dark-light);
}

/* Optional: Make contact form and cards stand out on lighter background */
.contact-form-container,
.contact-card {
    background-color: #fff;
    color: var(--dark);
}

.contact-card h3,
.contact-form-container label {
    color: var(--dark);
}

/* What Our Clients Say and Footer: dark background, light text */
.testimonials, .footer {
    background-color: var(--secondary);
    color: #fff;
}

.testimonials .section-title,
.footer .section-title,
.footer-logo,
.footer-links h3,
.footer-links a,
.footer-newsletter p,
.footer-bottom p,
.footer-bottom-links a {
    color: #fff;
}

.footer-social a {
    background-color: rgba(255,255,255,0.08);
    color: var(--primary);
}

.footer-social a:hover {
    background-color: var(--primary);
    color: #fff;
}

.testimonials .testimonial-card {
    background-color: #fff;
    color: var(--dark);
    border: 1px solid rgba(0,0,0,0.08);
}

.testimonials .testimonial-text,
.testimonials .testimonial-info h4,
.testimonials .testimonial-info p {
    color: var(--dark);
}

.testimonials .testimonial-rating i {
    color: var(--primary);
}

/* 1. Get In Touch section title should be dark */
.contact .section-title {
    color: var(--dark);
}

/* 2. Remove yellow circle background from contact-card icons */
.contact-card .contact-icon {
    background-color: transparent;
    color: var(--primary);
}

/* 3. Contact form fields: white background, subtle border */
.contact-form-container input,
.contact-form-container textarea,
.contact-form-container select {
    background-color: #fff;
    color: var(--dark);
    border: 1px solid #d1d5db;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus,
.contact-form-container select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Newsletter Section Styles */
.newsletter-section {
    background-color: var(--light);
    padding: 5rem 0 5rem 0;
}

.newsletter-section .container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #d1d5db;
    padding: 2rem 1.5rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-form .form-field {
    margin-bottom: 0;
}

.newsletter-form .newsletter-recaptcha {
    margin: 1.5rem 0 0.5rem 0;
}

.newsletter-form button.btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.newsletter-form button.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.newsletter-section .section-title {
    color: var(--dark);
}

.newsletter-section p {
    color: var(--dark);
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .newsletter-section .container {
        padding: 0 1rem;
    }
    .newsletter-form {
        padding: 1.2rem 0.5rem;
    }
}

@media (min-width: 992px) {
    .contact-grid {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
    }
    .contact-info {
        flex: 0 0 32%;
        max-width: 340px;
    }
    .contact-form-container {
        flex: 0 0 64%;
        max-width: 520px;
    }
}

@media (max-width: 991px) {
    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
    .contact-info, .contact-form-container {
        max-width: 100%;
        width: 100%;
    }
}

/* Popup Message Styles */
.popup-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-message.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.popup-message.show .popup-content {
    transform: translateY(0);
}

.popup-content i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.popup-content h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.popup-close {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.popup-close:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-content i {
        font-size: 2.5rem;
    }
}

/* Terms and Privacy Modal Styles */
.terms-content,
.privacy-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.5rem;
}

.modal-header .popup-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.modal-header .popup-close:hover {
    color: var(--primary);
    transform: none;
}

.modal-body {
    padding: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
}

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

.policy-section h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.policy-section h4 {
    color: var(--dark);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.policy-section p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.policy-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    color: var(--gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .terms-content,
    .privacy-content {
        max-width: 95%;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }

    .policy-section h4 {
        font-size: 1rem;
    }
}