@import url(theme.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container-padding: 1rem 2rem;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    min-height: 100vh;
    
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    z-index: 9999;
}

/* Header */
header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    
}

.nav-links a {
    color: #FFD500;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle .hamburger {
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
}

.nav-toggle .hamburger::before {
    top: -7px;
}

.nav-toggle .hamburger::after {
    top: 7px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 9rem 2rem;
    overflow: hidden;
    /* Make hero full viewport height while keeping content centered */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.btn {
    background: linear-gradient(90deg, #fff, #ffecec);
    color: var(--primary-color);
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.12);
}

.btn:hover {
    transform: translateY(-4px);
}

/* Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
}

.reveal.show {
    animation: revealUp 600ms cubic-bezier(.2, .9, .2, 1) both;
}

.hero .btn {
    animation: pulse 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

    .reveal.show,
    .hero .btn {
        animation: none !important;
        transition: none !important;
    }
}

/* About Section */
.about {
    padding: 4rem 1.5rem;
    text-align: center;
    background: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
}

\n.about {
    display: flex;
    align-items: center;
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Team Section */
.team {
    padding: 3rem 2rem;
    background: #fff0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

\n.team {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.team-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    width: 100%;
}

.team-carousel {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    align-items: center;
    will-change: transform;
}

.team-member {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    max-width: 300px;
    flex: 0 0 auto;
    padding: 1rem;
    padding-bottom: 3.5rem; /* noticeably larger bottom area */
    height: 460px; /* slightly taller to accommodate longer skills */
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.team-member img {
    width: 100%;
    height: 260px; /* slightly reduced so bottom area is larger */
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Keep headings and paragraphs predictable */
.team-member h3 {
    margin: 0.25rem 0 0.25rem;
    line-height: 1.15;
}

.team-member p {
    margin: 0 0 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

.team-member:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

/* desktop: keep CSS fallback animation, but JS will handle a better loop */
@keyframes scrollTeam {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (min-width: 900px) {
    .team-carousel.js-loop-fallback {
        animation: scrollTeam 20s linear infinite;
    }
}

/* Responsive: mobile layout */
@media (max-width: 899px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 1rem;
        top: 60px;
        background: rgba(255, 255, 255, 0.98);
        color: var(--text-color);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--text-color);
        padding: 0.5rem 1rem;
        display: block;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding: 3.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    /* Team becomes a horizontal scroll on mobile (no auto animation) */
    .team-container {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .team-carousel {
        animation: none !important;
        display: flex;
    }

    .team-member {
        min-width: 80%;
        max-width: 80%;
    }

    /* Mobile: allow cards to size naturally and keep images responsive */
    .team-member {
        height: auto;
    }

    .team-member img {
        height: auto;
        aspect-ratio: 5 / 4;
    }
}

/* Larger screens spacing */
@media (min-width: 900px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .nav-links {
        display: flex;
    }
}

/* New Section Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.game-steps {
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Development Timeline */
.development-section {
    padding: 4rem 0;
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-tech {
    margin-top: 1rem;
}

.tech-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Technical Section */
.technical-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.tech-category {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tech-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tech-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.tech-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tech-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.code-showcase {
    margin-top: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.code-showcase h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: #fff;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-style: italic;
}

/* Enhanced Team Section */
.team-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.member-skills {
    margin-top: 1rem;
}

.skill {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design Updates */
@media (max-width: 899px) {
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .game-content,
    .tech-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline {
        margin-left: 1rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: 5px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--primary-color);
    color: #fff;
    margin-top: 2rem;
}

.info-bar{
    background-color: var(--accent-color);
    color: var(--secondary-color);
    text-align: center;
    width: 12%;
    min-height: 100%;
}