/* =========================================
   DreamCity Developments
   Premium Real Estate Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@400;700;900&display=swap');

:root {
    --bg-deep: #0f172a;
    --bg-surface: #1e293b;
    --primary: #10b981;
    /* Emerald Green */
    --secondary: #f59e0b;
    /* Amber/Gold */
    --accent: #3b82f6;
    /* Ocean Blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-low: rgba(255, 255, 255, 0.05);
    --glass-high: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.1);

    --glow-primary: 0 0 20px rgba(16, 185, 129, 0.5);
    --glow-secondary: 0 0 20px rgba(245, 158, 11, 0.5);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* --- ANIMATED BACKGROUND --- */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 35%);
    animation: pulse-bg 15s infinite alternate ease-in-out;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
}

@keyframes pulse-bg {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, var(--secondary) 100%);
    background: linear-gradient(to right, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
    box-shadow: var(--glow-primary);
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn-cyber {
    position: relative;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    border-radius: 4px;
    display: inline-block;
}

.btn-cyber:hover {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* Premium SIGN UP Button */
.btn-signup {
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-signup:hover::before {
    left: 100%;
}

.btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.btn-cyber-alt:hover {
    color: #ffffff !important;
    background: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4) !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8) !important;
    border-color: var(--secondary) !important;
}

/* --- GLASS CARDS (TILT READY) --- */
.tilt-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.tilt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: 0.3s;
}

.tilt-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.tilt-card:hover::before {
    opacity: 1;
}

.icon-glow {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: white;
    /* Fallback */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
}

.nav-logo-img:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.nav-logo span {
    color: var(--primary);
    font-weight: 400;
    font-family: var(--font-body);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.btn-nav-alt:hover {
    color: #ffffff !important;
    background: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4) !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8) !important;
    border-color: var(--secondary) !important;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links a {
    margin-left: 30px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 50px;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: rotate-glow 20s infinite linear;
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- ROADMAP --- */
.roadmap-wrap {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 50px 0;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 3px;
}

.roadmap-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.roadmap-node:nth-child(even) {
    flex-direction: row-reverse;
}

.node-content {
    width: 45%;
}

.node-date {
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: var(--glow-primary);
}

.node-point {
    width: 20px;
    height: 20px;
    background: var(--bg-deep);
    border: 4px solid var(--secondary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px var(--secondary);
}

/* --- TEAM (HEXAGONS) --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 50px;
}

.team-card {
    text-align: center;
    width: 300px;
}

.hex-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-deep));
    margin: 0 auto 30px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    color: var(--text-main);
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: 0.4s ease;
}

.team-card:hover .hex-avatar {
    background: var(--primary);
    color: var(--bg-deep);
    transform: rotate(30deg);
}

.team-card:hover .hex-avatar span {
    transform: rotate(-30deg);
    display: block;
}

/* --- LOGIN SPECIFIC --- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(16, 185, 129, 0.1);
    position: relative;
    z-index: 10;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.cyber-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #475569;
    padding: 10px 0;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.cyber-input:focus {
    border-color: var(--primary);
}

.input-label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
}

.cyber-input:focus+.input-label,
.cyber-input:not(:placeholder-shown)+.input-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* --- PROJECT GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.gallery-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-caption i {
    color: var(--primary);
    margin-right: 8px;
}

/* --- CONTACT MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: rgba(30, 41, 59, 0.97);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: visible;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.4s ease;
    margin: auto;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: #ff4444;
    transform: rotate(90deg);
}

.modal-timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 0 0 2px 0;
}

.modal-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.modal-contact-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.modal-contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .modal-overlay {
        padding: 20px 12px 12px;
    }

    .modal-box {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .modal-contact-item {
        gap: 10px;
        padding: 10px 12px;
    }

    .modal-contact-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }

    .gallery-img-wrap {
        height: 180px;
    }

    .nav-logo-img {
        height: 40px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    .btn-cyber,
    .btn-signup {
        padding: 10px 22px;
        font-size: 0.8rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .roadmap-line {
        left: 20px;
    }

    .roadmap-node {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 50px;
    }

    .node-content {
        width: 100%;
    }

    .node-point {
        left: 20px;
    }
}