/* Premium Real Estate Builder - Main Styles */

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

:root {
    --primary-gold: #D4AF37;
    --primary-black: #1A1A1A;
    --primary-white: #FFFFFF;
    --muted-grey: #F8F8F8;
    --dark-grey: #333333;
    --light-grey: #E5E5E5;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(45deg, #ff6b6b, #ffa500);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.25);
    --border-radius: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    overflow-x: hidden;
    background-color: var(--primary-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--primary-black);
    letter-spacing: -2px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin-bottom: 60px;
    text-align: center;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
}

.nav-container1 {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-black);
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--primary-gold);
    /* transform: scale(1.05); */
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-links a:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Button Styles */
.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary-gold);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    background: #B8941F;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-black);
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: var(--gradient-primary);
    animation: heroParallax 20s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes heroParallax {
    0%, 100% { 
        transform: scale(1) translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: scale(1.05) translate(-2%, -1%) rotate(0.5deg); 
    }
    50% { 
        transform: scale(1.08) translate(-1%, -2%) rotate(-0.5deg); 
    }
    75% { 
        transform: scale(1.03) translate(1%, -1%) rotate(0.3deg); 
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    margin-bottom: 25px;
    letter-spacing: -3px;
    opacity: 0;
    animation: slideUpFade 1.2s ease forwards 0.5s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 45px;
    opacity: 0.95;
    font-weight: 300;
    opacity: 0;
    animation: slideUpFade 1.2s ease forwards 0.8s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
}

.cta-button {
    opacity: 0;
    animation: slideUpFade 1.2s ease forwards 1.1s;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Project Cards */
.projects-section {
    padding: 120px 0;
    background: var(--muted-grey);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.project-category {
    margin-bottom: 100px;
}

.category-title {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 60px;
    color: var(--primary-black);
    position: relative;
    padding-left: 50px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
}

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

.project-card {
    position: relative;
    height: 520px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    background: white;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    width: 100%;
    height: 70%;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.85) 0%, 
        rgba(118, 75, 162, 0.85) 100%);
    transition: all 0.4s ease;
}

.project-card:hover .project-image::before {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.6) 0%, 
        rgba(118, 75, 162, 0.6) 100%);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: white;
    color: var(--primary-black);
    transform: translateY(0);
    transition: var(--transition-smooth);
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-black);
}

.project-location {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-location::before {
    content: '📍';
    font-size: 0.9rem;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .view-project {
    opacity: 1;
    transform: translateX(5px);
}

.view-project i {
    transition: transform 0.3s ease;
}

.view-project:hover i {
    transform: translateX(3px);
}

/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.gallery-item:hover {
    transform: scale(1.05) rotateZ(1deg);
    box-shadow: var(--shadow-medium);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    z-index: 3;
    transition: var(--transition-smooth);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(20px);
    animation: lightboxFade 0.3s ease;
}

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

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxZoom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes lightboxZoom {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--light-grey);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Action Cards */
.action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
}

.action-card i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.action-card:hover i {
    transform: scale(1.1) rotateY(10deg);
}

.action-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.action-card p {
    color: var(--dark-grey);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-black) 0%, #2c2c2c 100%);
    color: white;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-gold);
    font-weight: 500;
}

.footer-section p, 
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .nav-container1 {
        padding: 0 20px;
        max-width: 390px !important;
    }
    
    .nav-links {
        color: var(--primary-gold);
        background: rgba(212, 175, 55, 0.1);
        border-radius: 20px;
        
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-card {
        height: 450px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .category-title {
        font-size: 2.2rem;
        padding-left: 35px;
    }
    
    .category-title::before {
        width: 20px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card {
        height: 400px;
    }
    
    .action-card {
        padding: 30px 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 15px 30px;
        font-size: 0.95rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}