/* Dark mode base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
}

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

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #8ab4f8; /* Lighter blue for dark mode */
}

h3 {
    font-size: 1.5rem;
}

h4 {
    color: #8ab4f8;
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #8ab4f8; /* Lighter blue for dark mode */
}

/* Header */
header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav a {
    color: #d0d0d0;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #8ab4f8;
}

nav a.active {
    color: #8ab4f8;
    font-weight: bold;
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #1a1a1a;
}

/* Hero section */
.hero {
    background-color: #2c3e50; /* Dark blue background */
    color: white;
    text-align: center;
    padding: 120px 0;
    background-image: linear-gradient(to right, #1a2a38, #2c3e50, #1a2a38);
}

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

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

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

.btn {
    display: inline-block;
    background-color: #8ab4f8;
    color: #121212;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #afd0ff;
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn i {
    margin-right: 8px;
}

/* Experience & Education */
.experience-item, .education-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #8ab4f8;
}

.location {
    color: #bbb;
    margin-bottom: 5px;
}

.date {
    color: #999;
    margin-bottom: 15px;
    font-style: italic;
}

.experience-item ul, .education-item ul {
    margin-left: 20px;
    margin-top: 15px;
}

.experience-item li, .education-item li {
    margin-bottom: 10px;
    position: relative;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    color: #8ab4f8;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(138, 180, 248, 0.3);
    padding-bottom: 8px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #8ab4f8;
}

/* Projects */
.projects-grid {    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    padding: 25px;
    border: 1px solid #333;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.project-links a {
    color: #8ab4f8;
    transition: color 0.3s;
}

.project-links a:hover {
    color: #afd0ff;
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #8ab4f8;
}

/* Footer */
footer {
    background-color: #111111;
    color: #999;
    text-align: center;
    padding: 30px 0;
}

/* Code snippet styling */
.code-block {
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 3px solid #8ab4f8;
}

/* Add a subtle glow effect to buttons and interactive elements */
.btn, .project-card {
    position: relative;
    overflow: hidden;
}

.btn:after, .project-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 180, 248, 0.05);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn:hover:after, .project-card:hover:after {
    opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
        margin-bottom: 5px;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}