@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Orbitron:wght@400..900&display=swap');

html, body {
    overscroll-behavior: none;
}

/* Basic reset and body styles */
:root {
    --primary-red: #d94646;
    --dark-bg-primary: #1c1616;
    --dark-bg-secondary: #2a2222;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #443838;
    --accent-blue: #3b82f6;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

/* Header */
header {
    background-color: transparent;
    padding: 1.15rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(28, 22, 22, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
}

.contact-button {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

.contact-button:hover {
    background-color: #c53030;
}

main {
    padding: 0 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 2rem 0 0;
}

.hero-titles {
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(217, 70, 70, 0.5);
}

.hero-title:last-child {
    margin-bottom: 0;
}

.hero-title-audiowide {
    font-family: 'Audiowide', cursive;
}

.hero-title-russo {
    font-family: 'Russo One', sans-serif;
}

.hero-title-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

.hero-title-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.hero-title-exo2 {
    font-family: 'Exo 2', sans-serif;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-button {
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
}

.hero-contact-button-mobile {
    display: none;
}

/* Features Section */
#features {
    text-align: center;
    background-color: transparent;
    padding: 2rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--dark-bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    height: 32px;
    margin-bottom: 0;
    color: var(--primary-red);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
footer {
    padding: 2.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    background-color: transparent;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav-link {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-nav-link:hover {
    color: var(--text-primary);
}

.contact-button-footer {
    /* This class is now only a marker for JS and can be removed later if not used elsewhere */
}

.footer-copyright p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--dark-bg-secondary);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.modal-content a {
    color: var(--primary-red);
    font-weight: bold;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 95%;
    }
    .hero-contact-button-mobile {
        display: block;
        margin: 2rem auto 0;
    }
    .header-contact-button {
        display: none;
    }
    header, main {
        padding: 1rem 1.5rem;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    #hero, #features {
        padding: 2rem 0;
    }

    #hero {
        padding-bottom: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    header, main {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.4rem;
    }
    
    .contact-button {
        padding: 0.6rem 1.2rem;
    }
}

#policy-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    padding-right: 1rem; /* for scrollbar */
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.modal-body::-webkit-scrollbar {
    display: none;
}

/* Scrollbar styles */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--dark-bg-primary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-red);
}

#policy-modal h2, #policy-modal h3, #policy-modal h4 {
    font-family: 'Orbitron', sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

#policy-modal h2 { font-size: 1.8rem; }
#policy-modal h3 { font-size: 1.4rem; }
#policy-modal h4 { font-size: 1.1rem; }

#policy-modal p, #policy-modal li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

#policy-modal ul {
    list-style-position: inside;
    padding-left: 1rem;
}

#policy-modal a {
    color: var(--primary-red);
    text-decoration: none;
}

#policy-modal a:hover {
    text-decoration: underline;
}
