/* --- Variables & Setup --- */
:root {
    --navy: #0A2342;
    --navy-light: #12335c;
    --gold: #C89B3C;
    --gold-hover: #e0b04a;
    --light-gray: #f4f6f9;
    --dark-gray: #333;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: initial; /* Lenis handles this */ }

body {
    font-family: var(--font-secondary);
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--light-gray); }
.gold-text { color: var(--gold); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;}

/* --- Custom Cursor & Scroll Progress --- */
.cursor {
    position: fixed; width: 20px; height: 20px;
    border: 2px solid var(--gold); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s; mix-blend-mode: difference;
}
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: var(--gold); z-index: 10000;
}

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 14px 32px; font-family: var(--font-primary);
    font-weight: 500; border-radius: 4px; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-text { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;}
.btn-text:hover { gap: 12px; }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0;
    transition: var(--transition); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar.scrolled {
    padding: 15px 0; background: rgba(10, 35, 66, 0.85);
    backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--white); font-family: var(--font-primary); }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 0.95rem; position: relative;}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0;
    height: 2px; background: var(--gold); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.search-icon { color: var(--white); cursor: pointer; }
.hamburger {
    display: none; background: transparent; border: none;
    color: var(--white); font-size: 1.8rem; cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 5px; z-index: 100001; /* Keep above overlay if needed */
}
/* Hamburger animation */
.hamburger.open {
    transform: rotate(90deg);
}
.hamburger.open i::before {
    content: "\f00d"; /* FontAwesome X icon */
}

/* --- Mobile Drawer Navigation --- */
.mobile-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    opacity: 0; visibility: hidden; z-index: 99998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 380px; height: 100vh;
    background: var(--navy); backdrop-filter: blur(15px);
    z-index: 99999; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column; padding: 40px 30px;
    overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.mobile-close {
    align-self: flex-end; font-size: 2.2rem; color: var(--white);
    background: none; border: none; cursor: pointer; 
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 15px; margin-right: -15px; margin-top: -15px;
    line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.mobile-close:hover { color: var(--gold); transform: scale(1.1); }

.mobile-drawer-content { display: flex; flex-direction: column; flex: 1; margin-top: 20px; }
.mobile-logo img { max-height: 60px; margin-bottom: 40px; }

.mobile-nav-links { display: flex; flex-direction: column; gap: 25px; margin-bottom: auto; }
.mobile-nav-links a {
    color: var(--white); font-size: 1.5rem; font-family: var(--font-primary);
    font-weight: 500; transition: color 0.3s ease; text-transform: uppercase;
    letter-spacing: 1px;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--gold); }
.mobile-drawer-footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-drawer-footer .btn { width: 100%; text-align: center; }

/* --- Hero Section --- */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80') center/cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10,35,66,0.9) 0%, rgba(10,35,66,0.6) 100%); z-index: 2;
}
.hero-content { position: relative; z-index: 3; color: var(--white); max-width: 800px; }
.hero-subtitle { color: var(--gold); font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 2px;}
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero-title span { color: var(--gold); }
.hero-desc { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.hero-btns { display: flex; gap: 20px; }

/* --- About Section --- */
.section-heading { margin-bottom: 60px; }
.section-heading h2 { font-size: 2.5rem; color: var(--navy); margin-top: 10px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about-card {
    padding: 40px; background: var(--white); border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.about-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: var(--gold); }
.about-card i { font-size: 2.5rem; margin-bottom: 20px; }
.about-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--navy); }

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); }
.service-img { height: 240px; background-size: cover; background-position: center; transition: var(--transition); }
.service-card:hover .service-img { transform: scale(1.05); }
.service-content { padding: 30px; position: relative; background: var(--white); z-index: 2;}
.service-icon {
    position: absolute; top: -25px; right: 30px; width: 50px; height: 50px;
    background: var(--gold); color: var(--white); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; border-radius: 50%;
}
.service-content h3 { margin-bottom: 15px; color: var(--navy); font-size: 1.4rem;}
.service-content p { margin-bottom: 20px; color: #666; }

/* --- Why Us Section --- */
.why-container { display: flex; align-items: center; gap: 60px; }
.why-image { flex: 1; position: relative; }
.why-image img { width: 100%; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.why-content { flex: 1; }
.why-content h2 { font-size: 2.5rem; color: var(--navy); margin: 10px 0 20px; }

/* --- Projects Section --- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card {
    position: relative; border-radius: 8px; overflow: hidden; height: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); cursor: pointer;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.1); }
.project-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,35,66,0.95), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: var(--white);
}
.project-category { background: var(--gold); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; width: max-content; margin-bottom: 15px; text-transform: uppercase; }
.project-overlay h3 { font-size: 2rem; margin-bottom: 10px; }
.project-overlay p { margin-bottom: 20px; opacity: 0.9; }

/* --- CTA Section --- */
.cta { position: relative; padding: 120px 0; background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') fixed center/cover; }
.cta-overlay { position: absolute; inset: 0; background: rgba(10, 35, 66, 0.85); }
.cta-content { position: relative; z-index: 2; color: var(--white); }
.cta h2 { font-size: 3rem; margin-bottom: 20px; }
.cta p { font-size: 1.2rem; margin-bottom: 40px; }
.cta-btns { display: flex; justify-content: center; gap: 20px; }

/* --- Footer --- */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.brand-col .logo { display: block; margin-bottom: 20px; }
.brand-col p { margin-bottom: 30px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: rgba(255,255,255,0.1); color: var(--white); border-radius: 50%; margin-right: 10px; transition: var(--transition);
}
.social-links a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-col h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--gold); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a:hover { color: var(--gold); padding-left: 5px; }
.contact-info li { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.contact-info i { color: var(--gold); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; font-size: 0.9rem; }

/* --- Responsive & Mobile Optimization Breakpoints --- */

@media (max-width: 992px) {
    .nav-links, .nav-actions .btn { display: none; }
    .hamburger { display: block; }
    .hero-title { font-size: 3.5rem; }
    .about-grid, .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .why-container { flex-direction: column; }
    .why-image, .why-content { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section-padding { padding: 60px 0; }
    .about-grid, .services-grid, .projects-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-title { font-size: clamp(2.5rem, 8vw, 3.2rem); }
    .hero-desc { font-size: 1rem; margin-bottom: 30px; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
    .btn { text-align: center; width: 100%; }
    .cta-btns { flex-direction: column; gap: 15px; width: 100%; }
    .section-heading { margin-bottom: 40px; }
    .section-heading h2 { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .tool-room-grid { grid-template-columns: 1fr; }
    .project-card { height: 300px; }
    .project-overlay h3 { font-size: 1.5rem; }
    .cta h2 { font-size: 2rem; }
    .service-card { margin-bottom: 10px; }
    .about-card { padding: 25px; }
    .faq-question { font-size: 1rem; padding: 15px 20px; }
    .nav-actions { gap: 15px; }
}

@media (max-width: 430px) {
    .container { padding: 0 1.25rem; }
    .hero-title { font-size: 2rem; }
    .btn { padding: 12px 24px; }
    .section-padding { padding: 50px 0; }
}

@media (max-width: 375px) {
    .logo img { max-height: 50px !important; } /* override for smallest screens */
    .hero-subtitle { font-size: 1rem; }
    .hero-title { font-size: 1.8rem; }
    .project-card { height: 250px; }
}

@media (max-width: 320px) {
    .hero-title { font-size: 1.6rem; }
    .about-card h3 { font-size: 1.1rem; }
    .mobile-drawer { padding: 30px 20px; max-width: 100%; } /* full width on tiny devices */
}
