/* ==========================================================================
   Modern Construction Theme - BuildCorp
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary: #ea580c; /* Vibrant Orange */
    --color-primary-hover: #c2410c;
    --color-dark: #0f172a; /* Slate 900 */
    --color-darker: #020617; /* Slate 950 */
    --color-light: #f8fafc; /* Slate 50 */
    --color-grey: #64748b; /* Slate 500 */
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-padding-top: 120px;
}

body {
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from GSAP 3D off-screen elements */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

strong { font-weight: 700; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
.contact-link:hover { color: var(--color-primary); text-decoration: underline; transform: translateY(-1px); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

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

.text-center { text-align: center; }

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-main);
    transition: all var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 16px;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover { gap: 12px; }

/* Labels */
.section-badge {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.section-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-header h4 {
    margin-bottom: 12px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--color-darker);
    color: var(--color-grey);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .contact-info span { margin-right: 20px; }
.top-bar .contact-info i { color: var(--color-primary); margin-right: 5px; }
.top-bar .social-icons i { margin-left: 15px; cursor: pointer; transition: color var(--transition-fast); }
.top-bar .social-icons i:hover { color: var(--color-primary); }

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

/* Anchor offset for sticky navbar */
section[id] {
    scroll-margin-top: 140px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 300;
    color: var(--color-dark);
    transition: transform var(--transition-smooth);
}

.logo span {
    line-height: 1;
}

.logo strong {
    font-weight: 700;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px; /* Adjust height for navbar */
    width: auto;
    object-fit: contain;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-weight: 600;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    padding: 10px 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-dark);
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none; /* No underline effect for dropdown links */
}

.dropdown-menu a:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('../images/bg1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    perspective: 1000px;
}

.hero-text-wrapper {
    max-width: 700px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title .highlight { color: var(--color-primary); }
.hero-subtitle { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 40px; max-width: 600px; font-weight: 300;}
.hero-actions { display: flex; gap: 20px; }

/* About Hero Section - Clean version without overlay */
.about-hero {
    position: relative;
    padding: 120px 0;
    background-color: var(--color-light);
    display: flex;
    align-items: center;
}

.about-hero .hero-content {
    color: var(--color-dark);
}

.about-hero .hero-subtitle {
    color: var(--color-grey);
}

/* ==========================================================================
   Features Cards (Overlapping Hero)
   ========================================================================== */
.features-section {
    position: relative;
    margin-top: 0 !important;
    padding-top: 40px;
    z-index: 10;
    perspective: 1000px;
}

.features-section .section-header {
    position: relative;
    z-index: 10;
}

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

.feature-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-smooth), border-top var(--transition-smooth), background-color var(--transition-smooth);
    border-top: 4px solid transparent;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-15px) rotateX(4deg) rotateY(2deg);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 20px 40px -10px rgba(234, 88, 12, 0.3);
}

.feature-card.active .card-icon { 
    color: var(--color-white); 
    background-color: rgba(255, 255, 255, 0.2); 
}

.feature-card.active p { 
    color: rgba(255, 255, 255, 0.9); 
}

.card-icon {
    width: 70px; height: 70px;
    background-color: #fff7ed;
    color: var(--color-primary);
    border-radius: 16px; /* Modern squircle-like look */
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 24px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.feature-card:hover .card-icon {
    transform: rotateY(360deg);
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.4);
}

.feature-card h3 { 
    font-size: 24px; 
    margin-bottom: 15px; 
    position: relative;
    z-index: 1;
}

.feature-card p { 
    color: var(--color-grey); 
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.feature-card:hover p {
    color: var(--color-dark);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-image { position: relative; }
.about-image img { border-radius: 8px; box-shadow: var(--shadow-lg); }

.experience-badge {
    position: absolute;
    bottom: -30px; right: 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-white);
}

.exp-years { display: block; font-size: 40px; font-weight: 900; line-height: 1; }
.exp-text { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.about-content h2 { font-size: 42px; margin-bottom: 24px; color: var(--color-darker); }
.about-content p { color: var(--color-grey); margin-bottom: 30px; font-size: 18px; }

.about-list li {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 15px;
    font-weight: 600; font-size: 18px;
}
.about-list i { color: var(--color-primary); font-size: 20px; }

/* ==========================================================================
   CTA Parallax Banner
   ========================================================================== */
.cta-banner {
    position: relative;
    padding: 150px 0;
    background: url('../images/about.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--color-white);
}

.cta-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.85); /* Slate 900 */
}

.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: 48px; margin-bottom: 20px; }
.cta-content p { font-size: 20px; color: #cbd5e1; margin-bottom: 40px; }

/* ==========================================================================
   Services Section (Cinematic 3D Hover)
   ========================================================================== */
.services-section { padding: 120px 0; perspective: 1500px; }
.section-header h2 { font-size: 42px; margin-bottom: 60px; }

.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 480px;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    transition: transform var(--transition-smooth);
}

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

