:root {
    --primary-color: #2a9d8f;
    --secondary-color: #76c893;
    --accent-color: #52b788;
    --dark-color: #1a7a6f;
    --light-color: #d8f3dc;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* iOS Safari CSS Variables Fallback */
.glass-card, .hero-content, .building-animation-container {
    /* Force hardware acceleration for smooth animations */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Ensure consistent rendering across browsers */
body, html {
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #2a9d8f 50%, #52b788 100%);
    background: -webkit-linear-gradient(135deg, #667eea 0%, #2a9d8f 50%, #52b788 100%);
    background: -moz-linear-gradient(135deg, #667eea 0%, #2a9d8f 50%, #52b788 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari fix */
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS Safari viewport fix */
@supports (-webkit-appearance:none) {
    body {
        min-height: -webkit-fill-available;
        background: linear-gradient(135deg, #667eea 0%, #2a9d8f 50%, #52b788 100%) !important;
        background-attachment: scroll; /* Fixed backgrounds don't work on iOS */
    }
}

/* Prevent iOS color adjustments */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Remove aggressive color scheme forcing */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Glassmorphism Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
}

/* iOS Safari 18 backdrop-filter bug fixes */
@supports (-webkit-appearance:none) {
    .glass-card {
        /* Fix 1: Ensure element has visible dimensions */
        min-height: 1px;
        min-width: 1px;
        
        /* Fix 2: Create new stacking context */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        
        /* Fix 3: Use @supports to ensure backdrop-filter is supported */
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Additional Safari 18 fix - only apply backdrop-filter if supported */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .glass-card {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    /* Safari iOS specific - lighter blur */
    @supports (-webkit-appearance:none) {
        .glass-card {
            -webkit-backdrop-filter: blur(8px) !important;
            backdrop-filter: blur(8px) !important;
            background: rgba(255, 255, 255, 0.03) !important;
        }
    }
}

/* Fallback for Safari without backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .glass-card {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 122, 111, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* Hero Logo */
.hero-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(42, 157, 143, 0.3));
    animation: fadeInUp 1s ease;
    transition: transform 0.3s ease;
}

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

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.text-gradient {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Value Propositions */
.value-props {
    animation: fadeInUp 1s ease 0.3s both;
}

.value-prop {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.value-prop i {
    color: var(--secondary-color);
    width: 25px;
    font-size: 1.2rem;
}

.value-prop span {
    font-weight: 500;
}

/* Coming Soon Badge - Top Center */
.coming-soon-badge-top {
    position: absolute;
    top: -10px;
    left: 35%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInDown 1s ease 0.8s both;
    text-align: center;
}

.badge-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 6px 25px rgba(42, 157, 143, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coming-soon-subtitle {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInDown 1s ease 1s both;
    font-style: italic;
}


/* Contact Info */
.contact-info {
    animation: fadeInUp 1s ease 0.6s both;
}

.contact-item {
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--secondary-color);
    width: 30px;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Building Animation */
.building-animation-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* Building Logo Sign with Stands Animation */
.building-logo {
    animation: fadeInSlide 2s ease 2.5s both;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.building-logo:hover {
    transform: translate(115px, 120px) scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translate(115px, 100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(115px, 120px) scale(1);
    }
}

/* Crane Wrapper */
.crane-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -120px;
    bottom: 0;
}

/* Crane SVG */
.crane-svg {
    position: absolute;
    width: 400px;
    height: 500px;
    right: 0;
    bottom: 0;
    z-index: 10;
    animation: craneSway 12s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes craneSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-1deg);
    }
    75% {
        transform: rotate(1deg);
    }
}


.building-svg {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

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

/* Building Floor Animation */
.floor {
    opacity: 0;
    transform: translateY(50px);
    animation: buildFloor 0.8s ease forwards;
}

.floor-1 { animation-delay: 0.5s; }
.floor-2 { animation-delay: 0.8s; }
.floor-3 { animation-delay: 1.1s; }
.floor-4 { animation-delay: 1.4s; }
.floor-5 { animation-delay: 1.7s; }
.floor-6 { animation-delay: 2s; }
.floor-7 { animation-delay: 2.3s; }

@keyframes buildFloor {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Window Glow Animation */
.window {
    animation: windowGlow 3s ease-in-out infinite;
}

@keyframes windowGlow {
    0%, 100% {
        opacity: 0.6;
        fill: #76c893;
    }
    50% {
        opacity: 1;
        fill: #b7e4c7;
        filter: drop-shadow(0 0 10px rgba(183, 228, 199, 0.8));
    }
}


/* Features Section */
.features-section {
    position: relative;
    z-index: 1;
    margin-top: -50px;
}

.feature-card {
    height: 100%;
    transition: all 0.3s ease;
}

.feature-icon {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.feature-card h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: float-shape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation: float-shape 30s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}


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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .building-animation-container {
        margin-top: 3rem;
    }
    
    /* Reduce particles on tablets */
    #particles-js {
        opacity: 0.7;
    }
    
    /* Adjust crane size */
    .crane-svg {
        width: 300px;
        right: -100px;
    }
}

@media (max-width: 768px) {
    /* Hide Coming Soon Badge on Mobile */
    .coming-soon-badge-top {
        display: none;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-logo {
        width: 220px;
    }
    
    /* Building animation mobile */
    .building-svg {
        animation: none; /* Disable float animation on mobile */
    }
    
    .crane-wrapper {
        right: -50px;
        top: 50px;
    }
    
    .crane-svg {
        width: 250px;
        right: 0;
        animation: none; /* Disable crane sway on mobile */
    }
    
    /* Floating shapes - reduce on mobile */
    .shape {
        opacity: 0.05;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-logo {
        width: 180px;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .badge-text {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .contact-info h5 {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
        padding: 1.5rem !important;
    }
    
    .feature-icon {
        font-size: 2rem !important;
    }
    
    /* Mobile building animation */
    .building-animation-container {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .crane-wrapper {
        right: -30px;
        top: 80px;
    }
    
    .crane-svg {
        width: 200px;
        right: 0;
    }
    
    /* Reduce particles significantly on mobile */
    #particles-js {
        opacity: 0.5;
    }
    
    /* Mobile navbar */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 400px) {
    .hero-content {
        padding: 1rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .crane-wrapper {
        right: -20px;
        top: 100px;
    }
    
    .crane-svg {
        width: 180px;
        right: 0;
    }
    
    .building-svg {
        width: 90%;
        margin: 0 auto;
    }
    
    /* Very small screens - minimal particles */
    #particles-js {
        opacity: 0.3;
    }
}