/* ========================================
   PORTFOLIO STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #e5e5e5;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #3d3d3d;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    border-top: 3px solid #ffffff;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: #000000;
    backdrop-filter: none;
    border-bottom: 1px solid #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #ffffff;
    letter-spacing: 2px;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: var(--transition);
}

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-bottom: 3px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 3px
        );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: none;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #000000;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 5rem 0;
    border-bottom: 1px solid #ffffff;
}

.section.alt {
    background: #0a0a0a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-description {
    color: #b0b0b0;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

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

.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ========================================
   SERVICES GRID
   ======================================== */

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

.service-card {
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    background: #0a0a0a;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.7;
}

/* ========================================
   TECH STACK
   ======================================== */

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

.tech-category {
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 1.5rem;
}

.tech-category h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.badge {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills-list {
    max-width: 600px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 2rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    background: #0a0a0a;
    border-radius: 0;
    height: 8px;
    overflow: hidden;
    border: 1px solid #ffffff;
}

.skill-progress {
    background: #ffffff;
    height: 100%;
    border-radius: 0;
    transition: width 1s ease-out;
}

.skill-level {
    display: block;
    font-size: 0.85rem;
    color: #808080;
    margin-top: 0.3rem;
    font-style: italic;
}

/* ========================================
   CERTIFICATIONS
   ======================================== */

.certifications-table {
    max-width: 900px;
    margin: 2rem auto 0;
    overflow-x: auto;
}

.certifications-table table {
    width: 100%;
    border-collapse: collapse;
    background: #000000;
    border: 1px solid #ffffff;
}

.certifications-table thead {
    background: #0a0a0a;
}

.certifications-table th {
    border: 1px solid #ffffff;
    padding: 1rem;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.certifications-table td {
    border: 1px solid #ffffff;
    padding: 1rem;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.certifications-table tbody tr:hover {
    background: #0a0a0a;
    transition: background 0.3s ease;
}

.certifications-table tbody tr:nth-child(even) {
    background: #050505;
}

.certifications-table tbody tr:nth-child(even):hover {
    background: #0a0a0a;
}

/* ========================================
   SHOWCASE TABS
   ======================================== */

.showcase-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ffffff;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.tab-button {
    background: transparent;
    border: none;
    color: #b0b0b0;
    padding: 1rem 0.8rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 1;
    font-size: 0.9rem;
}

.tab-button:hover {
    color: #ffffff;
}

.tab-button.active {
    color: #ffffff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

/* ========================================
   PROJECT CARDS
   ======================================== */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.project-card {
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 0;
    overflow: hidden;
}

.project-header {
    background: #0a0a0a;
    padding: 2rem;
    border-bottom: 1px solid #ffffff;
}

.project-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.project-body {
    padding: 2rem;
}

.project-body p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-features {
    margin: 1.5rem 0;
}

.project-features h4 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.project-features li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.project-tech {
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 0;
    border-left: 2px solid #ffffff;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.project-footer {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #0a0a0a;
    border-top: 1px solid #ffffff;
}

.project-button {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-button.primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.project-button.primary:hover {
    transform: translateY(-2px);
    background: #000000;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.project-button.secondary {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.project-button.secondary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.coming-soon {
    text-align: center;
    padding: 3rem 2rem;
    background: #0a0a0a;
    border: 1px dashed #ffffff;
    border-radius: 0;
}

.coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   VIDEO DEMO
   ======================================== */

.video-demo {
    width: 100%;
    margin: 1.5rem 0;
}

.video-demo video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #000000;
    border-top: 2px solid #ffffff;
    padding: 2rem 0;
    text-align: center;
    color: #b0b0b0;
}

.footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link:hover {
    color: #b0b0b0;
}

/* ========================================
   HOME BUTTON (on game page)
   ======================================== */

.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-button:hover {
    transform: translateY(-2px);
    background: #000000;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

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

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

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

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

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

    .project-footer {
        flex-direction: column;
    }

    .showcase-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        text-align: left;
    }

    .tab-button.active::after {
        height: 3px;
        width: 3px;
        border-radius: 50%;
    }
}
