/* --- 1. Variables & Reset --- */
:root {
    --primary-color: #2563eb;       
    --primary-dark: #1d4ed8;        
    --accent-color: #f59e0b;        
    --accent-dark: #b45309;         
    --dark-bg: #0f172a;             
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-color: #334155;
    --font-main: 'Poppins', sans-serif;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-3d: 0 4px 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navbar --- */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: 100px; /* Increased height slightly to fit the 3D box */
    display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

/* --- LOGO & BRAND TEXT (UPDATED 3D BOX LOOK) --- */
.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* 3D BOX STYLES START */
    background-color: #ffffff;
    border: 2px solid var(--primary-color); /* Blue Border */
    padding: 8px 20px;                      /* Space inside the box */
    border-radius: 12px;                    /* Rounded corners */
    box-shadow: 5px 5px 0 var(--dark-bg);   /* Solid Shadow for 3D effect */
    transition: all 0.2s ease;              /* Smooth animation */
    /* 3D BOX STYLES END */
}

/* Hover effect: Press the box down */
.logo-link:hover {
    transform: translate(2px, 2px);         /* Move down/right */
    box-shadow: 2px 2px 0 var(--dark-bg);   /* Shrink shadow */
}

.logo-img {
    height: 50px; /* Adjusted height to fit nicely in the box */
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-bg);
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Nav Links --- */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn-nav) { font-weight: 600; color: var(--text-color); transition: color 0.3s; }
.nav-links a:not(.btn-nav):hover { color: var(--primary-color); }

/* --- Buttons --- */
.btn-3d {
    display: inline-block; border-radius: 8px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.1s ease; position: relative; top: 0; cursor: pointer;
}
.btn-primary {
    background: var(--accent-color); color: var(--white);
    padding: 15px 35px; box-shadow: var(--shadow-3d) var(--accent-dark);
}
.btn-primary:active { top: 4px; box-shadow: 0 0 0 var(--accent-dark); }
.btn-nav {
    background: var(--primary-color); color: var(--white) !important;
    padding: 10px 25px; font-size: 0.9rem; box-shadow: 0 4px 0 var(--primary-dark);
}
.btn-nav:hover { color: white; }
.btn-nav:active { top: 4px; box-shadow: 0 0 0 var(--primary-dark); }
.btn-text {
    margin-left: 20px; font-weight: 600; color: var(--white);
    border-bottom: 2px solid transparent; transition: 0.3s;
}
.btn-text:hover { border-color: var(--accent-color); }

/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative; display: flex; align-items: center; color: var(--white); padding-top: 80px;
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.8) 100%); z-index: 1;
}
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 800px; }
.badge {
    background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px; display: inline-block;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.gradient-text {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; max-width: 600px; }

/* --- General Sections --- */
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; color: var(--dark-bg); }
.center { text-align: center; }
.subtitle { text-align: center; color: #64748b; margin-bottom: 50px; }
.highlight { color: var(--accent-color); }
.bg-light { background: var(--light-bg); }
.bg-gradient { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; }
.icon-large { font-size: 4rem; margin-bottom: 20px; opacity: 0.8; }
.text-white { color: white; }

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; padding: 20px 0;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; height: 250px;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
    line-height: 1;
}

.close-btn:hover { color: var(--accent-color); }

/* --- Services & Contact Cards --- */
.services-grid, .contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.service-card, .contact-card {
    background: var(--white); padding: 40px 30px; border-radius: 16px;
    border: 1px solid #f1f5f9; box-shadow: var(--shadow-soft);
    text-align: center; transition: 0.3s;
}
.service-card:hover, .contact-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.contact-card.highlight-card { border: 2px solid var(--primary-color); background: #eff6ff; }
.card-icon, .icon-circle {
    width: 70px; height: 70px; background: #eff6ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto;
}
.contact-card.highlight-card .icon-circle { background: var(--primary-color); }
.contact-card.highlight-card .icon-circle i { color: white; }
.icon-circle i, .card-icon i { font-size: 1.8rem; color: var(--primary-color); }
.service-card h3, .contact-card h3 { margin-bottom: 15px; font-size: 1.3rem; color: var(--dark-bg); }

/* --- Contact Details --- */
.phone-link { font-size: 1.5rem; font-weight: 700; color: var(--dark-bg); display: block; margin: 10px 0; }
.phone-group { display: flex; flex-direction: column; gap: 5px; }
.phone-link-small { font-size: 1.1rem; color: #64748b; }
.email-group { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.email-group a { color: #334155; }
.email-group a:hover, .phone-link:hover, .phone-link-small:hover { color: var(--primary-color); }

/* --- Footer --- */
footer { background: var(--dark-bg); color: #94a3b8; text-align: center; padding: 30px 0; font-size: 0.9rem; }

/* --- MAP RESPONSIVE STYLES --- */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    position: relative;
    height: 0;
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
}
.map-responsive iframe {
    left: 0; top: 0; height: 100%; width: 100%; position: absolute;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .navbar { height: auto; padding: 15px 0; }
    .nav-container { flex-direction: column; gap: 15px; }
    .logo-link { 
        justify-content: center; text-align: center; width: 90%; /* Adjust width on mobile */
        margin: 0 auto; 
    }
    .nav-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .btn-nav { width: 100%; text-align: center; display: block; }
    .hero { text-align: center; padding-top: 180px; }
    .hero h1 { font-size: 2.2rem; }
    .close-btn { font-size: 40px; top: 15px; left: 20px; }
}