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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #0366d6;
}

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

header {
    background-color: #24292e;
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

nav li {
    margin: 0 20px;
}

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

nav a:hover {
    color: #0366d6;
}

nav a.active {
    color: #0366d6;
    position: relative;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0366d6;
}

.section {
    padding: 30px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #24292e;
    position: relative;
}

.section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0366d6;
    margin: 15px auto 0;
}

.image-gallery {
    margin: 30px auto;
    max-width: 600px;
}

.gallery-container-simple {
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height */
    background-color: #f0f0f0; /* Light background */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container-simple img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.3s;
}

.gallery-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

.gallery-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot:hover,
.dot.active {
    background-color: #717171;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.about-text {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 25px;
}

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

.project-card h3 {
    margin-bottom: 15px;
    color: #24292e;
}

.project-card p {
    color: #586069;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: #f1f8ff;
    color: #0366d6;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 15px;
}

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

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-card.future {
    background-color: #f6f8fa;
    border: 2px dashed #d1d5da;
}

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

.skill-category {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 15px;
    color: #24292e;
    border-bottom: 2px solid #f1f8ff;
    padding-bottom: 10px;
}

.skill-category ul {
    list-style-position: inside;
}

.skill-category li {
    margin-bottom: 8px;
    color: #586069;
}

#contact {
    text-align: center;
    background-color: #f6f8fa;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.contact-links a:hover {
    transform: translateY(-3px);
}

footer {
    background-color: #24292e;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 10px 0;
    }
    
    .section {
        padding: 60px 0;
    }
}
