/*
================================================
TABLE OF CONTENTS
================================================
1.  Variables & Root
2.  Reset & Base Styles
3.  Utility Classes
4.  Header & Navigation
5.  Mobile Navigation
6.  Buttons
7.  Footer
8.  Hero Section
9.  Section Headers
10. Services Section
11. About Us Section
12. Pricing Calculator Section
13. Pricing Plans Section
14. Testimonials Section
15. CTA Section
16. Subpage & Legal Page Styles
17. Contact Page Styles
18. Popup Styles
19. Animations & Keyframes
20. Responsive Design (Media Queries)
================================================
*/

/* 1. Variables & Root
--------------------------------------------- */
:root {
    --primary-color: #0f3460;
    --primary-dark: #16213e;
    --primary-very-dark: #0d1c2f;
    --secondary-color: #FB5A01;
    --light-color: #f0f8ff;
    --white-color: #ffffff;
    --gray-color: #a9a9a9;
    --dark-gray-color: #333;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* 2. Reset & 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;
    background-color: var(--white-color);
    color: var(--dark-gray-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
    position: relative;
}

/* 3. Utility Classes
--------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--secondary-color);
}

/* 4. Header & Navigation
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: rgba(13, 28, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background-color: var(--primary-very-dark);
    box-shadow: var(--box-shadow);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link .logo {
    height: 80px;
    transition: var(--transition-speed);
}


.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 5. Mobile Navigation
--------------------------------------------- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 3px;
    transition: all 0.4s 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);
    bottom: 50%;
    margin-bottom: -1.5px;
}


.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-very-dark);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav.active {
    display: flex;
    transform: translateX(0);
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 20px 0;
}

.mobile-nav nav a {
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.mobile-nav nav .btn {
    margin-top: 30px;
}

/* 6. Buttons
--------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    text-transform: capitalize;
    overflow: hidden;
    position: relative;
}

.btn span {
    z-index: 1;
}

.btn i {
    z-index: 1;
    transition: transform var(--transition-speed);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.subpage .btn-secondary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}


/* 7. Footer
--------------------------------------------- */
.footer {
    background-color: var(--primary-dark);
    color: var(--light-color);
    padding: 80px 0 0;
    position: relative;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 1rem;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: var(--white-color);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--gray-color);
    font-weight: 400;
}

.footer-links ul a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.contact-info-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-info-list a {
    color: var(--gray-color);
}

.contact-info-list a:hover {
    color: var(--white-color);
}


.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 8. Hero Section
--------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/5926382/pexels-photo-5926382.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 28, 47, 0.95), rgba(22, 33, 62, 0.85));
    z-index: -1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 9. Section Headers
--------------------------------------------- */
.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.section-header .subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--secondary-color);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--dark-gray-color);
}


