/* ============================================
   HARU — Premium Digital Studio Design System
   ============================================ */

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

:root {
    /* Color Palette — Japanese Minimalism */
    --haru-indigo: #1a237e;
    --haru-indigo-dark: #0d1440;
    --haru-ocean: #3d5a80;
    --haru-ocean-light: #5a7ba3;
    --haru-parchment: #f5f1e8;
    --haru-parchment-dark: #e8e0d3;
    --haru-sakura: #f4a5b0;
    --haru-charcoal: #2c2c2c;
    --haru-charcoal-light: #4a4a4a;
    --haru-white: #ffffff;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(2rem, 4vw, 3rem);
    --space-lg: clamp(3rem, 6vw, 5rem);
    --space-xl: clamp(5rem, 10vw, 8rem);
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar - Navy Blue */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--haru-parchment);
}

::-webkit-scrollbar-thumb {
    background: var(--haru-indigo);
    border-radius: 6px;
    border: 2px solid var(--haru-parchment);
}

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

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--haru-indigo) var(--haru-parchment);
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--haru-charcoal);
    background: var(--haru-parchment);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Texture Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Navigation */
.haru-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background-image: url('../assets/properties/bg color.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(20px);
    transition: padding var(--transition-base), box-shadow var(--transition-base);
}

.haru-nav.scrolled {
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-logo-img {
    height: clamp(2.5rem, 5vw, 3.5rem);
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-menu a {
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--haru-charcoal);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    transition: color var(--transition-base);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--haru-indigo);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--haru-indigo);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--haru-charcoal);
    transition: all var(--transition-base);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../assets/properties/bg color.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/properties/bg color.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/properties/bg_wave.png');
    background-size: 120% 120%; /* Slightly larger for smooth movement */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    will-change: transform;
    z-index: 2;
    transition: transform 0.1s ease-out;
    /* Add continuous floating animation */
    animation: waveFloat 20s ease-in-out infinite;
}

/* Mobile background image */
.hero-mobile-bg {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/properties/MobileMode.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 3; /* Above wave, below overlay */
}

/* Mobile media query - show mobile bg, hide wave and bg color */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        position: relative;
        background: none; /* Remove desktop background */
    }
    
    .hero-background {
        width: 100%;
        height: 100%;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .hero-bg-color {
        display: none; /* Hide desktop background on mobile */
    }
    
    .hero-wave {
        display: none; /* Hide wave on mobile */
    }
    
    .hero-mobile-bg {
        display: block !important; /* Force show mobile background */
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        background-image: url('../assets/properties/MobileMode.jpg') !important;
        background-size: 100% 100% !important; /* Stretch to fit screen exactly */
        background-position: center center !important;
        background-repeat: no-repeat !important;
        object-fit: cover;
        z-index: 1;
        will-change: transform;
        transition: transform 0.1s ease-out;
        /* Add continuous floating animation for mobile */
        animation: mobileFloat 20s ease-in-out infinite;
    }
    
    .hero-content {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        position: relative;
        z-index: 2;
    }
}

/* Wave floating animation - continuous subtle movement */
@keyframes waveFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(-5px, -10px, 0) scale(1.02);
    }
    50% {
        transform: translate3d(5px, -5px, 0) scale(1.01);
    }
    75% {
        transform: translate3d(-3px, -8px, 0) scale(1.02);
    }
}

/* Mobile background floating animation - continuous subtle movement */
@keyframes mobileFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(-3px, -5px, 0) scale(1.01);
    }
    50% {
        transform: translate3d(3px, -3px, 0) scale(1.005);
    }
    75% {
        transform: translate3d(-2px, -4px, 0) scale(1.01);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-wave {
        animation: none;
        transform: translate3d(0, 0, 0) !important;
    }
    
    .hero-mobile-bg {
        animation: none !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

.hero-overlay {
    display: none;
}

@keyframes slowShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2%, 2%) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    height: 100vh;
}

