/* ============================================
   Custom Porcelain — Stylesheet
   Clean Minimalist Design System
   ============================================ */

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #FF6B6B;
    color: white;
}

/* ============================================
   Animations
   ============================================ */

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

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

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 1.5s forwards;
    opacity: 0;
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Hero Animations */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Navigation
   ============================================ */

#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-text {
    color: #1a1a1a;
}

#navbar.scrolled .nav-link {
    color: #404040;
}

.nav-button span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu Button Active State */
.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active span:second-child {
    opacity: 0;
}

/* Mobile Menu Links */
.mobile-link {
    animation: fadeIn 0.4s ease-out forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.mobile-link:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.mobile-link:nth-child(3) { animation-delay: 0.3s; opacity: 0; }
.mobile-link:nth-child(4) { animation-delay: 0.4s; opacity: 0; }

/* ============================================
   Section Components
   ============================================ */

.section-label {
    letter-spacing: 0.3em;
}

.section-title {
    letter-spacing: -0.01em;
}

.section-line {
    transition: width 0.6s ease-out;
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    position: relative;
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-icon {
    color: #FF6B6B;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: #E85D5D;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1;
}

.service-desc {
    min-height: 80px;
}

/* ============================================
   About Section
   ============================================ */

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

/* ============================================
   Process Steps
   ============================================ */

.process-step {
    position: relative;
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.process-icon {
    color: #FF6B6B;
    transition: color 0.3s ease;
}

.process-step:hover .process-icon {
    color: #E85D5D;
}

.process-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1;
}

.process-desc {
    padding-right: 2rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-title {
    letter-spacing: -0.01em;
}

/* ============================================
   Contact Form
   ============================================ */

.form-label {
    letter-spacing: 0.15em;
}

.form-input {
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #FF6B6B !important;
}

.form-input::placeholder {
    color: #c0c0c0;
    font-weight: 300;
}

.form-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

/* ============================================
   Footer
   ============================================ */

.footer-heading {
    letter-spacing: 0.15em;
}

.footer-link {
    display: inline-block;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FF8787;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copy,
.footer-location {
    letter-spacing: 0.05em;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem !important;
    }
    
    .process-step {
        padding: 2rem 1.5rem !important;
    }
    
    .process-desc {
        padding-right: 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}
