/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e63946;
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --text-light: #f8f9fa;
    --text-gray: #b8b8b8;
    --border-color: #333;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
    max-width: 1200px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary-red);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-light);
    border-radius: 18px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0f0f0f 100%);
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.5;
}

.container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
    background: rgba(26, 26, 26, 0.6);
    padding: 50px 45px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.contact-header h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.contact-header p {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.6;
    padding: 0 10px;
}

/* Form Styles */
.contact-form {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 2px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c41e2a 100%);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    padding: 28px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
    .hero {
        max-height: 800px;
    }

    .container {
        max-width: 520px;
        padding: 48px 42px;
    }
}

/* Tablets (iPad, Galaxy Tab) */
@media (max-width: 820px) {
    .hero {
        height: 60vh;
        min-height: 450px;
        max-height: 650px;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }

    .container {
        max-width: 500px;
        padding: 45px 38px;
    }

    .contact-section {
        padding: 50px 20px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .hero {
        height: 55vh;
        min-height: 420px;
    }

    .container {
        max-width: 480px;
        padding: 42px 35px;
    }

    .contact-header h2 {
        font-size: clamp(1.9rem, 5vw, 2.5rem);
    }
}

/* Large Phones (Samsung S20 FE, iPhone Pro Max, etc.) */
@media (max-width: 430px) {
    .hero {
        height: 55vh;
        min-height: 400px;
        max-height: 500px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-content h1 {
        font-size: clamp(2.3rem, 9vw, 3.2rem);
        letter-spacing: 0.02em;
    }

    .hero-content p {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .contact-section {
        padding: 30px 20px 50px;
        min-height: auto;
    }

    .container {
        max-width: 100%;
        padding: 45px 32px;
        border-radius: 16px;
    }

    .contact-header {
        margin-bottom: 38px;
    }

    .contact-header h2 {
        font-size: clamp(2rem, 7.5vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .contact-header p {
        font-size: clamp(1rem, 3.2vw, 1.1rem);
        padding: 0 5px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-group label {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 15px 16px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    .form-group textarea {
        min-height: 130px;
    }

    .submit-btn {
        padding: 16px 32px;
        font-size: 1rem;
        margin-top: 32px;
    }

    footer p {
        font-size: 0.88rem;
    }
}

/* Standard Phones (Samsung S20 FE default size) */
@media (max-width: 412px) {
    .hero {
        height: 48vh;
        min-height: 360px;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 8.5vw, 3rem);
    }

    .contact-section {
        padding: 35px 18px;
    }

    .container {
        padding: 36px 26px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* Smaller Phones */
@media (max-width: 375px) {
    .hero {
        height: 45vh;
        min-height: 340px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-content p {
        font-size: clamp(0.95rem, 3.8vw, 1.2rem);
    }

    .contact-section {
        padding: 32px 18px;
    }

    .container {
        padding: 34px 24px;
    }

    .contact-header h2 {
        font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* Very Small Phones */
@media (max-width: 360px) {
    .hero {
        height: 42vh;
        min-height: 320px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        letter-spacing: 0.01em;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 30px 16px;
    }

    .container {
        padding: 32px 22px;
    }

    .contact-header h2 {
        font-size: 1.7rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 13px;
    }
}

/* Landscape Mode for Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 90vh;
        min-height: 280px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .scroll-indicator {
        bottom: 12px;
    }

    .scroll-indicator span {
        width: 18px;
        height: 28px;
    }

    .contact-section {
        padding: 50px 16px;
        min-height: auto;
    }

    .container {
        padding: 32px 28px;
    }
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}