/* --- Global Variables & Resets --- */
:root {
    --primary: #612d87;
    --primary-dark: #4a2268;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --bg-dark: #2a2a2a;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text-main); line-height: 1.6; background-color: var(--bg-white); }
img { max-width: 100%; height: auto; display: block; }


/* --- Layout Utility Classes --- */
.container { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 20px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-400 { min-height: 400px; }
.min-h-600 { min-height: 767px; }
.object-cover { object-fit: cover; }
.shadow-md { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.rounded-lg { border-radius: 8px; }
.p-8 { padding: 2rem; }
.h-64 { height: 16rem; }
.h-400 { height: 400px; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #eaeaea; }

/* --- Flexbox & Grid --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; gap: 20px; }
.grid-cols-1 { grid-template-columns: 1fr; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* --- Spacing --- */
.p-6 { padding: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-32 { margin-bottom: 30rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mt-32 { margin-top: 20rem; }
.ml-1 { margin-left: 0.25rem; }
.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto; }

/* --- Form Styles --- */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--text-main); }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #cccccc; border-radius: 4px; font-family: inherit; font-size: 1rem; transition: var(--transition); background-color: var(--bg-light); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(97, 45, 135, 0.15); background-color: var(--bg-white); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* --- Typography & Colors --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; }
.text-main { color: var(--text-main); }
.text-primary { color: var(--primary); }
.text-white { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); }
.font-bold { font-weight: bold; }
.uppercase { text-transform: uppercase; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 2.5rem; }
.text-2xl { font-size: 2rem; }
.tracking-wide { letter-spacing: 0.05em; }
.text-right { text-align: right; }
.no-underline { text-decoration: none; }

/* --- Positioning & Overlays --- */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.overlay-dark { background: rgba(0, 0, 0, 0.5); }
.overlay-gradient { background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%); }

/* Header (Unchanged) */
.site-header {  background-color: var(--primary); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo-img { height: 50px; width: auto; display: block; }
.list-none { list-style: none; padding: 0; margin: 0; }
.list-disc { list-style: disc; padding-left: 20px; margin: 0; color: rgba(255, 255, 255, 0.7); }
.nav-link { color: var(--text-light); text-decoration: none; font-weight: 400; transition: var(--transition); position: relative; padding-bottom: 5px; }
.nav-link:hover { opacity: 0.8; }
.nav-link::after { content: ''; position: absolute; width: 100%; height: 3px; bottom: 0; left: 0; background-color: var(--text-light); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease-out; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }
/* --- Dropdown Menu Styles (Desktop) --- */
.dropdown-menu { position: absolute; top: 100%; left: 0; background-color: var(--bg-white); min-width: 240px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-radius: 4px; padding: 10px 0; margin-top: 15px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 100; list-style: none; border-top: 3px solid var(--primary); }
.dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 12px 20px; color: var(--text-main); text-decoration: none; font-weight: 500; transition: background-color 0.2s ease, color 0.2s ease; text-align: left; }
.dropdown-item:hover { background-color: var(--bg-light); color: var(--primary); padding-left: 25px; }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-light); cursor: pointer; padding: 5px; transition: var(--transition); }
.mobile-menu-btn:hover { opacity: 0.8; } 
/* --- Mobile Adjustments for Dropdown --- */
@media (max-width: 767px) {
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background-color: rgba(0, 0, 0, 0.1); margin-top: 10px; border-top: none; border-radius: 8px; }
    .dropdown-item { color: var(--text-light); text-align: center; padding: 10px 20px; }
    .dropdown-item:hover { background-color: rgba(255, 255, 255, 0.1); color: #ffffff; padding-left: 20px; }
}


