/* Mr Windscreen - Main Stylesheet */

:root {
    --primary-dark: #0f172a;
    --primary-navy: #1e293b;
    --secondary-dark: #1a1f3a;
    --accent-red: #ef4444;
    --accent-red-dark: #dc2626;
    --text-light: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-red-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
/* ===================================
   NAVBAR
=================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;

    padding: 0.9rem 1.5rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Desktop Navigation */

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 2rem;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 600;

    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

/* CTA BUTTON */

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--accent-red),
        var(--accent-red-dark)
    );

    color: white !important;

    padding: 0.85rem 1.6rem;

    border-radius: 999px; /* capsule */

    font-weight: 700;

    box-shadow:
        0 10px 25px rgba(239,68,68,0.35);

    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(239,68,68,0.45);
}

/* Hamburger */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: white;

    font-size: 2rem;
    cursor: pointer;
}

.nav-cta:hover::after {

    animation: pulseGlow 1.2s ease-out;

}

/* Pulse glow animation */

@keyframes pulseGlow {

    0% {

        opacity: 0.4;

        transform: translate(-50%, -50%) scale(0.8);

    }

    100% {

        opacity: 0;

        transform: translate(-50%, -50%) scale(1.4);

    }

}

/* Continuous subtle CTA pulse */

@keyframes ctaPulse {

    0% {

        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);

    }

    50% {

        box-shadow: 0 10px 35px rgba(239, 68, 68, 0.55);

    }

    100% {

        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);

    }

}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 31, 58, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(51,65,85,0.1)" stroke-width="0.5"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-size: cover, auto;
    background-position: center, 0 0;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease-out;
}

.hero h1 .highlight {
    color: var(--accent-red);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
    border-color: var(--text-light);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.badge-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.badge-text p {
    font-size: 0.875rem;
    margin: 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--primary-navy);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-red);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-card a {
    color: var(--accent-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-card a:hover {
    gap: 1rem;
}

/* Why Choose Us */
.why-choose {
    padding: 100px 0;
    background: var(--primary-dark);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--accent-red);
}

.feature-content h4 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--primary-navy);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.star {
    color: #fbbf24;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    background: white;
    color: var(--accent-red);
    font-weight: 600;
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Contact Form */
.contact-form {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width:768px) {

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        background: var(--primary-navy);

        flex-direction: column;

        gap: 0;

        padding: 1rem 0;

        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        width: 100%;
    }

    .logo img {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .services,
    .why-choose,
    .testimonials {
        padding: 60px 0;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   GLOBAL RESPONSIVE FIXES
=================================== */

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

table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* Prevent text overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Generic 2-column layouts collapse */
@media (max-width: 992px) {

    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="repeat(2"] {
        grid-template-columns: 1fr !important;
    }

}

/* Tablet */
@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.7rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .contact-form {
        max-width: 100%;
        padding: 1.25rem;
    }

    .services-grid,
    .testimonials-grid,
    .why-choose-grid,
    .footer-content,
    .trust-badges {
        grid-template-columns: 1fr !important;
    }
}

/* Small phones */
@media (max-width: 480px) {

    h1 {
        font-size: 1.7rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

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

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .logo img {
        height: 45px;
    }
}