.hero-logo {
    position: absolute;
    top: 40%; /* Adjust this value to move logo up/down */
    left: 52%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.hero-logo.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.haru-logo {
    width: 550px; /* Adjust this value to change logo size */
    height: auto;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--haru-white);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.title-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-line:nth-child(2) {
    transition-delay: 0.1s;
}

.title-line:nth-child(3) {
    transition-delay: 0.2s;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 0.5s;
}

.scroll-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Section Styles */
section {
    position: relative;
    padding: var(--space-xl) 0;
    z-index: 1;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--haru-ocean);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--haru-indigo);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* About Section */
.about-section {
    background: var(--haru-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.lead-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--haru-indigo);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--haru-charcoal);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-visual {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 0.2s;
    margin-top: -10rem;
}

.about-visual.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image-wrapper {
    position: relative;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

/* Work Section */
.work-section {
    background: var(--haru-parchment);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.work-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    background: var(--haru-parchment-dark);
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(26, 35, 126, 0.1));
    pointer-events: none;
}

.work-content {
    padding: 0 var(--space-sm);
}

.work-category {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--haru-ocean);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-xs);
}

.work-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--haru-indigo);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.work-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--haru-charcoal);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.tech-badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--haru-ocean);
    background: rgba(61, 90, 128, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
}

.work-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--haru-indigo);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-base);
}

.work-link:hover {
    gap: 12px;
}

/* Stack Section */
.stack-section {
    background: var(--haru-white);
    padding: var(--space-xl) 0;
}

.stack-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stack-intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--haru-charcoal);
    text-align: center;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.stack-category {
    background: var(--haru-parchment);
    padding: var(--space-md);
    border-radius: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stack-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.stack-category-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--haru-indigo);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--haru-white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all var(--transition-base);
    border: 1px solid rgba(26, 35, 126, 0.1);
}

.stack-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--haru-indigo);
}

.stack-item:hover .stack-icon {
    color: var(--haru-ocean);
    transform: scale(1.1);
}

.stack-icon {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--haru-indigo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: color var(--transition-base), transform var(--transition-base);
}

.stack-name {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--haru-charcoal);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .stack-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stack-category {
        padding: var(--space-sm);
    }
}

/* Services Section */
.services-section {
    background: var(--haru-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 600;
    color: var(--haru-indigo);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--haru-charcoal);
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--haru-indigo);
    color: var(--haru-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
    font-size: 0.95rem;
    align-self: flex-start;
}

.service-link:hover {
    background: var(--haru-indigo-dark);
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

/* Why Choose Us Section */
.why-choose-section {
    background: var(--haru-parchment);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.why-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--haru-indigo);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.why-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--haru-charcoal);
    line-height: 1.7;
}

/* Process Section */
.process-section {
    background: var(--haru-parchment);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    text-align: center;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--haru-ocean);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.step-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--haru-indigo);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.step-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--haru-charcoal);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: var(--haru-white);
    padding: var(--space-md) 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-form-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.contact-form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--haru-charcoal);
    letter-spacing: 0.02em;
}

.required {
    color: var(--haru-ocean);
}

.form-input,
.form-textarea {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(61, 90, 128, 0.2);
    border-radius: 4px;
    background: var(--haru-white);
    color: var(--haru-charcoal);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--haru-ocean);
    box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-submit {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    background: var(--haru-indigo);
    color: var(--haru-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    align-self: flex-start;
    margin-top: var(--space-xs);
}

.form-submit:hover {
    background: var(--haru-indigo-dark);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-notification {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
}

.form-notification.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-notification.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-info-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.contact-info-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--haru-indigo);
    margin-bottom: var(--space-md);
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.contact-lead.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: background var(--transition-base);
    cursor: pointer;
    color: inherit;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.contact-item:hover {
    background: var(--haru-parchment);
}

.contact-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--haru-ocean);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-value {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--haru-charcoal);
}

.contact-note {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--haru-charcoal-light);
    font-style: italic;
}

/* Footer */
.haru-footer {
    background: var(--haru-indigo-dark);
    color: var(--haru-charcoal);
    padding: 3rem 0 1rem 0; /* py-5 equivalent (3rem top), reduced bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Reduced from var(--space-md) to match Bootstrap container padding */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1.5rem; /* mb-4 equivalent (24px) */
    margin-bottom: 1.5rem; /* mb-4 equivalent */
    padding-bottom: 1.5rem; /* mb-4 equivalent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* mb-2 equivalent (8px) - tighter spacing */
}

