/* Custom properties for colors - UPDATED WITH YOUR COLORS */
:root {
    --color-primary: #c11010; /* Your primary red */
    --color-secondary: #1a1a1a; /* Your secondary dark color */
    --color-text-dark: #343a40; /* Dark text (less common on dark theme) */
    --color-text-light: #e0e0e0; /* Light text for dark backgrounds */
    --color-card-bg: #1f1f1f; /* Card background, slightly lighter than body bg */
    --color-border: rgba(255, 255, 255, 0.1); /* Subtle border for separation */
    --color-highlight-text: #ff6b6b; /* A brighter red/orange for additional highlights, derived from primary */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #0a0a0a; /* Your specified body background */
    color: var(--color-text-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--color-primary); /* Default link color */
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-highlight-text); /* Link hover color */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #fff; /* Headings remain white on dark background */
}

p {
    color: var(--color-text-light);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a; /* Matches body background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid var(--color-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

/* Header */
header {
    background: rgba(10, 10, 10, 0.95); /* Matches your provided header background */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.98); /* Slightly darker on scroll */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-highlight-text)); /* Gradient using your primary/highlight */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px; /* Adjust spacing as per your original */
}

.nav-links li {
    margin-left: 0; /* Resetting from previous global */
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-primary); /* Your primary color on hover/active */
}

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

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

.contact-btn { /* Renamed from cta-button */
    background: linear-gradient(135deg, var(--color-primary), var(--color-highlight-text)); /* Gradient for buttons */
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px; /* More rounded */
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(193, 16, 16, 0.3); /* Shadow based on primary color */
    border: none;
    cursor: pointer;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(193, 16, 16, 0.5); /* Enhanced shadow on hover */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    display: none; /* Hidden by default */
    color: var(--color-primary);
    z-index: 1001;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px; /* Adjusted padding to account for fixed header */
    z-index: 1;
    background-color: #0a0a0a; /* Fallback/base if slides don't load */
}

.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.4); /* Darken images for better text contrast */
}

.hero-slide.active {
    opacity: 1;
}

