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

:root {
    --bg-light-grey: #f5f5f5;
    --text-black: #000000;
    --cool-blue: #0066cc;
    --cool-teal: #00b8a9;
    --cool-purple: #6c5ce7;
    --cool-cyan: #00d2ff;
    --accent-gradient: linear-gradient(135deg, var(--cool-blue), var(--cool-teal), var(--cool-purple));
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light-grey);
    color: var(--text-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.1s ease;
    z-index: 1001;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a.active {
    color: var(--cool-blue);
    font-weight: 600;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cool-blue);
    transition: width 0.3s ease;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: 100%;
}

/* Scroll Container with Snap */
.scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    margin-top: 80px;
}

/* Section Styles */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}

.hero-3d-element {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
}

/* Additional floating elements for depth */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(80px);
    animation: float 15s ease-in-out infinite;
}

.hero-section::before {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -150px;
    animation-delay: -5s;
}

.hero-section::after {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-50%) translateX(-50px) scale(1.1);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--cool-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    animation: fadeInUp 1.4s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* Slideshow Section */
.slideshow-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 400px;
}

.slide {
    display: none;
    padding: 4rem 3rem;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content {
    max-width: 700px;
    margin: 0 auto;
}

.slide-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.slide h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
}

/* Slideshow Navigation */
.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px 20px;
    color: white;
    background: rgba(0, 102, 204, 0.8);
    font-weight: bold;
    font-size: 24px;
    border-radius: 10px;
    user-select: none;
    transition: all 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 102, 204, 1);
    transform: scale(1.1);
}

.next-slide {
    right: 20px;
}

.prev-slide {
    left: 20px;
}

/* Dots Indicators */
.dots-container {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--cool-blue);
    transform: scale(1.3);
}

/* Products Section */
.products-section {
    background: var(--bg-light-grey);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cool-blue);
}

.card p {
    line-height: 1.6;
    color: #333;
}

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.ai-feature {
    text-align: center;
    transition: transform 0.3s ease;
}

.ai-feature:hover {
    transform: translateY(-10px);
}

.ai-cube {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--accent-gradient);
    border-radius: 20px;
    animation: rotate3d 10s linear infinite;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    transition: transform 0.3s ease;
}

.ai-feature:hover .ai-cube {
    animation-play-state: paused;
    transform: scale(1.1);
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.ai-feature h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--cool-purple);
}

.ai-feature p {
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

/* Autonomous Section */
.autonomous-section {
    background: var(--bg-light-grey);
}

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

.autonomous-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-3d {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, var(--cool-cyan), var(--cool-blue));
    border-radius: 30px;
    position: relative;
    animation: hover3d 4s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.4);
}

.vehicle-3d::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--cool-blue), var(--cool-teal));
    border-radius: 35px;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes hover3d {
    0%, 100% {
        transform: translateY(0) rotateY(-5deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.autonomous-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--cool-cyan);
}

.autonomous-text p {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cool-cyan);
    font-weight: bold;
}

/* Advanced Manufacturing Section */
.manufacturing-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    line-height: 1.6;
}

.manufacturing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.manufacturing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.manufacturing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.1), transparent);
    transition: left 0.5s ease;
}

.manufacturing-card:hover::before {
    left: 100%;
}

.manufacturing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
    border-color: var(--cool-blue);
}

.manufacturing-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.manufacturing-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--cool-blue);
}

.manufacturing-card p {
    line-height: 1.7;
    color: #444;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

.contact-description {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--cool-teal);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--cool-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--cool-teal);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

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

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

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

    .cards-grid,
    .ai-features,
    .manufacturing-grid {
        grid-template-columns: 1fr;
    }

    .autonomous-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vehicle-3d {
        width: 250px;
        height: 150px;
    }

    /* Slideshow adjustments for mobile */
    .slideshow-container {
        min-height: 350px;
    }

    .slide {
        padding: 3rem 2rem;
    }

    .slide-icon {
        font-size: 4rem;
    }

    .slide h3 {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1.1rem;
    }

    .prev-slide,
    .next-slide {
        padding: 12px 16px;
        font-size: 20px;
    }

    .prev-slide {
        left: 10px;
    }

    .next-slide {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    /* Slideshow adjustments for small mobile */
    .slideshow-container {
        min-height: 300px;
    }

    .slide {
        padding: 2rem 1.5rem;
    }

    .slide-icon {
        font-size: 3rem;
    }

    .slide h3 {
        font-size: 1.5rem;
    }

    .slide p {
        font-size: 1rem;
    }

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

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    /* Systems section for small mobile */
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .system-card {
        padding: 1.5rem;
    }
}

/* Systems Access Section */
.systems-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 4rem 2rem;
}

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

.system-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
    border-color: var(--cool-blue);
}

.system-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.system-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-black);
}

.system-url {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--cool-blue);
    background: rgba(0, 102, 204, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    font-weight: 600;
}