.footer-logo-wrapper {
    margin: -2.5rem 0 1rem 0; /* Negative top margin to move it higher */
    position: relative;
    z-index: 1; /* Lower z-index so text appears on top */
}

.footer-logo-img {
    height: clamp(5.88rem, 11.76vw, 8.82rem); /* 40% bigger again: 4.2rem*1.4=5.88rem, 8.4vw*1.4=11.76vw, 6.3rem*1.4=8.82rem */
    width: auto;
    display: block;
    /* Using original logo color - no filter */
    position: relative;
    z-index: 1; /* Lower z-index so text appears on top */
    opacity: 0.3; /* Make it more subtle as background */
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    color: #ffffff; /* White text */
    letter-spacing: 0.05em;
    margin: 0rem 0 0.5rem 0; /* mb-2 equivalent (8px) */
    position: relative;
    z-index: 2; /* Higher z-index to appear on top of logo */
}

.footer-description {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5; /* Tighter line height */
    color: #ffffff; /* White text */
    opacity: 0.9;
    margin: 0 0 -.5rem 0; /* mb-3 equivalent (16px) */
    position: relative;
    z-index: 2; /* Higher z-index to appear on top of logo */
}

.footer-social {
    display: flex;
    gap: 0.75rem; /* Slightly reduced gap */
    margin-top: 1rem; /* mt-3 equivalent (16px) */
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 241, 232, 0.1);
    border-radius: 50%;
    color: #ffffff; /* White color */
    text-decoration: none;
    font-size: 1.25rem; /* Increased from 1.1rem */
    transition: background var(--transition-base), transform var(--transition-base), color var(--transition-base);
}

.social-icon i {
    display: block;
}

.social-icon:hover {
    background: rgba(245, 241, 232, 0.2);
    color: var(--haru-parchment); /* Cream color on hover */
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--haru-parchment); /* Cream color for headings */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0; /* mb-3 equivalent (16px) */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* mb-2 equivalent (8px) - tighter spacing */
}

.footer-links li {
    margin: 0;
}

.footer-links a,
.footer-links li {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #ffffff; /* White text */
    text-decoration: none;
    transition: opacity var(--transition-base), color var(--transition-base);
    line-height: 1.5; /* Tighter line height */
}

.footer-links a:hover {
    color: var(--haru-parchment); /* Cream color on hover */
    opacity: 1;
    transition: color var(--transition-base), opacity var(--transition-base);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* mb-3 equivalent spacing (12px) - slightly more than links for readability */
}

.footer-contact li {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #ffffff; /* White text */
    line-height: 1.5; /* Tighter line height */
    display: flex;
    align-items: center; /* Center align vertically - text in middle of icon */
    gap: 0.5rem;
}

/* ============================================
   FOOTER CONTACT ICONS - COMPREHENSIVE FIX
   ============================================ */

/* Target ALL icon elements in footer contact section */
.footer-contact i,
.footer-contact .bi,
.footer-contact .contact-icon,
.footer-contact i.bi,
.footer-contact i.contact-icon,
.footer-contact li i,
.footer-contact li .bi,
.footer-contact li .contact-icon,
.footer-contact li i.bi,
.footer-contact li i.contact-icon {
    color: #ffffff !important;
    font-size: 1rem !important;
    flex-shrink: 0;
    width: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* CRITICAL: Target Bootstrap Icons ::before pseudo-element */
.footer-contact i::before,
.footer-contact .bi::before,
.footer-contact .contact-icon::before,
.footer-contact i.bi::before,
.footer-contact i.contact-icon::before,
.footer-contact li i::before,
.footer-contact li .bi::before,
.footer-contact li .contact-icon::before,
.footer-contact li i.bi::before,
.footer-contact li i.contact-icon::before {
    color: #ffffff !important;
}

/* Target specific Bootstrap Icon classes by name */
.footer-contact .bi-geo-alt-fill,
.footer-contact .bi-telephone-fill,
.footer-contact .bi-envelope-fill,
.footer-contact .bi-clock-fill,
.footer-contact i.bi-geo-alt-fill,
.footer-contact i.bi-telephone-fill,
.footer-contact i.bi-envelope-fill,
.footer-contact i.bi-clock-fill {
    color: #ffffff !important;
}

.footer-contact .bi-geo-alt-fill::before,
.footer-contact .bi-telephone-fill::before,
.footer-contact .bi-envelope-fill::before,
.footer-contact .bi-clock-fill::before,
.footer-contact i.bi-geo-alt-fill::before,
.footer-contact i.bi-telephone-fill::before,
.footer-contact i.bi-envelope-fill::before,
.footer-contact i.bi-clock-fill::before {
    color: #ffffff !important;
}

/* Additional fallback for any icon in footer contact */
.haru-footer .footer-contact [class*="bi-"] {
    color: #ffffff !important;
}

.haru-footer .footer-contact [class*="bi-"]::before {
    color: #ffffff !important;
}

.footer-contact a {
    color: #ffffff; /* White text */
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-base);
}

