:root {
    --primary: #0d1b2a;
    --secondary: #3498db;
    --accent: #20b2aa;
    --bg: #ffffff;
    --text: #0d1b2a;
    --text-light: #5a7a9a;
    --border: #c8d4e0;
    --hover: #e8f0f8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--secondary);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
}

/* Landing Page */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 2rem auto 4rem auto;
    padding: 4rem;
    background-color: var(--primary);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.2);
    color: white;
}

.hero-section .intro-text h1 {
    color: white;
}

.hero-section .subtitle {
    color: var(--secondary);
}

.hero-section .bio {
    color: rgba(255, 255, 255, 0.9);
}

.profile-container {
    flex-shrink: 0;
}

.hero-section .btn-secondary {
    color: white;
    border-color: white;
}

.hero-section .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.intro-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Resume Styles */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.resume-section {
    margin-bottom: 4rem;
}

.resume-section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-header {
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
}

.timeline-header .company {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.job-description {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text);
}

.job-description li {
    margin-bottom: 0.5rem;
}

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

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-category p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Projects & Games Grid */
.games-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card, .project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.project-card-gradient {
    background: linear-gradient(135deg, #0d1b2a 0%, #3498db 100%) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.2) !important;
}

.project-card-gradient .project-content h3 {
    color: white !important;
}

.project-card-gradient .project-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.project-card-gradient:hover {
    box-shadow: 0 15px 35px rgba(13, 27, 42, 0.3) !important;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.game-info, .project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3, .project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.game-info p, .project-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.play-link {
    color: var(--secondary);
    font-weight: 600;
    margin-top: auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #f0f0f0;
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tech-tag-light {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-small:hover {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-light {
    background: white !important;
    color: var(--primary) !important;
    border: 2px solid white !important;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.intro-paragraph {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--primary);
    border-top: none;
    padding: 3rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #333;
}

.auth-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.auth-modal-body {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-modal-login-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.auth-modal-login-btn:hover {
    background: #2980b9;
}

.auth-modal-secondary-btn {
    color: var(--text-light);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.auth-modal-secondary-btn:hover {
    color: var(--primary);
}


/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin: 2rem auto;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .intro-text h1 {
        font-size: 2.5rem;
    }
    
    .bio {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timeline-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}
