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

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

:root {
    --color-dark: #1a1a1a;
    --color-charcoal: #333333;
    --color-grey: #808080;
    --color-light-grey: #d4d4d4;
    --color-off-white: #f5f5f5;
    --color-white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--color-off-white);
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* Parallax Effect */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92), rgba(51, 51, 51, 0.78));
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.visible {
    opacity: 1 !important;
}

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

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

::-webkit-scrollbar-track {
    background: var(--color-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal);
    border-radius: 6px;
}

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

/* Navbar */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.navbar-scrolled {
    background: rgba(26, 26, 26, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    height: 40px;
    width: auto;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--color-light-grey);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Project/Work Cards */
.property-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: white;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(26, 26, 26, 0.25);
}

.property-card .card-content {
    position: relative;
    z-index: 2;
}

.property-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.property-card:hover .property-image {
    transform: scale(1.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    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.6s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.4);
}

.btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: white;
    color: var(--color-charcoal);
    transform: translateY(-2px);
}

/* Stats */
.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-light-grey), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.2);
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

/* Section Divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #333333, #808080);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Contact Form */
.contact-input {
    transition: all 0.3s ease;
    border: 2px solid var(--color-light-grey);
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-charcoal);
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.1);
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-header .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
}

.page-header .parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92), rgba(51, 51, 51, 0.78));
}

/* Project Gallery */
.project-gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.4s ease;
}

.project-gallery-img:hover {
    transform: scale(1.03);
}

/* Active Nav */
.nav-link-active {
    color: white !important;
    position: relative;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* Service Detail Cards (services page) */
.service-detail-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.15);
}

.service-detail-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Project Cards (projects page) */
.project-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.15);
}

.project-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-img {
    transform: scale(1.05);
}
