:root {
    --primary-red: #dc2626;
    --primary-dark: #991b1b;
    --secondary-blue: #1e40af;
    --text-dark: #ffffff;
    --text-medium: #cbd5e1;
    --text-light: #94a3b8;
    --background: #000000;
    --background-dark: #0a0a0a;
    --background-card: #1a1a1a;
    --accent-yellow: #facc15;
    --border: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.logo-emergency {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--primary-red);
    margin-top: -0.3rem;
}

.logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-medium);
    font-weight: 500;
    margin-top: 0.1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    max-width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-line[data-delay="0"] {
    animation-delay: 0.4s;
}

.hero-line[data-delay="1"] {
    animation-delay: 0.6s;
}

.hero-line[data-delay="2"] {
    animation-delay: 0.8s;
}

.emergency-text {
    color: var(--primary-red);
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-red);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.5s;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-red), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

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

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

@keyframes scrollLine {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: var(--background);
    max-width: 100%;
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.about-label,
.gallery-label,
.social-label,
.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.about-title,
.gallery-title,
.social-title,
.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.about-item {
    position: relative;
    padding: 2rem;
    background: var(--background-card);
    border-left: 4px solid var(--primary-red);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(220, 38, 38, 0.2);
    border-color: var(--primary-red);
}

.about-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--primary-red);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.about-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.about-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Gallery Section */
.gallery {
    padding: 8rem 2rem;
    background: var(--background-dark);
    max-width: 100%;
    overflow: hidden;
}

.gallery-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    width: 100%;
    padding: 0 1rem;
}

.gallery-label {
    color: var(--accent-yellow);
}

.gallery-title {
    color: white;
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-category {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.gallery-caption {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* Social Section */
.social {
    padding: 8rem 2rem;
    background: var(--background);
    max-width: 100%;
    overflow: hidden;
}

.social-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    width: 100%;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-card);
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.social-info p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    max-width: 100%;
    overflow: hidden;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

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

.contact-label {
    color: var(--accent-yellow);
}

.contact-title {
    color: white;
}

.contact-description {
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: left;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--primary-red);
}

.contact-item p {
    color: #cbd5e1;
}

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

/* Footer */
.footer {
    background: var(--background-dark);
    color: #cbd5e1;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid,
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: 100svh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .about,
    .gallery,
    .social,
    .contact {
        padding: 4rem 1rem;
    }
    
    .about-container,
    .gallery-header,
    .social-container,
    .contact-container {
        padding: 0 0.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-item {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text,
    .logo-emergency {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-title,
    .gallery-title,
    .social-title,
    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-item h3 {
        font-size: 1.25rem;
    }
    
    .social-card,
    .contact-item {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .social-icon,
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg,
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 5rem 0.75rem 2rem;
    }
    
    .about,
    .gallery,
    .social,
    .contact {
        padding: 3rem 0.75rem;
    }
    
    .about-container,
    .gallery-header,
    .social-container,
    .contact-container {
        padding: 0 0.25rem;
    }
}

/* Ensure no horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

* {
    max-width: 100%;
}

/* Touch optimization for mobile */
button,
a,
.gallery-item,
.social-card,
.contact-item,
.about-item {
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
    touch-action: manipulation;
}

/* Prevent zoom on input focus in iOS */
input,
textarea,
select {
    font-size: 16px;
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix iOS Safari viewport height issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}