/* Contact */
#contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 0.9rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #e0e0e0;
    text-decoration: none;
    min-width: 320px;
    transition: background 0.3s;
}

.contact-item:hover {
    background: rgba(100, 181, 246, 0.15);
    text-decoration: none;
}

.contact-label {
    color: #64b5f6;
    font-weight: bold;
    min-width: 70px;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a1f1c;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    color: #ffffff;
}

a {
    color: #64b5f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    box-shadow: none;
}

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

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

nav a {
    color: #e0e0e0;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #64b5f6;
}

/* Main content */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

/* Hero section */
.hero {
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #64b5f6;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #64b5f6;
    color: #121212;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #42a5f5;
}

/* Skills section */
.skills-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.skill-category {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    flex: 1 1 0;
    min-width: 0;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: #64b5f6;
}

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

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.skill-category li::before {
    content: '•';
    color: #64b5f6;
    position: absolute;
    left: 0;
}

/* Experience section */
.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #64b5f6;
}

.timeline-item {
    margin-left: 60px;
    margin-bottom: 2rem;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: #64b5f6;
    border-radius: 50%;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
}

.timeline-item p:first-of-type {
    color: #64b5f6;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Projects section */
.projects-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
    padding-bottom: 0;
}

.project-card {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    min-width: 320px;
    max-width: 380px;
    flex: 0 0 320px;
    transition: transform 0.3s;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    color: #64b5f6;
}

.project-card p {
    margin-bottom: 1.2rem;
}

.project-card ul {
    list-style: none;
}

.project-card li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.project-card li::before {
    content: '•';
    color: #64b5f6;
    position: absolute;
    left: 0;
}

.cert-box {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.cert-group h3 {
    color: #64b5f6;
    margin-bottom: 0.75rem;
}

.cert-group ul {
    list-style: none;
}

.cert-group li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.cert-group li::before {
    content: '•';
    color: #64b5f6;
    position: absolute;
    left: 0;
}

#projects,
#experience,
#education,
#skills,
#certifications,
#contact {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#skills,
#certifications {
    min-height: unset;
    padding-bottom: 3rem;
}

#experience h2,
#education h2,
#skills h2,
#certifications h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Projects carousel */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-track .project-card {
    flex: 0 0 320px;
    min-width: 0;
    max-width: 320px;
    height: auto;
    opacity: 0.45;
    transform: scale(0.93);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-track .project-card.active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .carousel-track .project-card {
        flex: 0 0 260px;
        max-width: 260px;
    }
}

/* Footer */
footer {
    background-color: #1e1e1e;
    text-align: center;
    padding: 0.5rem;
    color: #888;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .timeline-item {
        margin-left: 40px;
    }

    .timeline-item::before {
        left: -30px;
    }

    #certifications .projects-grid {
        grid-template-columns: 1fr;
    }
}