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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: #1e3c72;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #2a4f8c;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-primary {
    background-color: white;
    color: #667eea;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

/* Features Section */
.features {
    text-align: center;
    padding: 40px 0;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e3c72;
}

/* Profile Page Styles */
.profile {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.profile-header h1 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 10px;
}

.profile-title {
    font-size: 1.2rem;
    color: #666;
}

.profile-content {
    display: grid;
    gap: 30px;
}

.profile-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-card h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

.info-label {
    font-weight: bold;
    color: #666;
}

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

.education-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #667eea;
}

.education-list strong {
    display: block;
    color: #1e3c72;
    margin-bottom: 5px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* About Page Styles */
.about-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.about-card h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.tech-list,
.features-list {
    list-style: none;
}

.tech-list li,
.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tech-list li:before,
.features-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.contact-info {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* ==================== GAME STYLES ==================== */

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 10px;
    animation: rainbow 5s infinite;
}

@keyframes rainbow {
    0% { color: #ff6b6b; }
    25% { color: #4ecdc4; }
    50% { color: #45b7d1; }
    75% { color: #96ceb4; }
    100% { color: #ff6b6b; }
}

.game-subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* Game Selector Tabs */
.game-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.game-tab {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background-color: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

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

.game-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Game Containers */
.game-container {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

.game-container.active-game {
    display: block;
    animation: slideIn 0.5s;
}

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

/* Game Card */
.game-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.game-card h2 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 2rem;
}

.game-card > p {
    color: #666;
    margin-bottom: 30px;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

/* Game Area */
.game-area {
    margin-bottom: 30px;
}

.game-input {
    width: 200px;
    padding: 15px;
    font-size: 1.2rem;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    text-align: center;
    margin-right: 10px;
    transition: border-color 0.3s;
}

.game-input:focus {
    border-color: #667eea;
    outline: none;
}

/* Buttons */
.btn-game-primary {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-game-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-game-secondary {
    padding: 10px 25px;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    font-weight: bold;
}

.btn-game-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    font-size: 1.5rem;
    padding: 20px 50px;
}

/* Game Messages */
.game-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    animation: fadeIn 0.3s;
}

.game-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.game-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.game-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeeba;
}

.game-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* Game History */
.game-history {
    max-height: 150px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    font-size: 0.9rem;
    border: 2px solid #e9ecef;
}

/* RPS Game */
.rps-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.rps-button {
    padding: 20px 30px;
    font-size: 1.5rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 120px;
}

.rps-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.rps-result {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    font-size: 4rem;
}

.rps-player-choice, .rps-computer-choice {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    animation: popIn 0.3s;
}

.rps-vs {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Animations */
.animate-text {
    animation: slideInUp 1s ease-out;
}

.animate-text-delay {
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
    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) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .info-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .info-label {
        font-size: 0.9rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .rps-result {
        font-size: 3rem;
    }
    
    .rps-player-choice, .rps-computer-choice {
        width: 80px;
        height: 80
