/* DIP Real Estate App - Brand Colors: Gold/Orange (#F59E0B, #EA580C), Black (#000000), White (#FFFFFF) */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Brand Color Variables */
:root {
    --primary-gold: #F59E0B;
    --primary-orange: #EA580C;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --secondary-gray: #6B7280;
    --light-gray: #F3F4F6;
    --dark-gray: #374151;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-black) 0%, #1F2937 50%, var(--primary-black) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.preloader-logo img {
    height: 80px;
    width: auto;
    animation: breathe 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.preloader-logo .logo-text {
    display: none;
    color: var(--primary-white);
    font-size: 3rem;
    font-weight: 800;
    margin-top: 1rem;
    animation: breathe 2.5s ease-in-out infinite;
}

.preloader-logo img.error {
    display: none;
}

.preloader-logo img.error + .logo-text {
    display: block;
}

.preloader-brand {
    color: var(--primary-white);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Enhanced Progress Bar */
.progress-container {
    width: 320px;
    max-width: 90vw;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-gold) 100%);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    color: var(--primary-white);
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.loading-message {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.5rem;
    transition: opacity 0.3s ease;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-white) 0%, #F9FAFB 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
}

.splash-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.splash-logo img {
    height: 100px;
    width: auto;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.splash-logo .logo-text {
    display: none;
    color: var(--primary-black);
    font-size: 4rem;
    font-weight: 800;
    margin-top: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.splash-logo img.error {
    display: none;
}

.splash-logo img.error + .logo-text {
    display: block;
}

.splash-content {
    text-align: center;
    max-width: 600px;
    padding: 0 2rem;
}

.splash-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.splash-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary-gray);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.splash-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.splash-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.splash-indicators .indicator {
    width: 12px;
    height: 12px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    animation: pulse-indicator 1.2s ease-in-out infinite;
}

.splash-indicators .indicator:nth-child(2) {
    animation-delay: 0.2s;
}

.splash-indicators .indicator:nth-child(3) {
    animation-delay: 0.4s;
}

/* Main Content Styles */
.main-content {
    min-height: 100vh;
    background: linear-gradient(135deg, #F9FAFB 0%, var(--primary-white) 100%);
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-content.visible {
    opacity: 1;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.1rem;
    color: var(--secondary-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Program Cards */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.program-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.program-card:nth-child(2) {
    animation-delay: 0.2s;
}

.program-card:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    transition: background 0.4s ease;
    z-index: 1;
}

.program-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.program-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-bg {
    transform: scale(1.1);
}

.program-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--primary-white);
    z-index: 2;
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-content {
    transform: translateY(-10px);
}

.program-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Mobile and tablet adjustments for better text visibility */
@media (max-width: 1023px) {
    .program-card-location {
        font-size: 0.75rem;
        white-space: normal;
        text-overflow: initial;
        overflow: visible;
        line-height: 1.3;
        letter-spacing: 0.5px;
    }
}

.program-card-location.orange {
    color: var(--primary-gold);
}

.program-card-location.cyan {
    color: #e11d48;
}

.program-card-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.program-card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.program-card-features {
    list-style: none;
    margin-bottom: 2rem;
}

.program-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.program-card-features .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.program-card-features .icon.orange {
    color: var(--primary-gold);
}

.program-card-features .icon.cyan {
    color: #e11d48;
}

.program-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1;
    transform: translateY(0);
}

/* Desktop hover effects - hide buttons by default and show on hover */
@media (min-width: 1024px) {
    .program-card-button {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .program-card:hover .program-card-button {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card-button.orange {
    background-color: var(--primary-orange);
    color: var(--primary-white);
}

.program-card-button.orange:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
}

.program-card-button.cyan {
    background-color: #e11d48;
    color: var(--primary-white);
}

.program-card-button.cyan:hover {
    background-color: #be185d;
    transform: translateY(-2px);
}

/* Why Choose DIP Section */
.why-choose {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.why-choose h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.2s;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.benefit-icon.orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-orange);
}

.benefit-icon.cyan {
    background-color: rgba(225, 29, 72, 0.1);
    color: #e11d48;
}

.benefit-icon.green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--secondary-gray);
    line-height: 1.6;
}

/* Animations */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse-indicator {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

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

/* Responsive Design - Mobile First */
@media (min-width: 640px) {
    .header h1 {
        font-size: 3rem;
    }
    
    .program-card {
        height: 550px;
    }
    
    .program-card-title {
        font-size: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .splash-title {
        font-size: 4rem;
    }
    
    .splash-subtitle {
        font-size: 1.8rem;
    }
    
    .splash-tagline {
        font-size: 1.4rem;
    }
    
    .header h1 {
        font-size: 3.5rem;
    }
    
    .program-card {
        height: 600px;
    }
    
    .program-card-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .program-card {
        height: 650px;
    }
    
    .header h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
    
    .program-card {
        height: 700px;
    }
}

