/*
================================================
NEON ORIGAMI SYSTEM - STYLESHEET
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  :ROOT & GLOBAL STYLES
2.  HELPER CLASSES & KEYFRAMES
3.  HEADER & NAVIGATION
4.  MOBILE NAVIGATION
5.  FOOTER
6.  HERO SECTION
7.  BUTTONS & FORMS
8.  SECTION STYLING (COMMON)
9.  SERVICES SECTION
10. ABOUT SECTION
11. CALCULATOR SECTION
12. INDUSTRY SOLUTIONS SECTION
13. TESTIMONIALS SECTION
14. CTA SECTION
15. SUBPAGE & LEGAL PAGE STYLES
16. CONTACT PAGE
17. POPUP STYLES
18. RESPONSIVE DESIGN (MEDIA QUERIES)
------------------------------------------------
*/

/* 1. :ROOT & GLOBAL STYLES */
:root {
    --color-navy: #0A192F;
    --color-navy-light: #112240;
    --color-navy-lighter: #233554;
    --color-slate-light: #CCD6F6;
    --color-slate: #8892B0;
    --color-white: #E6F1FF;
    --color-peach: #FF6B6B;
    --color-peach-light: rgba(255, 107, 107, 0.1);
    --color-cyan: #64FFDA;
    --color-cyan-light: rgba(100, 255, 218, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-navy);
    color: var(--color-slate);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 15%, var(--color-peach-light) 0%, transparent 25%),
        radial-gradient(circle at 85% 80%, var(--color-cyan-light) 0%, transparent 25%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

#glow-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    z-index: 9999;
}

#glow-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: var(--color-cyan-light);
    border-color: var(--color-peach);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover,
a:focus {
    color: var(--color-peach);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    color: var(--color-slate-light);
    line-height: 1.2;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* 2. HELPER CLASSES & KEYFRAMES */
.section-padding {
    padding: 100px 0;
}

[data-animate] {
    opacity: 0;
    transform: translateY(50px) perspective(1000px) rotateX(-20deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0) perspective(1000px) rotateX(0deg);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate3d(1, 1, 1, 0deg);
    }

    50% {
        transform: translateY(-20px) rotate3d(1, 1, 1, 180deg);
    }

    100% {
        transform: translateY(0px) rotate3d(1, 1, 1, 360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    animation: fadeIn 0.8s ease-out both;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}


/* 3. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-speed) ease-in-out;
}

.header.scrolled {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(2, 12, 27, 0.7);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 45px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover .logo {
    transform: rotate(180deg);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--color-slate-light);
    font-weight: 700;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-slate);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) var(--transition-spring);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.bar-container {
    width: 28px;
    height: 22px;
    position: relative;
}

.bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-slate-light);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-nav.active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-nav.active .bar-middle {
    opacity: 0;
}

.mobile-nav.active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* 4. MOBILE NAVIGATION */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    background: var(--color-navy-light);
    z-index: 999;
    transition: right 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.mobile-nav nav ul li {
    width: 100%;
    text-align: center;
}

.mobile-nav nav ul a {
    font-size: 1.2rem;
    color: var(--color-slate-light);
}

/* 5. FOOTER */
.footer {
    background-color: var(--color-navy-light);
    padding-top: 80px;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    border-top: 2px solid var(--color-peach);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 50px;
}

.footer-about-text {
    margin: 20px 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--color-navy-lighter);
    border-radius: 50%;
    color: var(--color-slate-light);
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--color-cyan);
    color: var(--color-navy);
    transform: translateY(-5px);
}

.footer-col-title {
    color: var(--color-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--color-slate);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--color-peach);
    margin-top: 5px;
}

.contact-info a {
    color: var(--color-slate);
}

.footer-bottom {
    border-top: 1px solid var(--color-navy-lighter);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* 6. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 107, 0.15);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(100, 255, 218, 0.1);
    bottom: -150px;
    right: -150px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(136, 146, 176, 0.1);
    top: 50%;
    right: 20%;
}


.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-title .line {
    display: block;
}

.hero-title .line:nth-child(2) {
    color: var(--color-cyan);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
    color: var(--color-slate-light);
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1500px;
}

.origami-cube-container {
    transform-style: preserve-3d;
    animation: float 20s infinite linear;
}

.origami-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(35deg);
}

.origami-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--color-cyan-light);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
    font-size: 4rem;
    display: grid;
    place-items: center;
    backdrop-filter: blur(5px);
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* 7. BUTTONS & FORMS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-peach);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 1;
}

.btn:hover::before {
    width: 250%;
    height: 250%;
}

.btn-primary {
    background-color: var(--color-cyan);
    color: var(--color-navy);
    border-color: var(--color-cyan);
}

.btn-primary:hover {
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-peach);
    border-color: var(--color-peach);
}

.btn-secondary:hover {
    color: var(--color-white);
}

.btn-tertiary {
    padding: 8px 16px;
    font-size: 0.8rem;
    background-color: var(--color-navy);
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.btn-tertiary:hover {
    color: var(--color-navy);
}

.btn-tertiary::before {
    background: var(--color-cyan);
}


/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-slate-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-navy-light);
    border: 2px solid var(--color-navy-lighter);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-light);
}

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;
}

