/* 
    The Home Company - Core Styles
    Theme: Modern Dark / Luxury Residential
*/

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

:root {
    --bg-deep: #0a0a0a;
    --bg-card: #151515;
    --accent: #f2c75b; /* Gold/Yellow from reference */
    --accent-hover: #d4a73d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --animation-duration: 0.8s;
}

html {
    scroll-behavior: smooth;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
    border: 3px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeInPage 1.5s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, .nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* --- Navigation --- */

nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.cta-btn {
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Hero --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Above hero background */
    filter: none; /* Reset filter for debugging */
    animation: none; /* Disable animation temporarily to debug visibility */
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    display: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3; /* Above all */
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- Services --- */

.section-head {
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-head .line {
    width: 60px;
    height: 4px;
    background: var(--accent);
}

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

.service-card {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

/* Mouse Glow Effect */
.service-card::before, .project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(242, 199, 91, 0.15), transparent 40%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::before, .project-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    left: 150%;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--glass));
    transform: translateX(-100%);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: translateX(0);
}

/* --- Team & Process --- */

.team-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.team-card img {
    transition: var(--transition);
    filter: grayscale(1);
}

.process-card {
    position: relative;
}

.process-card::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -20px;
    width: 40px;
    height: 1px;
    background: var(--glass-border);
}

.gallery-item img {
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.2);
}

.animate-hover {
    cursor: pointer;
    position: relative;
}

.animate-hover::after {
    content: 'VIEW DETAIL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

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

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

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

.service-card p {
    color: var(--text-secondary);
}

/* --- Projects --- */

.project-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

/* --- Stats --- */

.stats {
    background: var(--accent);
    color: #000;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    gap: 40px;
}

.stat-item h2 {
    font-size: 3rem;
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Footer --- */

footer {
    background: #050505;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4 {
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

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

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

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Infrastructure --- */

.infra-section {
    display: flex;
    gap: 80px;
    align-items: center;
}

.infra-image {
    flex: 1;
    height: 600px;
    position: relative;
}

.infra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.infra-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    z-index: -1;
}

.infra-content {
    flex: 1;
}

.infra-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.infra-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- News --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: #000;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--accent);
}

.news-img {
    height: 250px;
    overflow: hidden;
}

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

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

.news-body {
    padding: 30px;
}

.news-date {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.news-body h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.news-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* --- CTA Banner --- */

.cta-banner {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

/* --- General --- */

/* --- Animations & High-Level Transitions --- */

/* Base Reveal State */
/* Advanced Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

/* Directional Reveals */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reveal Trigger */
.reveal.active, 
.reveal-left.active, 
.reveal-right.active, 
.reveal-scale.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Clip-Path Image Reveal (Ultra Luxury) */
.reveal-clip {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-clip.active {
    clip-path: inset(0 0 0 0);
}

/* Staggered Delay Utilities - Refined */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Global Animations */
@keyframes heroTextReveal {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

#home {
    overflow: hidden;
}

.hero-content h1, .hero-content p, .hero-content .badge, .hero-content div {
    animation: heroTextReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
}

.hero-content h1 { animation-delay: 0.3s; }
.hero-content p { animation-delay: 0.5s; }
.hero-content .badge { animation-delay: 0.1s; }
.hero-content .div-btn { animation-delay: 0.7s; } /* Target the btn wrapper */

/* Image Hover Effects - High Level */
.project-item img, .gallery-item img, .news-img img {
    transition: transform 1.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.project-item:hover img, .gallery-item:hover img {
    transform: scale(1.1);
}

.badge {
    background: var(--accent);
    color: #000;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: inline-block;
}

/* --- Mobile Menu Styles --- */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    z-index: 999;
    padding: 120px 40px;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .hero h1, h1[style*="font-size: 5rem"], h1[style*="font-size: 4.5rem"] {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        padding: 5px 0 !important;
    }

    .nav-content {
        padding: 10px 0 !important;
    }

    .nav-logo img:nth-child(1) { height: 40px !important; }
    .nav-logo img:nth-child(2) { height: 22px !important; }
    
    section {
        padding: 60px 20px !important;
    }

    .hero, 
    section[style*="height"], 
    section[style*="padding: 100px 0"],
    section[style*="padding: 120px 0"],
    section[style*="padding: 140px 0"] {
        height: auto !important;
        min-height: 400px !important;
        padding: 80px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .hero h1, 
    h1[style*="font-size: 5rem"], 
    h1[style*="font-size: 4.5rem"],
    h1[style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
    }

    h2, 
    h2[style*="font-size: 4rem"],
    h2[style*="font-size: 3.5rem"], 
    h2[style*="font-size: 3.2rem"],
    h2[style*="font-size: 3rem"], 
    h3[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .hero p, .hero-content p, section p {
        font-size: 0.95rem !important;
        max-width: 100% !important;
        line-height: 1.6 !important;
    }
    
    /* Service List Styling for Mobile */
    ul[style*="list-style: none"] li {
        font-size: 0.9rem !important;
        padding: 10px 0 !important;
    }

    /* Global Grid & Flex Stack for ALL pages */
    div[style*="display: grid"], 
    div[style*="display: flex"],
    .footer-grid, 
    .services-grid, 
    .projects-grid,
    .infra-section {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        display: block !important;
        gap: 30px !important;
    }

    /* Fix image and content order for alternating sections */
    div[style*="grid-template-columns"] > div {
        order: unset !important;
        margin-bottom: 30px;
        width: 100% !important;
    }

    .infra-image, .reveal-clip, .gallery-item, 
    div[style*="height: 600px"], 
    div[style*="height: 700px"] {
        height: 280px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        position: relative !important;
        inset: auto !important;
    }

    /* Advanced Redesign Mobile Fixes (Beyond the Blueprints) */
    div[style*="background: var(--accent)"] {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 30px !important;
        right: auto !important;
    }

    div[style*="padding-left: 40px"] {
        padding-left: 0 !important;
    }

    /* Boxed content handling */
    .reveal-right, .reveal-left {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 30px 0 !important;
    }

    /* Stats Grids */
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .stat-item h3, 
    h3[style*="font-size: 3rem"], 
    h3[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }

    /* Top Bar Mobile Cleanup */
    div[style*="background: #000; padding: 10px 0"] {
        display: none;
    }
}

@media (max-width: 480px) {
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .cta-btn {
        width: 100%;
        display: block;
        text-align: center;
        padding: 15px !important;
    }
}

/* --- Social Media Reels --- */

.reels-section {
    padding: 120px 0;
    background: #080808;
    overflow: hidden;
}

.reels-scroll-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.reels-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.reel-card {
    flex: 0 0 320px;
    height: 560px; /* 9:16 approx aspect ratio */
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.reel-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.reel-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.reel-video-container video, 
.reel-video-container .reel-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 2;
    pointer-events: none;
}

.reel-overlay h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.reel-overlay .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.reel-card:hover .play-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .reel-card {
        flex: 0 0 260px;
        height: 460px;
    }
}



