/* MDC SMART SOLUTIONS - Premium Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-glass: rgba(17, 17, 17, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f2ff;
    /* Electric Cyan */
    --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #0078ff 100%);
    --card-hover: #1a1a1a;
    --border-color: #333;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --container-padding: 20px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-gradient);
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.section-padding {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 40px;
    justify-self: center;
}

.nav-links a {
    color: #ffffff;
    /* Pure white for better visibility */
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.nav-cta {
    justify-self: end;
}


/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 120, 255, 0.05), transparent 40%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Services */
.services {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title>span {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about {
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
}

/* Templates Section */
.templates {
    background: var(--bg-primary);
    text-align: center;
}

.templates-grid {
    display: flex;
    justify-content: space-between;
    /* Changed from center to space-between */
    gap: 20px;
    /* Reduced gap slightly to ensure fit on smaller screens before wrap */
    flex-wrap: wrap;
    margin-top: 40px;
}

.template-btn {
    min-width: 200px;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.template-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    z-index: -1;
    transition: var(--transition);
}

.template-btn:hover {
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.template-btn:hover::before {
    width: 100%;
}

@media (max-width: 768px) {
    .templates-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .template-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #0f0f0f;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    padding: 50px 0 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Responsive & Mobile Optimization */
@media (max-width: 768px) {

    /* 1. Global Scale Reduction */
    html {
        font-size: 14px;
        /* Reduces base REM size */
    }

    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* 2. Header & Logo Fixes */
    header {
        height: 60px;
        /* Reduced header height */
    }

    nav {
        height: 60px;
        display: flex;
        justify-content: space-between;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
        /* Reduced logo size */
        z-index: 1002;
    }

    .nav-cta {
        display: none;
        /* Hide desktop CTA button on mobile to save space */
    }

    /* 3. Hamburger Menu */
    .hamburger {
        display: block;
        font-size: 1.5rem;
        z-index: 1002;
        color: var(--text-primary);
    }

    /* 4. Mobile Menu Drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        /* Behind burger info */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    /* 5. Content Sizing Fixes */
    .hero h1 {
        font-size: 2.5rem;
        /* Much smaller than desktop */
    }

    .hero p {
        font-size: 1rem;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        display: none !important;
        /* Force hide rocket image on mobile (overrides inline style) */
    }

    .stat-item h4 {
        font-size: 2rem;
    }
}

/* Custom Notification Toast (Centered) */
/* ... existing notification styles ... */
/* Custom Notification Toast (Centered) */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    padding: 40px 60px;
    border-radius: 15px;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    max-width: 90%;
    width: 450px;
    text-align: center;
}

.notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-primary);
}

.notification i {
    font-size: 4rem;
    margin-bottom: 10px;
}

#notification-message {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Success State */
.notification.success {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.notification.success i {
    color: var(--accent-color);
}

/* Error State */
.notification.error {
    border-color: #ff4444;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.2);
}

.notification.error i {
    color: #ff4444;
}