/*
================================================
TABLE OF CONTENTS
================================================
1.  CSS Variables
2.  Global Styles & Resets
3.  Typography
4.  Layout & Container
5.  Buttons & Links
6.  Header & Navigation
7.  Mobile Navigation
8.  Footer
9.  Hero Section
10. Services Section
11. About Us Section
12. Process Section (Timeline)
13. Testimonials Section
14. Industries Section
15. CTA Section
16. Subpage Specific Styles (Legal, Contact)
17. Contact Page Styles
18. Popup Styles
19. Animations & Keyframes
20. Utility Classes
21. Responsive Design (Media Queries)
================================================
*/

/* 1. CSS Variables */
:root {
    --primary-color: #64FFDA;
    --primary-color-dark: #2CF3BC;
    --secondary-color: #8892B0;
    --background-dark: #0A192F;
    --background-light: #112240;
    --text-light: #CCD6F6;
    --text-dark: #8892B0;
    --border-color: rgba(100, 255, 218, 0.1);
    --shadow-color: rgba(2, 12, 27, 0.7);
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* 2. Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* 3. Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* 4. Layout & Container */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
}

main {
    padding-top: var(--header-height);
}

/* 5. Buttons & Links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn i {
    transition: transform var(--transition-speed) ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* 6. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.4s ease-in-out;
    border-radius: 2px;
}

.mobile-toggle.is-active .bar-top {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.is-active .bar-middle {
    opacity: 0;
}

.mobile-toggle.is-active .bar-bottom {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 7. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    background-color: var(--background-light);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
    box-shadow: -10px 0px 30px -15px var(--shadow-color);
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 1.25rem;
    color: var(--text-light);
    padding: 10px 20px;
}

.mobile-nav .btn {
    margin-top: 1rem;
}


/* 8. Footer */
.footer {
    background-color: var(--background-light);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}


.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-dark);
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info a {
    color: var(--text-dark);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 9. Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.05;
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -150px;
    animation: pulse 8s infinite ease-in-out;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: -100px;
    animation: pulse 10s infinite ease-in-out 2s;
}

.hero-shape.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation: pulse 6s infinite ease-in-out 1s;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    display: grid;
    place-items: center;
    position: relative;
}

.hero-image {
    width: 350px;
    height: 350px;
    background: linear-gradient(145deg, var(--background-light), var(--background-dark));
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 50px -10px var(--shadow-color);
}

.hero-image i {
    font-size: 100px;
    color: var(--primary-color);
    animation: float 4s infinite ease-in-out;
}

.hero-image-particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particle-float 6s infinite ease-in-out;
}