.footer-contact a:hover {
    color: var(--haru-parchment); /* Cream color on hover */
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0rem;
    padding-top:0rem; /* Reduced from 1.5rem to move copyright higher */
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffffff; /* White text */
    opacity: 0.8;
    margin: 0;
    letter-spacing: 0.05em;
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-policy-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--haru-parchment);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity var(--transition-base), color var(--transition-base);
}

.footer-policy-link:hover {
    opacity: 1;
    color: var(--haru-sakura);
}

.footer-separator {
    color: var(--haru-parchment);
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -320px; /* Hidden off-screen to the left */
        flex-direction: column;
        background-image: url('../assets/properties/bg color.jpg');
        background-size: cover;
        background-position: center;
        width: 280px; /* Sidebar width */
        height: 100vh;
        padding: 5rem var(--space-md) var(--space-md) var(--space-md);
        box-shadow: var(--shadow-medium);
        transition: left var(--transition-base);
        z-index: 1001;
        overflow-y: auto;
        gap: 1.5rem;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu a::after {
        display: none; /* Remove underline animation on mobile */
    }

    .nav-menu.active {
        left: 0; /* Slide in from left */
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002; /* Above sidebar */
    }

    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* Adjust logo position in studio section for mobile - move it lower */
    .about-visual {
        margin-top: -3rem; /* Move logo lower on mobile */
    }
    
    .about-image-wrapper {
        margin-top: 0rem; /* Additional spacing */
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Scroll Animation Utility Classes - Continuous
   ============================================ */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-scroll="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="fade-down"] {
    opacity: 0;
    transform: translateY(-40px);
}

[data-scroll="fade-down"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="fade-left"] {
    opacity: 0;
    transform: translateX(-40px);
}

[data-scroll="fade-left"].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-scroll="fade-right"] {
    opacity: 0;
    transform: translateX(40px);
}

[data-scroll="fade-right"].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-scroll="scale"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-scroll="scale"].visible {
    opacity: 1;
    transform: scale(1);
}

/* Default fade-up for elements without specific animation type */
[data-scroll]:not([data-scroll="fade-up"]):not([data-scroll="fade-down"]):not([data-scroll="fade-left"]):not([data-scroll="fade-right"]):not([data-scroll="scale"]) {
    transform: translateY(40px);
}

[data-scroll]:not([data-scroll="fade-up"]):not([data-scroll="fade-down"]):not([data-scroll="fade-left"]):not([data-scroll="fade-right"]):not([data-scroll="scale"]).visible {
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-scroll] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================
   FOOTER ICON COLOR FIX - LOADED LAST
   ============================================ */
/* Force white color on all footer contact icons - highest priority */
.haru-footer .footer-contact i.bi-geo-alt-fill,
.haru-footer .footer-contact i.bi-telephone-fill,
.haru-footer .footer-contact i.bi-envelope-fill,
.haru-footer .footer-contact i.bi-clock-fill {
    color: #ffffff !important;
}

.haru-footer .footer-contact i.bi-geo-alt-fill::before,
.haru-footer .footer-contact i.bi-telephone-fill::before,
.haru-footer .footer-contact i.bi-envelope-fill::before,
.haru-footer .footer-contact i.bi-clock-fill::before {
    color: #ffffff !important;
}