.hero-background-graphic {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 70% 30%, rgba(193, 16, 16, 0.2) 0%, transparent 70%); /* Primary color based gradient */
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-badge {
    background-color: rgba(193, 16, 16, 0.15); /* Primary color based background */
    color: var(--color-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(193, 16, 16, 0.3); /* Primary color based border */
}

.hero h1 {
    font-size: 4.2em; /* Slightly larger hero heading */
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 900; /* Heavier font weight for impact */
}

.hero h1 .word-animation {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero h1 .word-animation.animated-word {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 .secondary {
    color: var(--color-highlight-text); /* Highlight text color */
}

.hero p {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.hero .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero .stat-item.animated-hero-stat {
    opacity: 1;
    transform: translateY(0);
}

.hero .stat-number {
    font-size: 2.8em; /* Slightly larger stat numbers */
    font-weight: 800;
    color: var(--color-primary);
}

.hero .stat-label {
    font-size: 0.9em;
    color: var(--color-text-light);
    opacity: 0.8;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.phone-mockup {
    width: 280px; /* Slightly larger phone mockup */
    height: 560px;
    background-color: #2a2a2a; /* Darker grey for phone body */
    border-radius: 40px;
    border: 12px solid #444; /* Thicker border */
    box-shadow: 0 0 0 2px #111, 0 0 0 5px #000, inset 0 0 15px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg) scale(0.95); /* Initial smaller scale and rotation */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother transition */
}

.hero-visual:hover .phone-mockup {
    transform: rotateY(0deg) rotateX(0deg) scale(1); /* Straighten and scale up on hover */
}

.phone-screen {
    width: calc(100% - 24px); /* Adjusted for new border thickness */
    height: calc(100% - 24px);
    background: linear-gradient(160deg, var(--color-secondary), #0a0a0a); /* Using your secondary color */
    border-radius: 30px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    position: relative;
    overflow: hidden; /* Ensure content stays within screen */
}

.phone-screen h3 {
    color: var(--color-primary);
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: 700;
}

.phone-screen p {
    color: var(--color-text-light);
    margin-bottom: 5px;
    opacity: 0.9;
}

.phone-screen-divider {
    width: 60%; /* Wider divider */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.phone-screen-info-box {
    background-color: rgba(193, 16, 16, 0.2); /* Primary color based background */
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    margin: 15px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(193, 16, 16, 0.4);
}

.phone-screen-info-box span {
    color: var(--color-highlight-text);
    font-weight: 600;
}

.phone-screen-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 25px;
    gap: 15px; /* Spacing between stats */
}

.phone-stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.phone-stat-item.animated-phone-stat {
    opacity: 1;
    transform: translateY(0);
}

.phone-stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-primary);
}

.phone-stat-label {
    font-size: 0.75em;
    color: var(--color-text-light);
    opacity: 0.7;
}

.floating-element {
    position: absolute;
    background-color: rgba(193, 16, 16, 0.15); /* Primary color based background */
    color: var(--color-primary);
    padding: 10px 22px; /* Slightly larger padding */
    border-radius: 30px;
    font-size: 1em; /* Slightly larger font */
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(193, 16, 16, 0.3);
    box-shadow: 0 5px 20px rgba(193, 16, 16, 0.2);
    animation: float 4s ease-in-out infinite alternate;
}

.floating-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

.floating-3 {
    top: 50%;
    left: 0%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 20px); }
}

.hero-overlay-graphic {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(50px);
    z-index: 5;
}

.graphic-1 {
    width: 180px; /* Slightly larger graphics */
    height: 180px;
    top: 15%;
    left: -8%;
}

.graphic-2 {
    width: 250px;
    height: 250px;
    bottom: 5%;
    right: -5%;
}


/* General Section Styling */
section {
    padding: 100px 0; /* More vertical padding for sections */
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a; /* Default section background matches body */
}

.section-header {
    text-align: center;
    margin-bottom: 70px; /* More space below header */
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3.2em; /* Larger section titles */
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    font-weight: 800;
}

.section-title .highlight {
    color: var(--color-primary);
}

.section-description {
    max-width: 800px; /* Wider description text */
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.1em;
    opacity: 0.9;
}

/* Animate on Scroll (basic implementation) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.hero {
    position: relative;
    background-image: url('img/back.jpg'); /* Adjust the path as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* Optional: Ensures text is readable */
    padding: 80px 0; /* Add vertical spacing if needed */
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Optional dark overlay */
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}



/* About Section */
.about {
    background-color: var(--color-secondary); /* Using your secondary color for this section */
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.about-text {
    flex: 1;
    min-width: 300px; /* Ensure text block doesn't get too small */
}

.about-text h3 {
    font-size: 2.2em; /* Larger about heading */
    margin-bottom: 25px;
    color: #fff;
    font-weight: 800;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 1.05em;
    opacity: 0.9;
}

.highlight-text {
    color: var(--color-primary);
    font-weight: 600;
}

.about-visual {
    flex: 1;
    position: relative;
    padding: 30px; /* Added padding for separation from edges */
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    min-width: 300px; /* Ensure visual block doesn't get too small */
}

.about-main-image {
    width: 100%;
    height: 380px; /* Adjusted height for visual impact */
    object-fit: cover;
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    filter: brightness(0.8); /* Slightly darken image for consistency */
    position: relative;
    z-index: 2;
}

.about-card {
    background-color: var(--color-card-bg); /* Card background */
    padding: 35px; /* More padding */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    color: var(--color-text-light);
    z-index: 3; /* Ensure it's above image */
    width: 100%;
    max-width: 480px; /* Limit width for better appearance */
    border: 1px solid var(--color-border);
    /* For the background image */
    background-size: cover;
    background-position: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for readability */
    border-radius: 20px;
    z-index: -1;
}

.about-card h4 {
    color: var(--color-primary);
    font-size: 1.6em;
    margin-bottom: 18px;
    font-weight: 700;
}

.about-card p {
    margin-bottom: 25px;
    font-size: 0.95em;
    opacity: 0.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-light);
    font-size: 0.95em;
    opacity: 0.95;
}

.feature-icon {
    color: var(--color-primary);
    font-size: 1.3em; /* Slightly larger icon */
}

.about-graphic-shape {
    position: absolute;
    bottom: -80px; /* Moved slightly more out */
    right: -80px;
    width: 250px; /* Larger graphic */
    height: 250px;
    background: radial-gradient(circle at 30% 70%, rgba(193, 16, 16, 0.15) 0%, transparent 70%); /* Primary color based */
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns on large screens */
    gap: 30px;
    margin-top: 100px;
}

/* Responsive adjustment for tablets and phones */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on medium screens */
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr; /* 1 card per row on small screens */
    }
}