.hero-image-particle.p1 {
    width: 15px;
    height: 15px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-image-particle.p2 {
    width: 10px;
    height: 10px;
    top: 70%;
    right: 5%;
    animation-delay: 1.5s;
}

.hero-image-particle.p3 {
    width: 20px;
    height: 20px;
    bottom: 15%;
    left: 25%;
    animation-delay: 3s;
}

/* Initial state for hero animations */
.hero-content>*,
.hero-image-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content h1.animate-on-load {
    transition-delay: 0.2s;
}

.hero-content p.animate-on-load {
    transition-delay: 0.4s;
}

.hero-content .hero-actions.animate-on-load {
    transition-delay: 0.6s;
}

.hero-image-wrapper.animate-on-load {
    transition-delay: 0.8s;
}

body.loaded .animate-on-load {
    opacity: 1;
    transform: translateY(0);
}


/* 10. Services Section */
.services-section {
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: transparent;
    border-radius: var(--border-radius);
    padding: 2px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card-inner {
    background: var(--background-dark);
    padding: 2.5rem 2rem;
    height: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    transform: translateZ(0);
    /* Fix flickering */
}

.service-card:hover .service-card-inner {
    border-color: var(--primary-color);
    box-shadow: 0 20px 30px -15px var(--shadow-color);
    transform: translateZ(20px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-description {
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.service-link i {
    transition: transform var(--transition-speed) ease;
    margin-left: 5px;
}

.service-link:hover i {
    transform: translateX(5px);
}


/* 11. About Us Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
    background-color: var(--background-light);
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
    transition: all 0.4s ease;
}

.about-image-wrapper:hover .about-image::after {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
}

.about-stats {
    display: flex;
    gap: 1.5rem;
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    position: absolute;
    bottom: -40px;
    right: -40px;
    box-shadow: 0 10px 30px -10px var(--shadow-color);
    z-index: 2;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-dark);
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-features {
    margin: 1.5rem 0 2.5rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-features i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* 12. Process Section (Timeline) */
.process-section {
    background-color: var(--background-light);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    background-color: var(--background-dark);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-content {
    background-color: var(--background-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.timeline-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.timeline-title {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 13. Testimonials Section */
.testimonials-section {
    overflow: hidden;
}

.testimonial-slider-wrapper {
    width: 100%;
}

.testimonial-slider {
    display: flex;
    width: calc(3 * 100% + 6rem);
    /* 3 cards + gaps */
    animation: scroll 20s linear infinite;
}

.testimonial-card {
    flex: 0 0 31%;
    margin: 0 1rem;
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px var(--shadow-color);
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-name {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.author-title {
    margin-bottom: 0;
    font-size: 0.9rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 3rem));
    }

    /* one card + gap */
}


/* 14. Industries Section */
.industries-section {
    background-color: var(--background-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    background-color: var(--background-dark);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) ease;
    color: var(--text-light);
    font-weight: 500;
}

.industry-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 25px -10px var(--shadow-color);
}

.industry-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.industry-item:hover i {
    transform: scale(1.1);
}

/* 15. CTA Section */
.cta-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

.cta-container {
    background: linear-gradient(135deg, var(--background-light), var(--background-dark));
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0) 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.cta-container:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 16. Subpage Specific Styles (Legal, Contact) */
.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-light);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.page-header .section-description {
    margin-top: 1.5rem;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: var(--primary-color);
}

/* 17. Contact Page Styles */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-info-panel {
    padding: 3rem;
    background-color: var(--background-dark);
}

.contact-info-panel h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.method-details p {
    margin: 0;
}

.method-details a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    padding: 3rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form .full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--background-dark);
    border: 1px solid var(--text-dark);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364FFDA' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.contact-form label {
    position: absolute;
    top: 12px;
    left: 15px;
    color: var(--text-dark);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus+label,
.contact-form input:not(:placeholder-shown)+label,
.contact-form textarea:focus+label,
.contact-form textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--background-light);
    padding: 0 5px;
    color: var(--primary-color);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}


/* 18. Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    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: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 450px;
    width: 90%;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1;
}

.popup-close:hover {
    color: var(--primary-color);
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 2rem;
}


/* 19. Animations & Keyframes */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.05;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.08;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.05;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(20px, -50px) scale(0);
        opacity: 0;
    }
}


.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);
}

.service-card.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card.animate-on-scroll:nth-child(4) {
    transition-delay: 0.1s;
}

.service-card.animate-on-scroll:nth-child(5) {
    transition-delay: 0.2s;
}

.service-card.animate-on-scroll:nth-child(6) {
    transition-delay: 0.3s;
}

.timeline-item.animate-on-scroll:nth-child(odd) {
    transform: translateX(-50px);
}

.timeline-item.animate-on-scroll:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item.animate-on-scroll.is-visible {
    transform: translateX(0);
}

.industry-item.animate-on-scroll {
    transform: translateY(50px) scale(0.9);
}

.industry-item.animate-on-scroll.is-visible {
    transform: translateY(0) scale(1);
}

.industries-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.0s;
}

.industries-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.industries-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.industries-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.industries-grid .animate-on-scroll:nth-child(5) {
    transition-delay: 0.0s;
}

.industries-grid .animate-on-scroll:nth-child(6) {
    transition-delay: 0.1s;
}

.industries-grid .animate-on-scroll:nth-child(7) {
    transition-delay: 0.2s;
}

.industries-grid .animate-on-scroll:nth-child(8) {
    transition-delay: 0.3s;
}


/* 20. Utility Classes */
.hidden {
    display: none;
}

/* 21. Responsive Design */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .about-features {
        text-align: left;
    }
}

@media (max-width: 768px) {

    /* General */
    section {
        padding: 80px 0;
    }

    /* Header */
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .header-cta {
        display: none;
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-stats {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        margin-top: 2rem;
        justify-content: space-around;
    }

    .about-image::after {
        display: none;
    }

    /* Process */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 1rem;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 11px;
    }

    /* Testimonials */
    .testimonial-slider {
        animation: none;
        flex-direction: column;
        width: 100%;
        gap: 2rem;
    }

    .testimonial-card {
        margin: 0;
        flex-basis: auto;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Subpages */
    .content-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links,
    .contact-info {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
    }
}