.system-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.access-tip {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 184, 169, 0.1));
    border-left: 4px solid var(--cool-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.access-tip p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.access-tip code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--cool-blue);
    font-weight: 600;
}

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

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 102, 204, 0.1);
    border-top-color: var(--cool-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.loading-subtext {
    font-size: 1rem;
    color: #666;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Projects Section */
.projects-tech-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Games Section */
.games-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

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

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--cool-purple), var(--cool-cyan));
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.game-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(108, 92, 231, 0.1);
    color: var(--cool-purple);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--cool-purple);
}

/* Infrastructure Section */
.infrastructure-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

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

.infra-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--cool-blue);
}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.infra-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.infra-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.infra-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-stack {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.tech-stack li {
    padding: 0.5rem 0;
    color: var(--cool-blue);
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
}

.tech-stack li:last-child {
    border-bottom: none;
}

.tech-stack li:before {
    content: "▸ ";
    color: var(--cool-teal);
    font-weight: bold;
}

/* Pitch Deck Section */
.pitch-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
}

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

.pitch-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--cool-blue);
}

.pitch-card.highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    grid-column: span 2;
}

.pitch-card.highlight-card h3,
.pitch-card.highlight-card p {
    color: white;
}

.pitch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pitch-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pitch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.pitch-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.pitch-card strong {
    color: var(--cool-blue);
    font-weight: 700;
}

.pitch-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.pitch-list li {
    padding: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.pitch-list li:before {
    content: "✓ ";
    color: var(--cool-teal);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pitch-cta {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pitch-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.pitch-cta p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.pitch-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pitch-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.pitch-button.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.pitch-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.pitch-button.secondary {
    background: white;
    color: var(--cool-blue);
    border: 2px solid var(--cool-blue);
}

.pitch-button.secondary:hover {
    background: var(--cool-blue);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pitch-card.highlight-card {
        grid-column: span 1;
    }
}

/* DNS Configuration Styles */
.dns-instructions {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--cool-teal);
}

.dns-instructions h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.dns-instructions > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dns-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dns-record {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.dns-record h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--cool-blue);
}

.dns-record code {
    display: block;
    background: #fff;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    overflow-x: auto;
}

.dns-note {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.dns-providers {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 12px;
}

.dns-providers h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.dns-providers ul {
    list-style: none;
    padding: 0;
}

.dns-providers li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dns-providers li:last-child {
    border-bottom: none;
}

.dns-providers strong {
    color: var(--cool-blue);
}

/* Employee Login Styles */
.employee-login-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 16px;
}

.employee-login-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

.login-instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.login-instruction-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-instruction-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--cool-blue);
}

.login-instruction-card ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.login-instruction-card ol li {
    padding: 0.5rem 0;
    line-height: 1.6;
    color: #555;
}

.login-instruction-card ul.feature-list {
    list-style: none;
    padding: 0;
}

.login-instruction-card ul.feature-list li {
    padding: 0.5rem 0;
    color: #555;
}

.login-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid var(--cool-teal);
    border-radius: 6px;
    font-size: 0.9rem;
}

.login-note a {
    color: var(--cool-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-note a:hover {
    text-decoration: underline;
}

/* System Card Enhancements */
.system-card.employee-login,
.system-card.admin-login,
.system-card.games-portal {
    position: relative;
    border: 2px solid var(--cool-blue);
}

.login-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.system-card.games-portal .login-badge {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

/* Game Section Enhancements */
.game-portal-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.portal-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.portal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portal-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.portal-content a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.portal-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.portal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-features {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.game-features p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-black);
}

.game-features ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.game-features li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.9rem;
}

.game-features li:before {
    content: "▸ ";
    color: var(--cool-purple);
    font-weight: bold;
    margin-right: 0.5rem;
}

.game-play-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.game-play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.game-dev-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.game-dev-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.game-dev-section > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-feature {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--cool-purple);
}

.tech-feature h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--cool-blue);
}

.tech-feature ul {
    list-style: none;
    padding: 0;
}

.tech-feature li {
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.5;
}

.tech-feature li:before {
    content: "✓ ";
    color: var(--cool-teal);
    font-weight: bold;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .game-portal-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .dns-records,
    .login-instructions-grid,
    .tech-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Subdomain Architecture Styles */
.subdomain-architecture {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
}

.subdomain-architecture h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.arch-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.arch-layer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--cool-blue);
}

.arch-layer.secure {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
}

.arch-layer h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.arch-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.arch-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arch-name {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--cool-blue);
    font-size: 0.9rem;
}

.arch-desc {
    font-size: 0.85rem;
    color: #666;
}

.security-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* App Integration Styles */
.app-integration {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.app-integration h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.app-integration > p {
    color: #555;
    margin-bottom: 1.5rem;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.integration-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.integration-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--cool-blue);
}

.integration-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.integration-list {
    list-style: none;
    padding: 0;
}

.integration-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.integration-list li:last-child {
    border-bottom: none;
}

