/* ==================
   1. General & Base Styles
   ================== */
:root {
    --primary-color: #0d47a1;   /* A strong, deep Blue */
    --secondary-color: #d32f2f; /* A powerful Red */
    --dark-color: #111827;      /* For text */
    --light-color: #f8f9fa;      /* A very light gray for backgrounds */
    --white-color: #ffffff;
    --gray-color: #6b7280;
}

/* THE DEFINITIVE FIX FOR THE WHITE GAP ON THE RIGHT */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    position: relative; /* This helps with the overflow-x fix */
}

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

h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 20px; }
h3 { font-size: 1.5rem; }

section { padding: 80px 0; }

.btn { display: inline-block; padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-primary:hover { background-color: #0b3b84; }
.btn-secondary { background-color: var(--secondary-color); color: var(--white-color); }
.btn-secondary:hover { background-color: #b71c1c; }
.btn-cta { padding: 12px 30px; font-size: 1.1rem; background-color: var(--primary-color); color: var(--white-color); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-cta-outline { padding: 12px 30px; font-size: 1.1rem; background-color: transparent; color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-cta-outline:hover { background-color: var(--secondary-color); color: var(--white-color); }

.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 40px auto; color: var(--gray-color); }

/* ==================
   2. Header & Navigation
   ================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav.container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark-color); text-decoration: none; }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-links a { color: var(--dark-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); }

header:not(.scrolled) .nav-links a,
header:not(.scrolled) .logo,
header:not(.scrolled) .hamburger {
    color: var(--white-color);
}
header.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* ==================
   3. Hero Section
   ================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e88e5 100%);
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 80px;
}
.hero h1, .hero p { color: var(--white-color); }
.hero-container { display: flex; align-items: center; gap: 3rem; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-content p { font-size: 1.1rem; color: #e3f2fd; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 15px; }
.hero-video { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-video video { width: 100%; max-width: 500px; height: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border: 3px solid var(--white-color); }
.hero .btn-cta { background-color: var(--secondary-color); }
.hero .btn-cta:hover { background-color: #b71c1c; }
.hero .btn-cta-outline { color: var(--white-color); border-color: var(--white-color); }
.hero .btn-cta-outline:hover { background-color: var(--white-color); color: var(--primary-color); }

/* ==================
   4. Services Section
   ================== */
.services { background: var(--white-color); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: var(--light-color); padding: 30px; text-align: center; border-radius: 10px; border: 1px solid #e5e7eb; transition: transform 0.3s, box-shadow 0.3s; }
.service-card.modal-trigger { cursor: pointer; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); }
.service-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--gray-color); }

/* ==================
   5. Portfolio Section
   ================== */
.portfolio { background-color: var(--light-color); }
.portfolio-grid, .testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.portfolio-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); cursor: pointer; }
.portfolio-item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0)); color: var(--white-color); transform: translateY(100%); transition: transform 0.4s ease-out; opacity: 0; }
.portfolio-item:hover .portfolio-info { transform: translateY(0); opacity: 1; }
.portfolio-info h3 { margin: 0 0 5px 0; color: var(--white-color); }
.portfolio-info p { margin: 0 0 15px 0; color: #ddd; font-size: 0.9em; }

/* ==================
   6. About Me Section
   ================== */
.about { background-color: var(--white-color); }
.about-container { display: flex; align-items: center; gap: 3rem; }
.about-image { flex-basis: 40%; }
.about-image img { width: 100%; border-radius: 10px; }
.about-content { flex-basis: 60%; }
.skills-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skills-list li { background-color: #e8eaf6; color: var(--primary-color); padding: 8px 15px; border-radius: 20px; font-size: 0.9em; font-weight: 500; }

/* ==================
   7. Testimonials Section
   ================== */
.testimonials { background-color: var(--light-color); }
.testimonial-card { background: var(--white-color); padding: 30px; border-radius: 10px; border: 1px solid #e5e7eb; text-align: center; }
.testimonial-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.testimonial-card h4 { margin: 10px 0 0 0; }
.testimonial-card span { font-size: 0.9em; color: var(--gray-color); }

/* ==================
   8. AdSense Section
   ================== */
.adsense-section { background-color: var(--light-color); padding: 40px 0; }

/* ==================
   9. Footer
   ================== */
footer { background: var(--dark-color); color: #d1d5db; padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 40px; }
.footer-column .logo { color: var(--white-color); display: block; margin-bottom: 15px; }
.footer-column h3 { color: var(--white-color); margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: #d1d5db; text-decoration: none; transition: color 0.3s; }
.footer-column a:hover { color: var(--white-color); }
.footer-column .social-icons { display: flex; gap: 15px; margin-top: 10px; }
.footer-column .social-icons a { font-size: 1.3rem; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 20px; font-size: 0.9em; }

/* ==================
   10. Modal Styles
   ================== */
.modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; padding: 20px; }
.modal.active { display: flex; opacity: 1; }
.modal-content { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); width: 100%; max-width: 500px; position: relative; transform: scale(0.95); transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto; }
.modal.active .modal-content { transform: scale(1); }
.close-button { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; line-height: 1; }
.close-button:hover { color: #333; }
.modal-content h2 { text-align: left; margin-top: 0; margin-bottom: 25px; font-size: 1.8rem; }
.form-group-modal { margin-bottom: 20px; }
.form-group-modal label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; font-size: 0.9em; }
.form-group-modal input, .form-group-modal select, .form-group-modal textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; font-family: 'Poppins', sans-serif; box-sizing: border-box; }
.form-group-modal textarea { resize: vertical; }
.modal-content .btn-primary { width: 100%; padding: 15px; font-size: 1.1em; }

/* ==================
   11. Animated Bubble Background
   ================== */
.bubbles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; margin: 0; padding: 0; list-style: none; }
.bubbles-container li { position: absolute; list-style: none; display: block; width: 20px; height: 20px; background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); bottom: -150px; border-radius: 50%; animation: animateBubbles 25s linear infinite; }
.bubbles-container li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; background-color: rgba(211, 47, 47, 0.2); }
.bubbles-container li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.bubbles-container li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.bubbles-container li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; background-color: rgba(13, 71, 161, 0.2); }
.bubbles-container li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.bubbles-container li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s; background-color: rgba(13, 71, 161, 0.15); }
.bubbles-container li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.bubbles-container li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.bubbles-container li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; background-color: rgba(211, 47, 47, 0.3); }
.bubbles-container li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }
@keyframes animateBubbles { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; } }

