/* AKM Autoworks - Modern CSS Styling */

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

:root {
    /* Color Palette */
    --primary-color: #00ffff;
    --secondary-color: #ff6b35;
    --accent-color: #1a1a2e;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a15;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --success-color: #00ff88;
    --warning-color: #ffaa00;

    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 255, 255, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.logo-loader h1 {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-color);
}

.logo-loader p {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.loading-text {
    color: var(--gray-text);
    font-size: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 15, 35, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    transition: all var(--transition-medium);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.95);
    padding: 15px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: var(--transition-medium);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: var(--container-padding);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--primary-color);
    text-shadow: 0 0 40px var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gray-text);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

@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: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all var(--transition-medium);
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Showcase Section */
.showcase {
    background: var(--darker-bg);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.showcase-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.showcase-item:hover {
    transform: scale(1.05);
}

.showcase-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--gray-text);
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    color: var(--light-text);
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.showcase-overlay p {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.category {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Category-specific styling */
.showcase-item[data-category="performance"] .category {
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
}

.showcase-item[data-category="luxury"] .category {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #1a1a2e;
}

.showcase-item[data-category="racing"] .category {
    background: linear-gradient(45deg, #ff0000, #ff4757);
}

.showcase-item[data-category="classic"] .category {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
}

.showcase-item[data-category="offroad"] .category {
    background: linear-gradient(45deg, #5f27cd, #00d2d3);
}

.showcase-item[data-category="compact"] .category {
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
}

/* About Section */
.about {
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.about-text p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    min-width: 2rem;
}

.feature h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.feature p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.contact-info > p {
    color: var(--gray-text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    min-width: 1.5rem;
}

.contact-item h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.contact-item p {
    color: var(--gray-text);
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all var(--transition-medium);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--light-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-primary);
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-text);
}

/* Mobile-First Responsive Design */

/* Small Mobile First (320px+) */
:root {
    --section-padding: 50px 0;
    --container-padding: 0 15px;
}

.container {
    padding: var(--container-padding);
}

.nav-container {
    padding: 0 15px;
}

/* Mobile Navigation - Always Visible on Small Screens */
.hamburger {
    display: flex;
    z-index: 1001;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition-medium);
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-size: 1.3rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Hero Mobile Optimizations */
.hero {
    height: 100vh;
    min-height: 700px;
    padding: 0 15px;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    text-align: center;
}

/* Services Mobile Layout */
.services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    padding: 2rem 1.5rem;
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
}

.service-icon i {
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
}

/* Showcase Mobile Grid */
.showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.showcase-item {
    height: 250px;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
}

/* About Mobile Layout */
.about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.stats {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.about-features {
    gap: 1.5rem;
}

.feature {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.feature i {
    margin-top: 0;
}

/* Contact Mobile Layout */
.contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-form {
    padding: 1.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

.contact-details {
    gap: 1.5rem;
}

.contact-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

/* Footer Mobile */
.footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.social-links {
    justify-content: center;
}

/* Mobile Interactions */
.service-card,
.showcase-item,
.btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Tablet Styles (768px+) */
@media (min-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 30px;
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        border: none;
        flex-direction: row;
        justify-content: flex-end;
        gap: 2rem;
        padding: 0;
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0;
        border: none;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .btn {
        width: auto;
        min-width: 180px;
    }

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

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

    .showcase-item {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }

    .stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }

    .feature {
        flex-direction: row;
        text-align: left;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .contact-form {
        max-width: none;
    }

    .contact-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
    :root {
        --section-padding: 100px 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .nav-container,
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--container-padding);
    }
}

/* Extra Large Screens (1440px+) */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Dark theme animations */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px var(--primary-color); }
    50% { text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color); }
}

.title-line.accent {
    animation: glow 3s ease-in-out infinite;
}

/* Particle effect for hero background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--primary-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--primary-color), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--primary-color), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.3;
    z-index: 1;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(200px); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection styles */
::selection {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Animation Classes for Simplified Version */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.hero-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-buttons.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    transition: all var(--transition-medium);
}

.service-icon i {
    transition: all var(--transition-medium);
}

.showcase-overlay {
    transition: transform var(--transition-medium);
}

/* Enhanced hover effects */
.service-card:hover .service-icon i {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.2); }
}

/* Stats counter animation */
.stat {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.stat.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

.showcase-item:nth-child(1) { transition-delay: 0s; }
.showcase-item:nth-child(2) { transition-delay: 0.2s; }
.showcase-item:nth-child(3) { transition-delay: 0.4s; }

/* Mobile-specific animations and utilities */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Pull to refresh indicator */
.pull-to-refresh {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 0 0 25px 25px;
    font-weight: 600;
    transition: top 0.3s ease;
    z-index: 1001;
}

.pull-to-refresh.show {
    top: 0;
}

/* Mobile loading optimization */
@media (max-width: 768px) {
    .showcase-image img,
    .hero-bg-image img {
        transform: none;
        transition: none;
    }

    .showcase-item:hover .showcase-image img {
        transform: none;
    }

    /* Reduce motion for better mobile performance */
    @media (prefers-reduced-motion: reduce) {
        .hero-bg-image {
            animation: none;
        }

        .service-card,
        .showcase-item,
        .btn {
            transition: none;
        }
    }

    /* Touch-friendly sizing */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-card {
        min-height: auto;
        cursor: pointer;
    }

    /* Improved contrast for mobile readability */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .hero-subtitle {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
}