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

:root {
    /* Color Palette - Updated to Blue & Red */
    --primary: #00008A; /* Deep Professional Blue */
    --primary-dark: #000066;
    --primary-light: #1a1a9e;
    --secondary: #B82E00; /* Engineering Red Accent */
    --secondary-hover: #9e2700;
    --bg-dark: #05051a; /* Very Dark Blue */
    --bg-light: #f4f7fa;
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 138, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184, 46, 0, 0.3);
}

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

.hero .btn-outline {
    border-color: var(--text-white);
    color: var(--text-white);
}

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

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

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

header.scrolled .nav-links a {
    color: var(--text-main);
}

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

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

.logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-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(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/img_01.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-white);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.4s;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

/* About Section */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Why Us Section */
.why-us {
    background: radial-gradient(circle at center, #0a0a2e 0%, var(--bg-dark) 100%);
    color: var(--text-white);
}

.why-us .section-title h2 {
    color: var(--text-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.feature-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(184, 46, 0, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(184, 46, 0, 0.3));
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Project Albums */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.album-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,138,0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: var(--transition);
}

.album-overlay h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.album-overlay span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: block;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,138,0.2);
}

/* Album Badge */
.album-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.album-badge.complete {
    background: #27ae60; /* Green */
}

.album-badge.ongoing {
    background: #f39c12; /* Orange */
}

.album-badge.proposed {
    background: #2980b9; /* Blue */
}

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

/* Project Albums "Show More" Styles */
.album-wrapper {
    position: relative;
    max-height: 510px; /* Shows 1st row and half of 2nd row */
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}

.album-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to top, var(--bg-light) 15%, rgba(244, 247, 250, 0.8) 40%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.show-more-btn {
    pointer-events: auto;
    background: #FF781F;
    color: white;
    border: none;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 120, 31, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.show-more-btn:hover {
    background: #e66a1a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 120, 31, 0.5);
}

.show-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 26, 0.98);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 60px 20px;
}

.close-lightbox {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2100;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 1200px;
    margin: 0 auto;
}

.lightbox-content h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.lightbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lightbox-item {
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.lightbox-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: var(--transition);
}

.lightbox-item img:hover {
    transform: scale(1.05);
}

/* Contact & Forms */
.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Modern File Upload */
.modern-file-upload {
    position: relative;
}

.modern-file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    transition: var(--transition);
    text-align: center;
}

.modern-file-upload:hover .upload-zone {
    border-color: var(--primary);
    background: #f0f4ff;
}

.upload-zone i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-zone span {
    font-weight: 600;
    color: var(--text-main);
}

.upload-zone small {
    color: var(--text-muted);
    margin-top: 5px;
}

/* Footer Refined */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 80px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 25px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 400px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.footer-nav h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
}

.footer-nav h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav ul a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Micro-animations and Polish */
.btn-primary:active {
    transform: translateY(0);
}

.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: var(--primary-light);
}

/* Gallery Lightbox Preview (Simple CSS-only or basic JS) */
.gallery-item::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* WhatsApp Floating Button & Popup */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.whatsapp-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: whatsappSlideUp 0.4s ease;
}

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

.whatsapp-popup-header {
    background-color: #075E54;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-info i {
    font-size: 1.8rem;
}

.whatsapp-info h4 {
    margin: 0;
    font-size: 1rem;
}

.whatsapp-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.close-whatsapp {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: var(--transition);
}

.close-whatsapp:hover {
    opacity: 1;
}

.whatsapp-popup-body {
    padding: 25px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-repeat: repeat;
}

.whatsapp-popup-body p {
    background: white;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #111;
}

.whatsapp-popup-body textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    outline: none;
    border: 1px solid transparent;
    transition: var(--transition);
}

.whatsapp-popup-body textarea:focus {
    border-color: #25D366;
}

.whatsapp-popup-footer {
    padding: 15px 25px 25px;
    background-color: white;
}

.btn-whatsapp-send {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-whatsapp-send:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .forms-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-cta {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    .form-box {
        padding: 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
