@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #f9c704;
    --primary-hover: #e0b403;
    --secondary: #1a1a1a;
    --accent: #2d2d2d;
    --text-main: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-gray: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent; /* Smooth mobile interaction */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* Header & Navbar */
header {
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Bottom Navigation (Mobile App Feel) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    border-top: 1px solid #333;
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 10px 0;
}

.bottom-nav li a {
    color: #888;
    text-decoration: none;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.bottom-nav li a i {
    font-size: 1.3rem;
}

.bottom-nav li a.active {
    color: var(--primary);
}

/* Mobile Sidebar (App Drawer) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--secondary);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 20px;
}

.mobile-drawer.active {
    left: 0;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.drawer-links {
    list-style: none;
    margin-top: 40px;
}

.drawer-links li {
    margin-bottom: 25px;
}

.drawer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(5px);
}

/* Banner / Hero */
.hero {
    height: 100vh;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.banner-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 600px;
    z-index: 2;
}

.banner-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease backwards;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* Projects Grid */
.projects-section {
    padding: 100px 0;
}

/* Layout Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden; /* Added to keep app-like feel */
}

/* Specific Container Responiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 991px) {
    .banner-content h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .mobile-nav-toggle { display: block; }
    .bottom-nav { display: block; }
    body { padding-bottom: 70px; } /* Space for bottom nav */
    .stat-item { margin-bottom: 30px; width: 45%; }
}

@media (max-width: 768px) {
    .banner-content { left: 5%; right: 5%; text-align: center; }
    .banner-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-section img { border-radius: 20px !important; margin-bottom: 20px; }
    .about-section .container > div { grid-template-columns: 1fr !important; gap: 30px !important; }
    .stats-section .container { flex-direction: row; justify-content: space-around; }
    .project-detail-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .form-container { padding: 30px 20px !important; }
    .form-row-mobile { grid-template-columns: 1fr !important; gap: 15px !important; }
    footer { padding: 40px 0 90px; }
    footer .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    footer .footer-col h4 { border-left: none; border-bottom: 2px solid var(--primary); display: inline-block; padding: 0 0 5px 0; }
    footer .social-links { justify-content: center; }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 90px; /* Above bottom nav on mobile */
    right: 25px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    text-decoration: none;
    transition: 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20b355;
    color: white;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (min-width: 992px) {
    .whatsapp-btn { bottom: 30px; }
}

@media (max-width: 480px) {
    .whatsapp-btn { width: 55px; height: 55px; font-size: 28px; bottom: 85px; right: 15px; }
}

@media (max-width: 480px) {
    .banner-content h1 { font-size: 1.8rem; }
    .banner-content p { font-size: 1rem; }
    .stat-item { width: 100%; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Chat Bot Popup */
.whatsapp-chat-box {
    position: fixed;
    bottom: 105px;
    right: 25px;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    z-index: 2001;
    display: none;
    overflow: hidden;
    flex-direction: column;
    animation: fadeInSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-header {
    background: #075e54;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header img {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: 2px solid #25d366;
    object-fit: cover;
}

.chat-body {
    padding: 20px;
    background: #e5ddd5;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
    font-size: 0.9rem;
    color: #444;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-footer {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 0.9rem;
}

.chat-send-btn {
    background: #25d366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
    .whatsapp-chat-box { bottom: 105px; }
}

@media (max-width: 480px) {
    .whatsapp-chat-box { width: calc(100% - 30px); right: 15px; bottom: 80px; }
}
