/* CSS Variables */
:root {
    --primary-color: #D32F2F;
    /* Deep Red */
    --primary-hover: #b71c1c;
    --background-dark: #000000;
    /* Black */
    --petrol-blue: rgba(30, 41, 59, 0.8);
    /* Slate 800 with opacity */
    --text-main: #e2e8f0;
    /* Slate 200 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: rgba(51, 65, 85, 0.5);
    /* Slate 700 with opacity */

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(51, 65, 85, 0.5);
    --glass-blur: 8px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    /* background-color: var(--background-dark); Removed to allow video to show */
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    /* Ensure full viewport height */
    overflow-x: hidden;
    display: flex;
    /* Enable flex layout for centering */
    flex-direction: column;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: black;
    /* Fallback color behind video */
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    /* Lightened overlay to see video better */
}

/* Layout */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1024px;
    /* max-w-4xl */
    margin: 0 auto;
    padding: 1rem 1rem;
    /* Reduced padding from 3rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    text-align: center;
    flex-grow: 1;
    /* Allow main content to grow */
    min-height: 100vh;
    /* Ensure full viewport height */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-down {
    animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    /* Initial state hidden */
}

.animate-fade-up-delay {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Typography & Content */
.logo-container {
    margin-bottom: 2rem;
    /* Restored/Increased margin for spacing */
    flex-shrink: 1;
    /* Allow shrinking if needed */
}

.logo {
    max-height: 175px;
    /* Adjusted to user request */
    width: auto;
    object-fit: contain;
}

.main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: 0.75rem;
    /* Increased slightly (bi tık) */
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1rem;
    color: #cbd5e1;
    /* Slate 300 */
    max-width: 42rem;
    margin: 0 auto 2rem;
    /* Increased slightly */
    font-weight: 300;
}

.tagline .desktop-br {
    display: none;
}

.highlight {
    color: white;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Reduced gap */
    width: 100%;
    max-width: 48rem;
    /* max-w-3xl */
    margin-bottom: 2rem;
    /* Reduced margin */
    text-align: left;
}

.service-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    /* Reduced padding */
    display: flex;
    align-items: center;
    /* Center items vertically */
    gap: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    margin-top: 0;
    /* Align center */
    display: flex;
    align-items: center;
}

.material-icons {
    font-size: 1.5rem;
    /* Slightly larger icons */
}

.icon-primary {
    color: var(--primary-color);
}

.icon-success {
    color: #4ade80;
}

/* Green 400 */
.icon-muted {
    color: #94a3b8;
}

/* Slate 400 */
.icon-danger {
    color: #f87171;
}

/* Red 400 */

.service-info h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    /* Compact font */
    color: var(--text-main);
    display: block;
    margin-bottom: 0;
}

.service-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

/* Newsletter Form */
.newsletter-container {
    width: 100%;
    max-width: 28rem;
    /* max-w-md */
    margin: 0 auto 1.5rem;
    /* Reduced from 4rem */
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(30, 41, 59, 0.8);
    /* Slightly darker slate */
    border: 1px solid #475569;
    /* Slate 600 */
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.email-input::placeholder {
    color: #94a3b8;
}

.email-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.form-message {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    min-height: 1.25rem;
    font-weight: 500;
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: #f87171;
}

.spam-notice {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    /* display: none; Removed to show text again */
}

/* Footer */
.main-footer {
    width: 100%;
    margin-top: auto;
    /* Push to bottom if content is short */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

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

.contact-link:hover .material-icons {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.copyright {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #64748b;
    /* Slate 500 */
}

/* Media Queries */
@media (min-width: 640px) {

    /* sm */
    .newsletter-form {
        flex-direction: row;
    }
}

@media (min-width: 768px) {

    /* md */
    .container {
        padding: 2rem 1rem;
        /* slightly more padding on desktop but still compact */
    }

    .main-title {
        font-size: 2.5rem;
        /* Reduced from 3.75 */
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .tagline .desktop-br {
        display: block;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .logo {
        max-height: 175px;
        /* Target size on desktop */
    }
}

@media (min-height: 800px) {

    /* If screen is tall, we can afford more space */
    .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}