.value-card {
    background-color: var(--color-card-bg);
    padding: 35px;
    border-radius: 18px; /* Slightly more rounded */
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-12px);
    background-color: #2e2e2e; /* Darker on hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.value-icon {
    font-size: 3em; /* Larger icon */
    color: var(--color-primary);
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95em;
    color: var(--color-text-light);
    opacity: 0.85;
}

/* Services Section */
.services {
    background-image: url('img/slide2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Darker overlay for text readability */
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

/* Ensure text on services section remains readable against its background */
.services .section-header .section-title,
.services .section-header .section-description,
.services .section-header .section-subtitle {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly wider min width */
    gap: 30px;
}

.service-card {
    background-color: rgba(26, 26, 26, 0.7); /* Using secondary color with transparency */
    backdrop-filter: blur(10px); /* Stronger frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more prominent border */
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.service-card:hover {
    transform: translateY(-12px);
    background-color: rgba(26, 26, 26, 0.85); /* Less transparent on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4em; /* Larger number */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    z-index: 0;
    line-height: 1;
}

.service-icon-bg {
    font-size: 3.5em; /* Larger icon */
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for icon */
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-bg {
    background-color: rgba(255, 255, 255, 0.15);
}

.service-card h3 {
    font-size: 2em; /* Larger service title */
    margin-bottom: 18px;
    color: #fff; /* White title even on featured */
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.service-card p {
    font-size: 1.05em;
    color: var(--color-text-light);
    margin-bottom: 25px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.service-card .learn-more {
    color: var(--color-primary);
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: inline-block; /* Allows padding/margin */
    padding-right: 15px;
    transition: color 0.3s ease;
}

.service-card .learn-more:hover {
    color: var(--color-highlight-text);
}

.service-card.featured {
    background: linear-gradient(160deg, var(--color-primary), var(--color-highlight-text)); /* Gradient for featured card */
    border-color: var(--color-highlight-text);
    color: #fff;
    box-shadow: 0 10px 35px rgba(193, 16, 16, 0.5); /* Stronger shadow for featured */
}

.service-card.featured:hover {
    background: linear-gradient(160deg, #b00f0f, #ff5c5c); /* Slightly different gradient on hover */
    box-shadow: 0 18px 45px rgba(193, 16, 16, 0.7);
}

.service-card.featured .service-number {
    color: rgba(255, 255, 255, 0.2);
}

.service-card.featured .service-icon-bg {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured .learn-more {
    color: #fff;
}


/* Stats Section */
.stats-section {
    background-color: var(--color-secondary); /* Using secondary color */
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-section .section-header {
    margin-bottom: 60px;
}

.stats-section .section-title {
    font-size: 2.8em; /* Slightly smaller than main titles but still prominent */
    color: #fff;
}

.stats-section .ratings {
    margin-top: 15px;
}

.stats-section .stars {
    font-size: 1.6em; /* Larger stars */
    color: gold;
}

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

.stat-card {
    background-color: #121212; /* Darker than section background */
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.animated-stat {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-10px);
    background-color: #1f1f1f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.stat-value {
    font-size: 3.2em; /* Larger stat value */
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 1.0em;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* Contact Section */
.contact {
    position: relative;
    background-image: url('img/backcontact.jpg'); /* Change to your actual path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 100px;
    color: #fff;
    z-index: 1;
}

/* Optional overlay for readability */
.contact::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85); /* Maintains dark look with visibility */
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-header {
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-item {
    background-color: var(--color-card-bg);
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
    background-color: #2e2e2e;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.contact-icon {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.contact-item h4 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95em;
    opacity: 0.9;
}


/* Footer */
footer {
    background-color: var(--color-secondary); /* Using secondary color for footer */
    color: var(--color-text-light);
    padding: 60px 0 20px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section .footer-logo {
    font-size: 2.2em; /* Larger footer logo */
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.footer-section .footer-description {
    font-size: 0.95em;
    line-height: 1.8;
    color: var(--color-text-light);
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 18px; /* Slightly more space */
}

.social-link {
    display: inline-flex;
    width: 45px; /* Larger icons */
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.footer-section .footer-title {
    font-size: 1.5em; /* Larger title */
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
}

.footer-section .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px; /* Moved down */
    width: 60px; /* Wider underline */
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 12px; /* More space */
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.98em;
    opacity: 0.85;
    transition: color 0.3s ease, opacity 0.3s ease;
}

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

.contact-details .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.contact-details .contact-icon {
    font-size: 1.5em; /* Larger icon */
    color: var(--color-primary);
    margin-top: 5px;
}

.contact-details p {
    margin: 0;
    font-size: 0.98em;
    line-height: 1.7;
    color: var(--color-text-light);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    margin-top: 40px;
}

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

.footer-bottom p {
    font-size: 0.88em;
    color: var(--color-text-light);
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 25px; /* More space */
}

.footer-bottom-links a {
    font-size: 0.88em;
    color: var(--color-text-light);
    opacity: 0.7;
}

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


/* Media Queries */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-links.active li {
        margin: 10px 0;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2; /* Content below visual on small screens */
    }

    .hero-visual {
        margin-top: 50px;
        order: 1; /* Visual above content on small screens */
        min-height: auto; /* Allow height to adjust */
    }

    .phone-mockup {
        transform: none; /* Remove initial 3D transform */
        width: 220px; /* Smaller phone mockup */
        height: 440px;
    }

    .hero-visual:hover .phone-mockup {
        transform: none;
        scale: 1.05;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero .stats {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-text {
        min-width: unset;
    }

    .about-visual {
        align-items: center;
        min-width: unset;
        padding: 15px;
    }

    .about-card {
        max-width: 90%; /* Allow about card to take more width */
    }

    .values-grid,
    .services-grid,
    .stats-grid,
    .contact-info,
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .footer-bottom-content {
        flex-direction: column;
    }

    .footer-bottom-links {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0; /* Reduced padding for smaller screens */
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2.5em;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p, .section-description {
        font-size: 1em;
    }

    .hero .stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .phone-mockup {
        width: 180px; /* Even smaller phone mockup */
        height: 360px;
    }

    .floating-element {
        font-size: 0.85em;
        padding: 8px 18px;
    }

    .graphic-1 {
        width: 120px; height: 120px;
    }
    .graphic-2 {
        width: 180px; height: 180px;
    }

    .about-text h3, .contact-item h4, .value-card h4 {
        font-size: 1.8em;
    }

    .service-card h3 {
        font-size: 1.6em;
    }

    .stats-section .section-title {
        font-size: 2.2em;
    }

    .stat-value {
        font-size: 2.8em;
    }

    .footer-section .footer-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 2em;
        text-align: center;
    }
    .hero h1 .word-animation {
        font-size: 1em; /* Adjust to fit */
    }

    .hero p {
        font-size: 0.95em;
    }

    .hero-badge {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

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

    .section-subtitle {
        font-size: 1em;
    }

    .about-main-image {
        height: 250px;
    }

    .about-card {
        padding: 25px;
        border-radius: 15px;
    }

    .service-card {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .service-icon-bg {
        width: 70px;
        height: 70px;
        font-size: 2.5em;
    }

    .service-number {
        font-size: 3em;
    }

    .stat-card, .contact-item {
        padding: 25px;
        border-radius: 15px;
    }

    .stat-value {
        font-size: 2.5em;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack on very small screens */
        text-align: center;
    }

    .footer-section .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-details .contact-detail {
        justify-content: center;
        text-align: left; /* Keep text aligned left within the item */
    }
}