/* 8. SECTION STYLING (COMMON) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-peach), var(--color-cyan));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-slate-light);
}

/* 9. SERVICES SECTION */
.services-section {
    background: var(--color-navy-light);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s var(--transition-spring);
    min-height: 350px;
}

.service-card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: var(--color-navy-lighter);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-back h3 {
    color: var(--color-cyan);
    margin-bottom: 15px;
}

.card-back ul {
    margin-bottom: 20px;
}

.card-back ul li {
    margin-bottom: 8px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-slate-light);
}

/* 10. ABOUT SECTION */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--color-cyan);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-peach-light);
    mix-blend-mode: multiply;
    transition: background-color var(--transition-speed);
}

.about-image-wrapper:hover::after {
    background-color: transparent;
}

.about-visual img {
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: filter var(--transition-speed);
}

.about-visual:hover img {
    filter: none;
}

.about-content .section-header {
    text-align: left;
    margin: 0 0 30px 0;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-text {
    margin-bottom: 30px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    border-left: 3px solid var(--color-peach);
    padding-left: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    color: var(--color-cyan);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 11. CALCULATOR SECTION */
.calculator-section {
    background: var(--color-navy-light);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--color-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-navy-lighter);
}

.calculator-inputs .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.calculator-inputs label {
    flex-basis: 100%;
    margin-bottom: 0;
}

.range-value {
    font-family: var(--font-secondary);
    color: var(--color-cyan);
    font-size: 1.2rem;
    width: 100px;
    text-align: right;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-navy-lighter);
    outline: none;
    border-radius: 2px;
    flex-grow: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-cyan);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-navy);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-cyan);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-navy);
}

.calculator-results {
    background: var(--color-navy-lighter);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--color-peach);
}

.calculator-results h3 {
    color: var(--color-slate-light);
    margin-bottom: 20px;
}

.result-display {
    font-family: var(--font-secondary);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.calculator-results p {
    font-size: 0.85rem;
}

/* 12. INDUSTRY SOLUTIONS SECTION */
.industry-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-link {
    background: var(--color-navy-light);
    border: 1px solid var(--color-navy-lighter);
    color: var(--color-slate);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover {
    background: var(--color-navy-lighter);
    color: var(--color-white);
}

.tab-link.active {
    background: var(--color-cyan);
    color: var(--color-navy);
    border-color: var(--color-cyan);
}

.tab-content {
    display: none;
    padding: 30px;
    background: var(--color-navy-light);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s;
    border-left: 4px solid var(--color-peach);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--color-cyan);
    margin-bottom: 15px;
}

/* 13. TESTIMONIALS SECTION */
.testimonials-section {
    background: var(--color-navy-light);
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 40px;
    background: var(--color-navy-lighter);
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--color-peach);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--color-slate-light);
}

.author-name {
    color: var(--color-cyan);
    margin-bottom: 5px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    background: var(--color-cyan-light);
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    pointer-events: all;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background: var(--color-cyan);
    color: var(--color-navy);
}

.prev-btn {
    margin-left: -22.5px;
}

.next-btn {
    margin-right: -22.5px;
}


/* 14. CTA SECTION */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
}

.cta-container {
    text-align: center;
    max-width: 800px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    margin-bottom: 30px;
    color: var(--color-slate-light);
    font-size: 1.1rem;
}

/* 15. SUBPAGE & LEGAL PAGE STYLES */
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-navy-light);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: var(--color-slate);
}

.breadcrumbs a {
    color: var(--color-cyan);
}

.breadcrumbs span {
    color: var(--color-slate-light);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

.page-header-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-slate-light);
}

.legal-content {
    padding: 80px 0;
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-navy-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-peach);
}

.legal-content h2 {
    color: var(--color-cyan);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-navy-lighter);
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* 16. CONTACT PAGE */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--color-navy-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-panel h2 {
    color: var(--color-cyan);
    margin-bottom: 15px;
}

.contact-info-panel p {
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--color-navy-lighter);
    color: var(--color-peach);
    border-radius: 50%;
    font-size: 1.5rem;
}

.method-details h3 {
    color: var(--color-slate-light);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details p,
.method-details a {
    color: var(--color-slate);
    font-size: 1rem;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 17. POPUP STYLES */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1051;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--transition-spring);
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background: var(--color-navy-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    width: 90vw;
    position: relative;
    border: 1px solid var(--color-navy-lighter);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--color-slate-light);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 30px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-slate);
    cursor: pointer;
}


/* 18. RESPONSIVE DESIGN (MEDIA QUERIES) */

/* Tablets and larger phones */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-subtitle {
        margin: 20px auto 40px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        max-width: 500px;
        margin: 0 auto 40px;
    }

    .about-content .section-header {
        text-align: center;
    }

    .about-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-stats {
        justify-content: center;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        border-top: 4px solid var(--color-peach);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .header-cta {
        display: none;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-grid {
        text-align: center;
    }

    .social-links,
    .contact-info li {
        justify-content: center;
    }

    .footer-logo-link {
        justify-content: center;
    }

    .testimonial-slider {
        min-height: 400px;
    }

    .slider-controls {
        display: none;
    }

    /* On mobile, swiping is assumed */
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .calculator-wrapper,
    .contact-wrapper {
        padding: 20px;
    }

    .contact-wrapper {
        padding: 25px;
    }
}