/*
--- TABLE OF CONTENTS ---
1.  Global Settings & Variables
2.  Preloader Styles
3.  General Helper Classes
4.  Header & Navigation
5.  Hero Section
6.  About Section
7.  Services Section (3D Flip Cards)
8.  Industries Section (Tabs)
9.  Pricing Calculator Section
10. Testimonials Section (Slider)
11. CTA Section
12. Page Header (for sub-pages)
13. Contact Page Styles
14. Legal Pages (main-content)
15. Footer
16. Live Chat Widget
17. Keyframe Animations
18. Responsive Design (Media Queries)
*/

/* --- 1. Global Settings & Variables --- */
:root {
    --primary-color: #0A192F;
    /* Deep Navy Blue */
    --secondary-color: #64FFDA;
    /* Bright Mint/Aqua */
    --accent-color: #FF8A00;
    /* Vibrant Orange */
    --bg-light: #112240;
    /* Lighter Navy for cards */
    --text-primary: #CCD6F6;
    /* Light Slate */
    --text-secondary: #8892B0;
    /* Slate */
    --white-color: #FFFFFF;
    --border-color: rgba(100, 255, 218, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--white-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

.page {
    padding: 100px 0;
}

/* --- 2. Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background-color: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    animation: loading 2s ease-out forwards;
}

/* --- 3. General Helper Classes --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

.highlight-gradient {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Scroll Animations */
.animate-up,
.animate-left,
.animate-right,
.animate-pop {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up {
    transform: translateY(50px);
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.animate-pop {
    transform: scale(0.9);
}

.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- 4. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo a span {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.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%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 10px 0;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: top 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
}

.dropdown-menu li a:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1002;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Active State */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- 5. Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    perspective: 1000px;
}

.cube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate-cube 30s infinite linear;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid var(--border-color);
    background: rgba(17, 34, 64, 0.3);
}

.face.front {
    transform: rotateY(0deg) translateZ(150px);
}

.face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down-indicator a {
    font-size: 1.5rem;
    color: var(--secondary-color);
}


/* --- 6. About Section --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-content {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.6), transparent);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-light);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: spin 10s linear infinite;
}

.badge-text {
    animation: spin-reverse 10s linear infinite;
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.badge-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-text-content .section-title {
    font-size: 2.2rem;
}

.about-features-list {
    margin-top: 20px;
}

.about-features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.about-features-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.about-text-content .btn {
    margin-top: 30px;
}


/* --- 7. Services Section (3D Flip Cards) --- */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card-flip {
    background-color: transparent;
    perspective: 1000px;
    height: 320px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card-back {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: rotateY(180deg);
}

.service-card-back h3 {
    color: var(--primary-color);
}

.service-card-back p {
    color: rgba(10, 25, 47, 0.9);
}

.service-card-back .btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    margin-top: 20px;
}

.service-card-back .btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- 8. Industries Section (Tabs) --- */
.industry-tabs-wrapper {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.industry-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-link {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
}

.tab-link.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-content-inner img {
    border-radius: var(--border-radius);
    height: 350px;
    object-fit: cover;
}

.tab-text h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.tab-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* --- 9. Pricing Calculator Section --- */
.calculator-section {
    background-color: var(--bg-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--primary-color);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.total-cost-display {
    margin-top: 30px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
}

.total-cost-display h4 {
    color: var(--text-secondary);
    font-weight: 500;
}

.total-cost-display p {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.calculator-form .calc-group {
    margin-bottom: 15px;
}

.calc-group input[type="checkbox"] {
    display: none;
}

.calc-group label {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--bg-light);
    cursor: pointer;
    transition: var(--transition-speed);
}

.calc-group label:hover {
    border-color: var(--accent-color);
}

.calc-group input[type="checkbox"]:checked+label {
    border-color: var(--secondary-color);
    background-color: rgba(100, 255, 218, 0.1);
}

.calc-group label i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.calc-group label span {
    flex-grow: 1;
    font-weight: 500;
}

.calc-group label .price-tag {
    font-weight: 600;
    color: var(--text-secondary);
}


/* --- 10. Testimonials Section (Slider) --- */
.testimonial-slider-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: var(--text-primary);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 11. CTA Section --- */
.cta-section {
    padding: 80px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content {
    max-width: 60%;
}

.cta-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 800;
}

.cta-text {
    color: var(--primary-color);
    opacity: 0.9;
}

.cta-action .btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.cta-action .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- 12. Page Header (for sub-pages) --- */
.page-header {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('https://images.pexels.com/photos/196644/pexels-photo-196644.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    padding: 160px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs span {
    color: var(--text-primary);
}

/* --- 13. Contact Page Styles --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 50px;
    height: 50px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.4;
}

.contact-details p a {
    color: var(--text-secondary);
}

.contact-details p a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--secondary-color);
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-speed);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--secondary-color);
    transform: scale(0.9);
    transition: var(--transition-speed);
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--text-primary);
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}


/* --- 14. Legal Pages (main-content) --- */
.main-content {
    background-color: var(--primary-color);
}

.page-content {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.page-content h2 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-content li {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-content a {
    font-weight: 500;
}

.page-contact-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* --- 15. Footer --- */
.footer {
    background: var(--bg-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-about .footer-logo h1 {
    font-size: 2rem;
}

.footer-about p {
    color: var(--text-secondary);
    margin: 20px 0;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.footer-socials a:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- 16. Live Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-speed);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    color: var(--text-secondary);
}

.chat-body p {
    margin-bottom: 20px;
}


/* --- 17. Keyframe Animations --- */
@keyframes loading {
    to {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-8px) translateX(-50%);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- 18. Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .menu-toggle {
        display: block;
    }

    .about-wrapper,
    .calculator-wrapper,
    .tab-content-inner,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-content {
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .calculator-info {
        text-align: center;
    }

    .tab-content-inner {
        text-align: center;
    }

    .tab-content-inner img {
        order: -1;
        /* move image to top on mobile */
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page {
        padding: 80px 0;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .cube {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }

    .face {
        width: 200px;
        height: 200px;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .about-experience-badge {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: -20px;
    }

    .badge-number {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .page-content,
    .contact-form-container,
    .calculator-wrapper {
        padding: 30px;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .chat-widget {
        right: 15px;
        bottom: 15px;
    }

    .chat-window {
        width: calc(100vw - 30px);
    }
}