/* 10. Services Section
--------------------------------------------- */
.services-section {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.1) 0%, rgba(15, 52, 96, 0) 70%);
    transform: scale(0);
    transition: transform 0.8s ease;
    z-index: 0;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-title {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--dark-gray-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-link {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.service-link i {
    transition: transform var(--transition-speed);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 11. About Us Section
--------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 20px rgba(15, 52, 96, 0.3);
}

.about-image-experience .experience-year {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: var(--secondary-color);
}

.about-image-experience span {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-text-wrapper .subtitle {
    padding-left: 0;
}

.about-text-wrapper .subtitle::before {
    display: none;
}

.about-text-wrapper p {
    margin-bottom: 25px;
}

.about-features {
    margin-bottom: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* 12. Pricing Calculator Section
--------------------------------------------- */
.calculator-section {
    background-color: var(--light-color);
}

.calculator-wrapper {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    overflow: hidden;
}

.calculator-form {
    flex: 2;
    padding: 40px;
}

.calculator-result {
    flex: 1;
    background-color: var(--primary-dark);
    color: var(--white-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.calc-form-group {
    margin-bottom: 20px;
    position: relative;
}

.calc-form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

.calc-form-group input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.price-tag {
    font-weight: 600;
    color: var(--primary-color);
}

.calc-tooltip {
    font-size: 0.85rem;
    color: var(--gray-color);
    padding-left: 35px;
}

.calculator-result p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.total-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1;
}

/* 13. Pricing Plans Section
--------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--white-color);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-speed);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pricing-header p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price sup {
    font-size: 1.5rem;
    top: -1em;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
}

.pricing-card.popular .price {
    color: var(--secondary-color);
}

.pricing-features {
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i {
    font-size: 1.1rem;
}

.pricing-features .fa-check {
    color: #28a745;
}

.pricing-features .fa-times {
    color: var(--secondary-color);
}

.pricing-footer .btn {
    width: 100%;
}

.pricing-card .btn-secondary {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.pricing-card .btn-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
}

/* 14. Testimonials Section
--------------------------------------------- */
.testimonials-section {
    background-color: var(--primary-dark);
    color: var(--white-color);
}

.testimonials-section .section-header h2,
.testimonials-section .section-header .subtitle {
    color: var(--white-color);
}

.testimonials-section .section-header p {
    color: var(--gray-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    max-width: 700px;
}

.testimonial-author {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-company {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
}

/* 15. CTA Section
--------------------------------------------- */
.cta-section {
    background: linear-gradient(rgba(15, 52, 96, 0.9), rgba(15, 52, 96, 0.9)), url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover no-repeat fixed;
    text-align: center;
    color: var(--white-color);
}

.cta-content h2 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 16. Subpage & Legal Page Styles
--------------------------------------------- */
body.subpage .header {
    background-color: var(--primary-very-dark);
    position: sticky;
}

.page-header-section {
    background-color: var(--primary-dark);
    color: var(--white-color);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header-content h1 {
    color: var(--white-color);
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header-content p {
    font-size: 1.1rem;
    color: var(--light-color);
    max-width: 700px;
    margin: 0 auto 20px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumbs a {
    color: var(--gray-color);
}

.breadcrumbs a:hover {
    color: var(--white-color);
}

.breadcrumbs span {
    color: var(--white-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.page-header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.page-shape {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.page-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.page-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    text-decoration: underline;
}

.last-updated {
    margin-top: 40px;
    font-style: italic;
    color: var(--gray-color);
}

/* 17. Contact Page Styles
--------------------------------------------- */
.contact-section {
    padding-top: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-details p,
.method-details a {
    color: var(--dark-gray-color);
    margin: 0;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* 18. Popup Styles
--------------------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup-overlay:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup-overlay:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--gray-color);
}

.popup-close:hover {
    color: var(--dark-gray-color);
}

.popup-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 25px;
}

/* 19. Animations & Keyframes
--------------------------------------------- */
.animate-up,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up {
    transform: translateY(50px);
}

.animate-fade-in {
    transform: scale(0.95);
}

.animate-slide-left {
    transform: translateX(-50px);
}

.animate-slide-right {
    transform: translateX(50px);
}

.visible.animate-up,
.visible.animate-fade-in,
.visible.animate-slide-left,
.visible.animate-slide-right {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.hero-content .animate-up:nth-child(1) {
    transition-delay: 0.2s;
}

.hero-content .animate-up:nth-child(2) {
    transition-delay: 0.4s;
}

.hero-content .animate-up:nth-child(3) {
    transition-delay: 0.6s;
}

.services-grid .animate-fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .animate-fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .animate-fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .animate-fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.services-grid .animate-fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

.services-grid .animate-fade-in:nth-child(6) {
    transition-delay: 0.6s;
}


/* 20. Responsive Design (Media Queries)
--------------------------------------------- */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-methods {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .calculator-form,
    .calculator-result {
        padding: 30px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .slider-controls {
        display: none;
    }

    .testimonial-slider {
        height: auto;
    }

    .testimonial-slide {
        position: static;
        opacity: 1;
        margin-bottom: 40px;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info-list li {
        justify-content: center;
    }
}