/* =========================================
   CSS Variables & Design Tokens
   ========================================= */
:root {
    /* Colors - Premium Aqua/Blue Theme */
    --clr-primary: #0077b6;
    --clr-primary-light: #00b4d8;
    --clr-primary-dark: #03045e;
    --clr-accent: #00f5d4;
    
    --clr-bg-main: #f8f9fa;
    --clr-bg-card: #ffffff;
    --clr-bg-dark: #0a0a0a;
    
    --clr-text-main: #333333;
    --clr-text-muted: #6c757d;
    --clr-text-light: #f8f9fa;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --section-pad: 6rem 2rem;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
}

/* =========================================
   Reset & Basics
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--clr-primary-dark);
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: var(--section-pad);
}

.bg-light {
    background-color: var(--clr-bg-card);
}

/* =========================================
   Typography Utilities
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.6);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--clr-primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--clr-accent);
}

.navbar.scrolled .logo {
    color: var(--clr-primary-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: white;
    position: relative;
}

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

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

.navbar.scrolled .nav-link {
    color: var(--clr-text-main);
}
.navbar.scrolled .nav-link::after {
    background-color: var(--clr-primary);
}

.portfolio-attention {
    display: inline-flex;
}

.portfolio-attention span {
    display: inline-block;
    animation: wave-text 10s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes wave-text {
    0%, 75%, 100% { transform: translateY(0); color: inherit; }
    87.5% { transform: translateY(-8px); color: var(--clr-accent); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--clr-text-main);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0) 75%, var(--clr-bg-main) 100%),
                linear-gradient(to right, rgba(3, 4, 94, 0.8), rgba(0, 119, 182, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.scroll-indicator p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.25rem;
    color: var(--clr-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--clr-accent);
    border-radius: 50%;
    position: relative;
}

.icon-check::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid var(--clr-primary-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 4px;
    left: 7px;
}

.about-images {
    position: relative;
    height: 500px;
}

.image-wrapper {
    position: absolute;
    width: 80%;
    height: 80%;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.img-1 {
    top: 0;
    right: 0;
    z-index: 2;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
}

.experience-badge {
    position: absolute;
    bottom: 20%;
    left: 0;
    z-index: 3;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

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

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* =========================================
   Services Section
   ========================================= */
.services-section .section-header {
    text-align: center;
}

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

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--clr-primary);
}

.service-icon-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

/* =========================================
   Roof Benefits Section
   ========================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rounded-image {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.benefits-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    font-size: 2rem;
    background: var(--clr-primary-light);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.benefit-item h4 {
    margin-bottom: 0.25rem;
    color: var(--clr-primary-dark);
}

.benefit-item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================
   Why Us Section
   ========================================= */
.why-us-section {
    position: relative;
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
    color: white;
    overflow: hidden;
}

.why-us-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.why-us-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(3, 4, 94, 0.85), rgba(0, 119, 182, 0.75));
    z-index: 2;
}

.why-us-section .section-title {
    color: white;
    text-align: center;
}

.why-us-section .text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 4rem;
}

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

.why-item h4 {
    color: var(--clr-accent);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.why-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   Contact Section
   ========================================= */
.contact-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
}

.contact-info h2 {
    margin-bottom: 0.5rem;
}

.contact-info > p {
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    color: var(--clr-text-main);
}

.contact-method:hover {
    color: var(--clr-primary);
}

.contact-method .icon {
    font-size: 1.5rem;
    background: var(--clr-bg-main);
    padding: 1rem;
    border-radius: 50%;
    color: var(--clr-primary);
    transition: var(--transition);
}

.contact-method:hover .icon {
    background: var(--clr-primary);
    color: white;
}

.contact-method h5 {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-method span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-method small {
    color: var(--clr-text-muted);
    display: block;
    margin-top: 0.25rem;
}

.contact-cta {
    background: var(--clr-primary-light);
    color: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-cta .btn {
    background: white;
    color: var(--clr-primary-dark);
}

.contact-cta .btn:hover {
    background: var(--clr-bg-dark);
    color: white;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--clr-bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.footer p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.scroll-top {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.scroll-top:hover {
    color: white;
}

.pulsate-blue-link {
    color: #888888;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pulsate-blue-link:hover {
    color: #aaaaaa;
}

/* =========================================
   Animations & Responsive
   ========================================= */
.reveal, .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active, .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-images { height: 400px; margin-top: 2rem; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-cta { padding: 3rem; }
}

@media (max-width: 768px) {
    :root { --section-pad: 4rem 1.5rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links .nav-link { color: var(--clr-text-main); font-size: 1.25rem; }
    
    .mobile-menu-btn { display: flex; z-index: 1001; }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--clr-text-main);}
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--clr-text-main);}

    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    
    .glass-panel { padding: 2rem; }
    .contact-info { padding: 2rem; }
}
