/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E31837;
    --dark-red: #B01229;
    --light-red: #FF4458;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Animated background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0f 50%, #0a0a0a 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    transition: transform 0.3s ease-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--dark-red) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--light-red) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Floating particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -3s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: -6s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: -9s;
}

.particle:nth-child(5) {
    left: 60%;
    animation-delay: -2s;
}

.particle:nth-child(6) {
    left: 70%;
    animation-delay: -5s;
}

.particle:nth-child(7) {
    left: 80%;
    animation-delay: -8s;
}

.particle:nth-child(8) {
    left: 90%;
    animation-delay: -11s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Main container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(227, 24, 55, 0.3));
    animation: logo-glow 3s infinite ease-in-out;
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 10px 40px rgba(227, 24, 55, 0.3));
    }

    50% {
        filter: drop-shadow(0 10px 60px rgba(227, 24, 55, 0.5));
    }
}

/* Main heading */
.main-heading {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--light-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.heading-line {
    display: block;
}

/* Subtitle */
.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-break {
    display: none;
}

/* Contact section */
.contact-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact cards */
.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 24, 55, 0.3);
    box-shadow: 0 20px 60px rgba(227, 24, 55, 0.15);
}

.contact-card:hover::before {
    transform: translateX(0);
}

.office-card {
    grid-column: span 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

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

.icon {
    width: 28px;
    height: 28px;
    color: white;
}

.contact-info {
    text-align: center;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: var(--light-red);
}

.office-card .contact-value {
    line-height: 1.8;
    font-size: 1rem;
}

/* Footer */
.footer {
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    .logo {
        max-width: 200px;
    }

    .logo-container {
        margin-bottom: 40px;
    }

    .main-heading {
        margin-bottom: 20px;
    }

    .subtitle {
        margin-bottom: 60px;
    }

    .mobile-break {
        display: block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-section {
        margin-bottom: 60px;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .contact-card {
        padding: 30px 25px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        filter: blur(80px);
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 160px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .icon {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid var(--text-light);
    }

    .contact-value {
        text-decoration: underline;
    }
}