.service-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 40px 30px;
    color: var(--color-white);
    transition: transform 0.4s ease;
    transform: translateZ(30px); /* 3D depth */
}

.service-icon {
    width: 50px; height: 50px;
    background-color: var(--color-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 20px;
    transform: translateZ(50px);
}

.service-card h3 { font-size: 26px; margin-bottom: 12px; transform: translateZ(40px); }
.service-card p { color: #cbd5e1; margin-bottom: 24px; opacity: 0; transform: translateY(20px) translateZ(30px); transition: all 0.4s ease; }
.service-card .btn-text { color: var(--color-white); transform: translateZ(40px); opacity: 0; transition: all 0.4s ease 0.1s;}

.service-card:hover { transform: translateY(-15px) rotateX(5deg) rotateY(-5deg); box-shadow: var(--shadow-lg); }
.service-card:hover img { transform: scale(1.1); }
.service-card:hover p, .service-card:hover .btn-text { opacity: 1; transform: translateY(0) translateZ(30px); }
.service-card:hover .btn-text { transform: translateZ(40px); color: var(--color-primary); }

/* ==========================================================================
   Statistics Counters
   ========================================================================== */
.stats-section { padding: 80px 0; background-color: var(--color-primary); color: var(--color-white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 30px; }
.stat-item h3 { font-size: 56px; font-weight: 900; display: inline-block; }
.stat-item span { font-size: 40px; font-weight: bold; }
.stat-item p { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.8); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background-color: var(--color-darker); color: var(--color-grey); padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--color-white);
}

.footer-logo .logo-img {
    height: 40px; /* Shorter when text is present */
    filter: brightness(1.1);
}

.footer-text {
    font-size: 24px;
    font-weight: 300;
}

.footer-text strong {
    font-weight: 700;
    color: var(--color-primary);
}

.footer-about p { max-width: 400px; font-size: 16px; }

.footer-links h3, .footer-contact h3 { color: var(--color-white); margin-bottom: 25px; font-size: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--color-primary); padding-left: 5px; }
.footer-contact p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--color-primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; }

/* ==========================================================================
   Modal Update
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    opacity: 0; pointer-events: none; transition: opacity var(--transition-fast);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--color-white); padding: 50px; border-radius: 12px; width: 90%; max-width: 500px;
    position: relative; transform: scale(0.9) translateY(30px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.close-modal { position: absolute; right: 25px; top: 25px; font-size: 28px; cursor: pointer; color: var(--color-grey); }
.close-modal:hover { color: var(--color-primary); }
.modal-box h2 { font-size: 28px; margin-bottom: 10px; }
.modal-box > p { color: var(--color-grey); margin-bottom: 30px; }

.modal-box input, .modal-box select, .modal-box textarea {
    width: 100%; padding: 14px 18px; margin-bottom: 15px; border: 1px solid var(--color-border);
    border-radius: 6px; font-family: var(--font-main); font-size: 16px; outline: none; transition: border var(--transition-fast);
}
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus { border-color: var(--color-primary); }
.modal-box textarea { height: 120px; resize: vertical; }
.full-width { width: 100%; }

/* Project Gallery Popup */
.project-gallery {
    padding: 120px 0;
}

.project-gallery .section-header { margin-bottom: 50px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }

.gallery-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background: linear-gradient(180deg, transparent 30%, rgba(2,6,23,0.86) 100%);
    color: var(--color-white);
}

.gallery-card-content h3 { margin: 0; font-size: 24px; line-height: 1.2; }

.gallery-card-content p { margin-top: 10px; color: rgba(255,255,255,0.8); font-size: 15px; }

.project-modal-body {
    display: grid;
    gap: 30px;
}

.project-modal-body img {
    width: 100%;
    border-radius: 12px;
    max-height: 360px;
    object-fit: cover;
}

.project-modal-body h3 { margin-top: 0; }


@media screen and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .features-section { margin-top: 0 !important; padding-top: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    .top-bar { display: none; } /* Hide top bar on mobile for cleaner look */
    .nav-links { display: none; } /* Simple hiding for now */
    
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions button { width: 100%; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 40px; }
    .experience-badge { right: 10px; bottom: -20px; padding: 20px; }
    
    .services-grid { grid-template-columns: 1fr; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-content h2 { font-size: 32px; }
}

@media screen and (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .experience-badge { display: none; } /* Simplify on very small screens */
    .modal-box { padding: 30px 20px; }
}

/* ==========================================================================
   Video Section Styles
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper video {
    width: 100%;
    height: 400px; /* Set fixed height for portrait orientation */
    object-fit: cover; /* Ensure video fills the container */
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.video-wrapper video:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