.integration-list a {
    color: var(--cool-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.integration-list a:hover {
    text-decoration: underline;
    transform: translateX(3px);
    display: inline-block;
}

.integration-list code {
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
}

.embed-example {
    margin-top: 1rem;
}

.embed-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 2-Stage Security Styles */
.security-intro {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    margin-bottom: 2rem;
    color: #856404;
    line-height: 1.6;
}

.two-stage-security {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.two-stage-security h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

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

.security-stage {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    border: 2px solid var(--cool-blue);
}

.stage-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.security-stage h5 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-black);
}

.security-stage ul {
    list-style: none;
    padding: 0;
}

.security-stage li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.security-stage li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cool-teal);
    font-weight: bold;
}

.stage-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.login-instruction-card.high-security,
.login-instruction-card.max-security {
    border: 3px solid #dc3545;
    position: relative;
}

.login-instruction-card.high-security {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.login-instruction-card.max-security {
    background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
    border-color: #c82333;
}

.security-level-badge {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.security-level-badge .level {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.security-level-badge .compliance {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.security-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.security-steps > li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.security-steps > li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.security-steps > li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-black);
}

.security-steps ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.security-steps ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.security-steps ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cool-purple);
    font-weight: bold;
}

.security-features {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.security-features h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.security-features ul {
    list-style: none;
    padding: 0;
}

.security-features li {
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.5;
}

.security-compliance {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    text-align: center;
}

.security-compliance h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

.compliance-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.compliance-badge {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

@media (max-width: 768px) {
    .subdomain-architecture,
    .app-integration,
    .two-stage-security {
        padding: 1.5rem;
    }
    
    .arch-items,
    .integration-grid,
    .security-stages {
        grid-template-columns: 1fr;
    }
    
    .security-level-badge {
        flex-direction: column;
    }
}

/* ============================================================================
   AUTHENTICATION & USER SYSTEM STYLES
   ============================================================================ */

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(0, 102, 204, 0.2);
}

.user-avatar {
    font-size: 1.5rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-black);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-black);
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-dropdown a:hover {
    background: rgba(0, 102, 204, 0.1);
}

/* Login Button */
.login-button {
    padding: 0.5rem 1.5rem;
    background: var(--cool-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-black);
    transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        overflow: hidden;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: scaleY(1);
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

/* Auth Page Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-black);
}

.auth-header p {
    color: #666;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--cool-blue);
    border-bottom-color: var(--cool-blue);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-black);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--cool-blue);
}

.form-group.error input {
    border-color: #dc3545;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.avatar-selector {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.avatar-option {
    font-size: 1.5rem;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--cool-blue);
}

.avatar-option.selected {
    border-color: var(--cool-blue);
    background: rgba(0, 102, 204, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 80px;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.dashboard-welcome .avatar {
    font-size: 3rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cool-blue);
}

.section-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-black);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    color: var(--text-black);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.action-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 80px;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.profile-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

.profile-avatar-display {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--cool-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(220, 53, 69, 0.05);
}

.danger-zone h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   BLOG SYSTEM STYLES
   ============================================================================ */

.blog-header {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
}

.blog-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.blog-header p {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-controls {
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--cool-blue);
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--cool-blue);
    color: var(--cool-blue);
}

.filter-btn.active {
    background: var(--cool-blue);
    color: white;
    border-color: var(--cool-blue);
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-article-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-category {
    background: var(--cool-blue);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-date {
    color: #666;
    font-size: 0.875rem;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-black);
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.author-avatar {
    font-size: 1.5rem;
}

.read-time {
    color: #999;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--cool-blue);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--cool-blue);
    color: var(--cool-blue);
}

.action-btn.active {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--cool-blue);
    color: var(--cool-blue);
}

.like-btn.active {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.bookmark-btn.active {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.read-btn {
    background: var(--cool-blue);
    color: white;
    border-color: var(--cool-blue);
}

.read-btn:hover {
    background: #0052a3;
    color: white;
}

@media (max-width: 768px) {
    .blog-articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

/* ============================================================================
   BLOG ARTICLE PAGE STYLES
   ============================================================================ */

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

.article-header {
    margin-bottom: 2rem;
}

.article-category-badge {
    display: inline-block;
    background: var(--cool-blue);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.article-actions-header {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 3rem;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--text-black);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--text-black);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    font-weight: 700;
    color: var(--text-black);
}

.article-footer {
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 3rem;
}

.article-tags-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.comments-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.comment-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--cool-blue);
}

.comment {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.comment-action-btn {
    padding: 0.4rem 0.75rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    border-color: var(--cool-blue);
}

.comment-action-btn.active {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.comment-action-btn.delete-btn {
    color: #dc3545;
}

.comment-action-btn.delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-meta-info {
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {
    .navbar, .article-actions-header, .comments-section, #navigation, #footer {
        display: none;
    }

    .article-container {
        margin-top: 0;
        max-width: 100%;
    }

    .article-content {
        color: #000;
    }
}

/* Keyboard accessibility for user dropdown */
.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu:focus {
    outline: 2px solid var(--cool-blue);
    outline-offset: 2px;
}

/* Mobile menu accessibility improvements */
.mobile-menu-toggle:focus {
    outline: 2px solid var(--cool-blue);
    outline-offset: 2px;
}
