@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* CSS RESET & VARIABLES */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --brand-red: #e11d48;
    --brand-red-hover: #be123c;
    --brand-red-glow: rgba(225, 29, 72, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.7);
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Background Gradients */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--brand-red-glow) 0%, rgba(10,10,10, 0) 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(40, 40, 40, 0.5) 0%, rgba(10,10,10, 0) 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* NAVIGATION */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo-svg {
    height: 90px;
    width: auto;
    transition: transform var(--transition-fast), filter var(--transition-fast);
    filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.4)); /* Premium subtle red glow/shadow */
}

.logo-svg:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-fast);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width var(--transition-smooth);
}

nav a:hover {
    color: var(--brand-red);
}

nav a:hover::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    width: 100%;
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    background-image: url('../images/parallax.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.75);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(to right, var(--brand-red), #ff4d6d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-hover));
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(225, 29, 72, 0.5);
    cursor: pointer;
    box-shadow: 0 10px 20px var(--brand-red-glow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(225, 29, 72, 0.4);
    border-color: var(--brand-red);
}


/* SECTION STYLES */
section {
    padding: 6rem 2rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--brand-red);
}

/* SERVICES GRID */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(30, 30, 30, 0.8);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

/* ESTIMATOR / CALCULATOR */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    transition: var(--transition-fast);
}

.calc-item:hover {
    padding-left: 1rem;
    padding-right: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.calc-item label {
    font-weight: 400;
    font-size: 1.05rem;
    cursor: pointer;
}

/* Custom Checkbox */
.calc-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.calc-item input[type="checkbox"]:checked {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.calc-item input[type="checkbox"]:checked::after {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    border-top: 2px solid var(--border-color);
}

.calc-total span:last-child {
    color: var(--brand-red);
    text-shadow: 0 0 10px var(--brand-red-glow);
}

/* FOOTER */
footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.footer-col li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: #666;
}

/* ANIMATIONS (Scroll triggered by JS) */
[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-in"] {
    transform: scale(0.95);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* HERO BUTTONS */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
}

/* ABOUT SECTION */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.stat-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
}
.stat-box i {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}
.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* WHY US SECTION */
.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.feature-item i {
    font-size: 2rem;
    color: var(--brand-red);
    background: rgba(225, 29, 72, 0.1);
    padding: 1rem;
    border-radius: 50%;
}
.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CONTACT SECTION */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}
.info-item i {
    color: var(--brand-red);
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    transition: var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}
.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* FORM ALERTS */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    font-size: 1.5rem;
    transition: var(--transition-fast);
}
.social-links a:hover {
    color: var(--brand-red);
    transform: translateY(-3px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .about-container, .features-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    nav ul {
        display: none;
    }
    .hero {
        padding: 8rem 1rem 4rem;
    }
    .contact-container {
        padding: 2rem;
    }
}
