:root {
    --primary-color: #001f3f;
    /* Deep Navy Blue */
    --primary-dark: #001222;
    /* Darker shade for footer/accents */
    --secondary-color: #0074D9;
    /* Bright Blue for highlights */
    --accent-color: #FF851B;
    /* Orange for Call to Actions */
    --text-color: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 63, 0.4);
}

.btn-large {
    background: linear-gradient(135deg, var(--accent-color), #FF4136);
    color: var(--white);
    font-size: 1.15rem;
    padding: 18px 36px;
    box-shadow: 0 4px 15px rgba(255, 133, 27, 0.3);
}

.btn-large:hover {
    background: linear-gradient(135deg, #e67e22, #FF4136);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 133, 27, 0.5);
}

.btn-sm {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.9rem;
}

.btn-outline-sm {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--text-color);
    margin-left: 10px;
    font-size: 0.9rem;
}

/* Page Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 2px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Advertisement Disclosure Top */
.ad-disclosure-top {
    background-color: #f0f4f8;
    color: #666;
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e1e1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: padding 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    margin-right: 40px;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    font-weight: 500;
    opacity: 0.8;
    position: relative;
    font-size: 1.05rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    background-color: var(--accent-color);
}

.cta-btn:hover {
    background-color: #ff9f43;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    margin-bottom: 6px;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1001;
    padding: 100px 30px 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.mobile-nav-links li {
    margin-bottom: 30px;
    text-align: center;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    opacity: 0.9;
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
}

.mobile-cta {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ff6b6b);
    border: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.9) 0%, rgba(0, 31, 63, 0.75) 100%), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-1.2.1&auto=format&fit=crop&w=1952&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 180px 0 140px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    margin-bottom: 40px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    opacity: 0.95;
    font-weight: 300;
}

/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
    text-align: justify;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #e6e9f0, #eef1f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8898aa;
    font-weight: 500;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: 'Polaron Installation';
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Why Us */
.why-us-section {
    background-color: var(--bg-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    border-top: 5px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    padding: 40px;
    border-radius: 15px;
    background-color: var(--white);
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* More subtle shadow */
    border: none;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background-color: #001f3f;
    /* Invert on hover */
}

.testimonial-card:hover .quote,
.testimonial-card:hover .author {
    color: var(--white);
}

.testimonial-card .quote {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* FAQ */
.faq-section {
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border-left: 5px solid transparent;
    transition: var(--transition);
}

.faq-item:hover {
    border-left-color: var(--secondary-color);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-question.active::after {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: #a0aec0;
    padding: 100px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.footer-col a {
    color: #a0aec0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-info p,
.legal p {
    margin-bottom: 12px;
}

.quick-links li {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 25px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-popup p {
    margin-right: 20px;
    font-size: 0.95rem;
    color: #444;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 18, 34, 0.8);
    /* Darker backdrop */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 50px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #ccc;
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .img-placeholder {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.6rem;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-section {
        padding: 140px 0 100px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-popup {
        flex-direction: column;
        text-align: center;
        width: 90%;
        left: 5%;
        padding: 20px;
    }

    .cookie-popup p {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}