/* ==================
   12. Responsive Styles
   ================== */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }
    .hero { padding-top: 130px; padding-bottom: 60px; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--white-color); box-shadow: 0 5px 10px rgba(0,0,0,0.1); flex-direction: column; padding: 20px 0; text-align: center; }
    .nav-links.active { display: flex; }
    .nav-links ul { flex-direction: column; gap: 0; }
    .nav-links li { padding: 15px 0; }
    .hamburger { display: block; }
    .auth-buttons { display: none; }
    header .nav-links.active a { color: var(--dark-color); }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { order: 2; }
    .hero-video { order: 1; margin-bottom: 2rem; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .about-container { flex-direction: column; text-align: center; }
    .about-image { margin-bottom: 2rem; }
    .portfolio-info { transform: translateY(0); opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.1)); }
    .portfolio-item:hover img { transform: scale(1); }
}


/* ADD THIS CSS TO THE END OF YOUR style.css FILE */

/* ==================
   Hero Image Styles
   ================== */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--white-color);
}

/* ==================
   Services Link Styles
   ================== */
.service-link {
    text-decoration: none;
    color: inherit;
}

/* ==================
   Partners Section
   ================== */
.partners {
    background-color: var(--white-color);
    padding: 60px 0;
}

.partner-slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partner-slider::before,
.partner-slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.partner-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.partner-slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14); /* 250px per logo * 14 logos */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.slide img {
    height: 70px; /* Adjust height as needed */
    width: auto;
    max-width: 200px; /* Ensure logos aren't too wide */
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.slide:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7)); /* scroll by half the width */
    }
}



/* ADD THIS TO THE END OF YOUR style.css FILE */

/* ==================
   Hero Layout & SEO Subheading Styles
   ================== */

.hero-subheading {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color); /* Uses your brand's red color */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Make hero text content stack nicely */
.hero-content {
    width: 100%;
    text-align: center;
}

/* Adjust the image container styles */
.hero-image-container {
    margin: 40px auto; /* Adds space above and below the image */
}
.hero-image {
    max-width: 100%; /* Ensures image is responsive */
    /* Other styles for hero-image are already in your CSS */
}

/* Adjust the main hero container to be a single column */
.hero-container {
    flex-direction: column;
}

/* On mobile, make the SEO heading a bit smaller */
@media (max-width: 768px) {
    .hero-subheading {
        font-size: 1rem;
    }
}