/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  Variables & Root Styles
2.  Global Resets & Base Styles
3.  Typography
4.  Layout & Container
5.  Buttons & CTA
6.  Header & Navigation
7.  Mobile Navigation
8.  Footer
9.  Hero Section
10. Services Section
11. About Section
12. Stats Counter Section
13. Industry Focus Section (3D Carousel)
14. Testimonials Section
15. CTA Section
16. Subpage & Legal Page Styles
17. Contact Page Styles
18. Form Styling
19. Popup Styling
20. Animations & Effects
21. Responsive Media Queries
    - Tablets (max-width: 1024px)
    - Mobile (max-width: 768px)
    - Small Mobile (max-width: 480px)
================================================
*/

/* 1. Variables & Root Styles */
:root {
    --primary-color: #4A00E0;
    --secondary-color: #8E2DE2;
    --accent-color: #00BFFF;
    --dark-bg: #10002b;
    --light-bg: #f4f7fc;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-muted: #7f8c8d;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* 2. Global Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* 4. Layout & Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
}


/* 5. Buttons & CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 2;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(142, 45, 226, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary-light {
    background: var(--text-light);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-light:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* 6. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    filter: invert(1);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1010;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-bg);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.active .bar-top {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-toggle.active .bar-middle {
    opacity: 0;
}

.mobile-toggle.active .bar-bottom {
    transform: rotate(-45deg);
    top: 50%;
}


/* 7. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active li:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-nav.active li:nth-child(2) {
    transition-delay: 0.25s;
}

.mobile-nav.active li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.active li:nth-child(4) {
    transition-delay: 0.35s;
}

.mobile-nav.active li:nth-child(5) {
    transition-delay: 0.4s;
}

.mobile-nav.active li:nth-child(6) {
    transition-delay: 0.45s;
}

.mobile-nav a {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 600;
}

.mobile-nav .btn {
    font-size: 1.2rem;
    padding: 12px 24px;
}

/* 8. Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.footer-shape.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    bottom: -150px;
    left: -150px;
}

.footer-shape.shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    top: -100px;
    right: -100px;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: var(--transition-speed);
}

.social-link:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    font-size: 1rem;
    margin-right: 1rem;
    padding-top: 5px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.contact-info li a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li a:hover {
    color: var(--text-light);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* 9. Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

.hero-shape-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.hero-shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.15;
    bottom: 20%;
    right: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-shape-3 {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 10px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.1;
    top: 25%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}


.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}


/* 10. Services Section */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    perspective: 1000px;
    min-height: 280px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.service-card-front {
    background-color: var(--light-bg);
}

.service-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotateY(180deg);
}

.service-card-back h3,
.service-card-back p {
    color: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card-front h3 {
    font-size: 1.5rem;
}

.learn-more {
    color: white;
    font-weight: 600;
    margin-top: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

.learn-more:hover {
    color: var(--accent-color);
}


/* 11. About Section */
.about-section {
    background-color: var(--light-bg);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-bg {
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    top: -20px;
    left: -20px;
    z-index: 0;
    transition: all 0.4s ease;
}

.about-image-wrapper:hover .about-image-bg {
    transform: translate(10px, 10px);
}

.about-image-wrapper img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.about-features {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.about-features i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* 12. Stats Counter Section */
.stats-section {
    background: linear-gradient(rgba(16, 0, 43, 0.9), rgba(16, 0, 43, 0.9)), url('https://images.pexels.com/photos/1181263/pexels-photo-1181263.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: white;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 13. Industry Focus Section (3D Carousel) */
.industry-section {
    background: #fff;
    padding-bottom: 8rem;
}

.industry-3d-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.scene {
    width: 210px;
    height: 140px;
    position: relative;
    perspective: 1000px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.carousel-cell {
    position: absolute;
    width: 190px;
    height: 120px;
    left: 10px;
    top: 10px;
    background: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-bg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s, opacity 0.5s;
    user-select: none;
}

.carousel-cell i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}


/* 14. Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg);
    position: relative;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
}

.testimonial-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    left: 0;
}

.slider-controls button {
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 15. CTA Section */
.cta-section {
    background-color: #fff;
}

.cta-wrapper {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 4rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.cta-wrapper h2,
.cta-wrapper p {
    color: var(--text-light);
}

.cta-content {
    max-width: 60%;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
}

.cta-content p {
    margin: 0;
    opacity: 0.9;
}


/* 16. Subpage & Legal Page Styles */
.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    background: linear-gradient(rgba(16, 0, 43, 0.8), rgba(16, 0, 43, 0.8)), url('https://images.pexels.com/photos/3184338/pexels-photo-3184338.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span {
    color: white;
    font-weight: 500;
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 0.75rem;
}

.page-header-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 5rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}


/* 17. Contact Page Styles */
.contact-section {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-panel h2 {
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.method-details p {
    margin: 0;
}


/* 18. Form Styling */
.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    width: 100%;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.2);
}

.contact-form button[type="submit"] {
    margin-top: 1rem;
}

/* 19. Popup Styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup:target {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
}

.popup-content i.fa-check-circle {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-close-btn {
    margin-top: 1.5rem;
}

/* 20. Animations & Effects */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.services-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 21. Responsive Media Queries */

/* Tablets */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto 3rem;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-content {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .slider-controls {
        display: none;
        /* simpler navigation for mobile, maybe dots later */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        padding: 2.5rem 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}