/* ========================================
   Design System & CSS Variables
   ======================================== */

:root {
    /* Brand Colors */
    --color-orange: #F39C12;
    --color-orange-light: #FFA726;
    --color-orange-dark: #E67E22;
    --color-dark-gray: #3D3D3D;
    --color-charcoal: #2C2C2C;
    --color-black: #1A1A1A;

    /* Accent Colors */
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-medium-gray: #CCCCCC;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-black) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-orange: 0 8px 32px rgba(243, 156, 18, 0.3);
}

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gradient-dark);
    color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.85) 0%,
            rgba(44, 44, 44, 0.75) 50%,
            rgba(26, 26, 26, 0.85) 100%);
    z-index: 0;
}

/* ========================================
   Background Animation
   ======================================== */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.roof-pattern {
    position: absolute;
    width: 200px;
    height: 100px;
    opacity: 0.03;
    animation: floatRoof 20s infinite ease-in-out;
}

.roof-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 49%, var(--color-orange) 50%, transparent 51%);
    transform: rotate(0deg);
}

.roof-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.roof-2 {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.roof-3 {
    top: 30%;
    right: 5%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.roof-4 {
    bottom: 20%;
    left: 15%;
    animation-delay: 15s;
    animation-duration: 28s;
}

.roof-5 {
    top: 80%;
    right: 25%;
    animation-delay: 8s;
    animation-duration: 26s;
}

@keyframes floatRoof {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.9);
    }

    75% {
        transform: translate(40px, 10px) rotate(3deg) scale(1.05);
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-orange);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(50px);
    }
}

/* ========================================
   Snowfall Animation
   ======================================== */

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   Main Container
   ======================================== */

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.content-wrapper {
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Logo
   ======================================== */

.logo-container {
    margin-bottom: var(--spacing-lg);
    animation: fadeInScale 1s ease-out 0.2s backwards;
}

.logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-lg));
    transition: transform var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   Typography
   ======================================== */

.main-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.heading-line {
    display: block;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 1s backwards;
}

@keyframes expandWidth {
    from {
        width: 0%;
    }

    to {
        width: 60%;
    }
}

.subheading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-medium-gray);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* ========================================
   Contact Info
   ======================================== */

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s backwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-medium-gray);
    font-size: 1rem;
    transition: all var(--transition-medium);
}

.contact-item:hover {
    color: var(--color-orange);
    transform: translateY(-2px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
    color: var(--color-medium-gray);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .logo {
        max-width: 300px;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}