* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #8B0000; /* Dark Red */
    --secondary-color: #ff0000; /* Red */
    --accent-color: #ff4444; /* Light Red */
    --bg-color: #f5f5f5;
    --text-color: #333;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #333;
    --gradient-1: linear-gradient(135deg, #8B0000, #5a0000);
    --gradient-2: linear-gradient(135deg, #ff0000, #cc0000);
    --gradient-3: linear-gradient(135deg, #8B0000, #ff4444);
}

.dark-theme {
    --primary-color: #ff4444;
    --secondary-color: #ff0000;
    --accent-color: #ff6666;
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --card-bg: #1a1a1a;
    --header-bg: #1a1a1a;
    --footer-bg: #000000;
    --gradient-1: linear-gradient(135deg, #8B0000, #450000);
    --gradient-2: linear-gradient(135deg, #ff0000, #990000);
    --gradient-3: linear-gradient(135deg, #ff4444, #8B0000);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
}

#theme-switcher {
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s;
}

#theme-switcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Header Styles */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 68, 68, 0.1) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Info Card Section */
.info-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin: 50px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.profile-img img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.profile-img img:hover {
    transform: scale(1.03);
}

.profile-info {
    flex: 2;
    min-width: 300px;
}

.profile-info h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(139, 0, 0, 0.2);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-info p {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(139, 0, 0, 0.05);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(139, 0, 0, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3rem;
    width: 25px;
    text-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* Projects Section */
.projects-section {
    margin: px 0;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    width: 350px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Project Meta Info */
.project-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.developers-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.developers-count::before {
    content: '👥';
    font-size: 0.9rem;
}

/* Skills Section */
.skills-section {
    margin: px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(139, 0, 0, 0.2);
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-2);
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.skill-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 35px 25px;
    text-align: center;
    width: 300px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--gradient-1);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 68, 68, 0.1) 0%, transparent 50%);
}

footer h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

footer p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin: 0 15px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--gradient-2);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.copyright {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .info-card {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
    }
    
    #theme-switcher {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .profile-info h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card,
    .skill-card {
        width: 100%;
        max-width: 400px;
    }
}

/* Animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card, .project-card, .skill-card {
    animation: fadeInUp 0.6s ease-out;
}

.project-card:nth-child(2), .skill-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* About Me Detailed Page Styles */
.about-me-detailed .info-card {
    margin: 30px 0;
}

.about-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(139, 0, 0, 0.1);
}

.about-section:last-of-type {
    border-bottom: none;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h2 i {
    color: var(--secondary-color);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(139, 0, 0, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.info-item strong {
    color: var(--primary-color);
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(139, 0, 0, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.music-item:hover {
    transform: translateY(-2px);
    background: rgba(139, 0, 0, 0.1);
}

.music-item i {
    color: var(--secondary-color);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(139, 0, 0, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.game-item:hover {
    transform: translateY(-2px);
    background: rgba(139, 0, 0, 0.1);
}

.game-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.game-item div {
    display: flex;
    flex-direction: column;
}

.game-item strong {
    color: var(--primary-color);
}

.game-item span {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Languages Grid */
.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(139, 0, 0, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.language-item:hover {
    transform: translateY(-2px);
    background: rgba(139, 0, 0, 0.1);
}

.language-item i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.language-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.language-item strong {
    color: var(--primary-color);
}

.skill-level {
    width: 100%;
    height: 6px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: rgba(139, 0, 0, 0.05);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.interest-item:hover {
    transform: translateY(-2px);
    background: rgba(139, 0, 0, 0.1);
}

.interest-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .info-grid,
    .music-grid,
    .games-grid,
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .language-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}