/* CSS Reset and Variables */
:root {
    --primary: #0f172a; /* Deep Navy */
    --primary-light: #1e293b;
    --accent: #f59e0b; /* Vibrant Orange */
    --accent-hover: #d97706;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Typography Utility */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--text-muted); font-weight: 500; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px; /* Custom pill radius requested by modern aesthetics */
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

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

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

header.scrolled .logo,
header.scrolled .nav-links a:not(.btn-primary) {
    color: var(--primary);
}

/* Base header text color (when not scrolled over hero) */
header:not(.scrolled) .nav-links a:not(.btn-primary),
header:not(.scrolled) .logo span {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

.nav-link:not(.btn-primary):hover::after,
.nav-link.active:not(.btn-primary)::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

header:not(.scrolled) .mobile-toggle span {
    background-color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-image: url('assets/hero_renovation_local_1774001940241.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.2) 100%);
}

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

.hero-content h1 {
    color: white;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--accent);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}

.stat-item h3 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

.stat-item p {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-main);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    z-index: 10;
}

.service-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.1), transparent);
}

.service-content {
    padding: 2rem;
    position: relative;
}

.icon-wrapper {
    position: absolute;
    top: -2.5rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--accent);
    transition: var(--transition);
}

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

.service-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

.other-services {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    border-radius: var(--radius-lg);
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--accent);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-main);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: var(--primary);
    color: white;
    padding: 4rem 3rem;
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.detail-item h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.detail-item p {
    margin: 0;
    color: #e2e8f0;
}

.contact-form {
    padding: 4rem 3rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #cbd5e1;
    max-width: 300px;
    margin-top: 1rem;
}

.footer-logo {
    color: white !important;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
    color: #cbd5e1;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Infinite Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--accent);
    color: white;
    padding: 1rem 0;
    white-space: nowrap;
    border-top: 2px solid var(--accent-hover);
    border-bottom: 2px solid var(--accent-hover);
}
.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.marquee-content .mq-item {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 2rem;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Unique Custom Cursor */
@media (pointer: fine) {
    body, a, button, input, textarea, select, .service-card { 
        cursor: none !important; 
    }
    
    .cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 8px; height: 8px;
        background: var(--accent);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
        will-change: transform;
        transition: opacity 0.3s ease;
    }
    
    .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        width: 30px; height: 30px;
        border: 1.5px solid rgba(245, 158, 11, 0.4);
        border-radius: 50%;
        z-index: 9998;
        pointer-events: none;
        will-change: transform;
        transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    }

    .cursor-dot.hover-state {
        opacity: 0; /* Hide the dot when hovering over clickable elements */
    }
    
    .cursor-ring.hover-state {
        width: 40px; height: 40px;
        background: rgba(245, 158, 11, 0.05); /* very subtle fill */
        border-color: rgba(245, 158, 11, 0.8);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .experience-badge {
        bottom: -1rem;
        right: -1rem;
        width: 120px;
        height: 120px;
        padding: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        box-shadow: var(--shadow-2xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--primary) !important;
        font-size: 1.25rem;
        text-shadow: none !important;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 3rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
