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

:root {
    --bg-dark: #030712;
    --bg-darker: #111827;
    --bg-card: #1f2937;
    --border-gray: #374151;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #3b82f6;
    --accent-blue-dark: #2563eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.logo {
    width: 364px;
    height: 280px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease-out forwards;
    filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.4));
    transition: all 0.3s ease;
    object-fit: cover;
    object-position: center 35%;
}

.logo:hover {
    filter: drop-shadow(0 0 60px rgba(96, 165, 250, 0.6));
    transform: translateY(-5px) scale(1.05);
}

@font-face {
    font-family: 'KnightsQuest';
    src: url('Font/KnightsQuest.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.logo-text-title {
    font-family: 'KnightsQuest', 'Georgia', serif;
    font-size: 4rem;
    font-weight: normal;
    color: var(--text-primary);
    margin-bottom: 2rem;
    margin-top: -1rem;
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: var(--accent-blue-dark);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.cta-button:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: var(--bg-darker);
    text-align: center;
    border-top: 1px solid var(--border-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-gray);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mail-icon {
    color: var(--accent-blue);
    width: 24px;
    height: 24px;
}

.email-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    text-decoration: underline;
    color: var(--accent-blue-hover);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-gray);
    background: var(--bg-darker);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .hero-description {
        font-size: 1rem;
    }

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

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

    .logo {
        width: 260px;
        height: 200px;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

    .logo-text-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .services,
    .about,
    .contact {
        padding: 3rem 1rem;
    }
}