/* --- Footer Enhancements --- */
.bg-primary-dark { background-color: var(--primary-dark); }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.footer-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: var(--transition); display: inline-block; }
.footer-link:hover { color: #ffffff; transform: translateX(5px); }
.social-icon-outline { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; text-decoration: none; transition: var(--transition); }
.social-icon-outline:hover { background-color: #ffffff; color: var(--primary); transform: translateY(-3px); }
.border-top-light { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.section-title-footer { position: relative; padding-bottom: 15px; }
.section-title-footer::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background-color: #ffffff; opacity: 0.5; }

/* Section Titles */
.section-title { font-size: 1.5rem; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: var(--primary); }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; text-decoration: none; font-weight: bold; text-align: center; cursor: pointer; transition: var(--transition); border: none; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--text-light); }
.btn-primary { background: var(--primary); color: var(--text-light); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-white { background: var(--bg-white); color: var(--primary); border: 2px solid var(--bg-white); border-radius: 15px; }
.btn-white:hover { background: transparent; color: var(--text-light); border-radius: 0; }

/* Image Cards (Services/Projects) */
.image-card { overflow: hidden; position: relative; background: var(--bg-light); border: 1px solid #ddd;}
.image-card img { transition: transform 0.5s ease; width: 100%; height: 337px; object-fit: cover; }
.image-card:hover .carousel-img.active { transform: scale(1.05); }
.card-content { padding: 15px; }
.image-overlay-text { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; color: white; }
/* --- Carousel Components --- */
.carousel-container { position: relative; width: 100%; overflow: hidden; }
.carousel-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out, transform 0.5s ease; z-index: 1; }
.carousel-img.active { opacity: 1; z-index: 2; }

/* Hero Badges */
.hero-badge { background: rgba(0, 0, 0, 0.7); padding: 20px; border-left: 4px solid var(--primary); color: white; display: inline-block; margin-bottom: 10px;}
.hero-badge-right { background: rgba(0, 0, 0, 0.7); padding: 20px; border-right: 4px solid var(--primary); color: white;}
.w-badge { width: 280px; }

/* --- Parallax & Decorative Components --- */
.h-150 { height: 450px; }
.parallax-cityscape { background-image: url('../images/home-parallax.jpg'); background-attachment: fixed; background-position: bottom center; background-repeat: repeat-x; }

/* --- Modern Sophisticated Project Cards --- */
.project-card-modern { background-color: var(--bg-white);  overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column; cursor: pointer; border: 1px solid #eaeaea; }
.project-card-modern .carousel-container { height: 450px; width: 100%; position: relative; border-bottom: 1px solid #eaeaea; }
.project-info { padding: 25px 20px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-white); position: relative; }
/* The animated purple line that draws across the top of the text box on hover */
.project-info::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background-color: var(--primary); transition: width 0.4s ease; }
.project-card-modern:hover .project-info::before { width: 100%; }
.project-title { font-weight: bold; color: var(--text-main); font-size: 1.1rem; margin: 0; transition: color 0.3s ease; }
.project-card-modern:hover .project-title { color: var(--primary); }
/* The circular arrow button */
.project-arrow { width: 35px; height: 35px; border-radius: 50%; background-color: var(--bg-light); color: var(--text-main); display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; font-weight: bold; font-size: 1.2rem; }
.project-card-modern:hover .project-arrow { background-color: var(--primary); color: var(--text-light); transform: translateX(5px); }
.projects-slider-wrapper { position: relative; padding: 0 20px; }
.projects-slider {display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; padding-bottom: 20px; }
.projects-slider::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
/* Slider Navigation Buttons */
.slider-btn { position: absolute; top: calc(50% - 20px); transform: translateY(-50%); background: var(--primary); color: var(--text-light); border: none; width: 45px; height: 45px; 
    border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.slider-btn:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* --- Filter Buttons --- */
.filter-btn { padding: 8px 24px; border: 2px solid var(--primary); background: transparent; color: var(--primary); border-radius: 30px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--text-light); box-shadow: 0 4px 10px rgba(97, 45, 135, 0.3); }

/* --- Bento Grid Layout --- */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 250px; gap: 20px; grid-auto-flow: dense; }
.bento-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; background-color: var(--bg-dark); transition: transform 0.4s ease, opacity 0.4s ease; }
.bento-item.hide { display: none; }

.job-card { transition: var(--transition); background-color: var(--bg-white); }
.job-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(97, 45, 135, 0.12); border-color: var(--primary); }
.job-badge { display: inline-block; font-weight: bold; letter-spacing: 0.5px; }
.job-title { transition: color 0.3s ease; }
.job-card:hover .job-title { color: var(--primary); }
/* --- Specific Sizes for Desktop --- */
@media (min-width: 768px) { .item-large { grid-column: span 2; grid-row: span 2; } .item-wide { grid-column: span 2; } .item-tall { grid-row: span 2; } }

/* --- Image & Overlay Interactions --- */
.bento-item .gallery-img { transition: transform 0.6s ease; }
.bento-item:hover .gallery-img { transform: scale(1.08); }
.bento-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); opacity: 0.6; transition: opacity 0.4s ease; z-index: 1; }
.bento-item:hover .bento-overlay { opacity: 0.9; }
.bento-content { position: absolute; bottom: -15px; left: 0; right: 0; padding: 25px; z-index: 2; opacity: 0; transition: all 0.4s ease; }
.bento-item:hover .bento-content { bottom: 0; opacity: 1; }
.bento-category { display: inline-block; color: var(--primary); background: #ffffff; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; }

/* --- Floating WhatsApp Pill --- */
.whatsapp-pill { position: fixed; bottom: 40px; right: 40px; z-index: 99; background-color: #25d366; color: #ffffff; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; font-weight: bold; font-size: 1rem; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); outline: 3px solid rgba(37, 211, 102, 0.4); outline-offset: 3px; transition: var(--transition); }
.whatsapp-pill:hover { transform: translateY(-4px); background-color: #20ba5a; outline-color: rgba(37, 211, 102, 0.8); color: #ffffff; }
.wa-icon-pill { width: 20px; height: 20px; fill: currentColor; }

/* Responsive adjustments for the slider */
@media (min-width: 768px) {
    .slider-item {
        flex: 0 0 calc(50% - 10px); /* Show 2 cards on tablets */
    }
}

@media (min-width: 1024px) {
    .projects-slider-wrapper { padding: 0 40px; }
    .slider-item {
        flex: 0 0 calc(33.333% - 14px); /* Show 3 cards on desktop */
    }
    .prev-btn { left: -20px; }
    .next-btn { right: -20px; }
}

@media (min-width: 768px) {
    .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .site-header .container { flex-wrap: wrap; }
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; width: 100%; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .main-nav.active { display: block; }
    .main-nav .nav-list { flex-direction: column; gap: 15px; text-align: center; width: 100%;}
    .main-nav .btn { display: block; width: 100%; }
}