/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --secondary-color: #4da6ff;
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #888888;
    --bg-white: #ffffff;
    --bg-light: #f4f7fa;
    --bg-gradient: linear-gradient(135deg, #f4f7fa 0%, #e6effc 100%);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 100px;

    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 86, 179, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.highlight {
    color: var(--primary-color);
}

.highlight-accent {
    color: var(--accent-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
    z-index: -1;
    border-radius: 50px;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 65px;
    transition: var(--transition-fast);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin-bottom: 10px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: block;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 80px;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D CSS Animation Elements */
.cube {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.sphere {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-color), #ff9999);
    border-radius: 50%;
    position: absolute;
    top: 50px;
    right: 50px;
    animation: float 8s ease-in-out infinite reverse;
    opacity: 0.8;
}

.card-float {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    bottom: 50px;
    left: 0;
    animation: float 7s ease-in-out infinite 1s;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #e6effc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   6. CALCULATOR SECTION
   ========================================= */
.calculator-section {
    background-color: var(--bg-light);
}

.calc-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.calc-results {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.result-item {
    margin-bottom: 20px;
}

.result-item h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

/* =========================================
   7. LEGAL & TEXT PAGES
   ========================================= */
.page-header {
    background: var(--bg-gradient);
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-dark);
}

.breadcrumbs {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 600;
}

.legal-content {
    background: white;
    padding: 60px;
    margin-top: -50px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

/* =========================================
   8. CONTACT FORM
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-card {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h4 {
    color: white;
    margin-bottom: 5px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
}

textarea.form-control {
    resize: vertical;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: #111;
    color: #bbb;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 65px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 25px 0;
    text-align: center;
}

/* =========================================
   10. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .header-wrapper {
        padding: 0 15px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        padding: 40px;
        transition: var(--transition-smooth);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px auto;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --font-heading: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}