/* Variables */
:root {
    --accent-color: #0EA5E9;
    --accent-dark: #0284c7;
    --bg-white: #ffffff;
    --bg-alt: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* Navbar */
#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}
.logo {
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
}
.logo span { color: var(--accent-color); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--accent-color); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-alt) 100%);
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.hero-text { flex: 1; }
.hero-greeting {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.hero-text h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    line-height: 1.1;
}
.hero-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}
.hero-intro { margin-bottom: 2rem; max-width: 500px; }
.hero-image { flex: 0 0 350px; }
.profile-img-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--accent-color);
}
.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 1rem;
}
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}
.btn-primary:hover { background-color: var(--accent-dark); transform: translateY(-3px); }
.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}
.btn-secondary:hover { background-color: var(--text-dark); color: white; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background-color: var(--bg-alt); }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* About */
.about-content { display: flex; gap: 3rem; align-items: flex-start; }
.about-text { flex: 1.5; font-size: 1.1rem; color: var(--text-gray); }
.about-text p { margin-bottom: 1rem; }
.about-cards { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.about-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
}
.about-card h4 { margin-bottom: 0.5rem; }

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.skill-card {
    background: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--accent-color);
}

/* Experience Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 50px;
}
.timeline-dot {
    position: absolute;
    left: 13px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--accent-color);
}
.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.timeline-content:hover { transform: translateX(5px); }
.duration { color: var(--accent-color); font-weight: 600; font-size: 0.9rem; }
.timeline-content h3 { margin: 0.5rem 0 0.2rem; }
.timeline-content h4 { color: var(--text-gray); font-weight: 500; margin-bottom: 0.8rem; }

/* Achievements */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.edu-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
}
.edu-year { color: var(--text-gray); font-weight: 600; }
.edu-card h3 { margin: 0.5rem 0; }
.edu-card h4 { color: var(--accent-color); font-weight: 500; margin-bottom: 0.8rem; }

/* Contact */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.contact-item {
    flex: 0 1 calc((100% - 4rem) / 3);
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.contact-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-color); }
.contact-item h4 { margin-bottom: 0.5rem; }
.contact-item a { color: var(--text-gray); text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--accent-color); }

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}
footer p { color: #94a3b8; font-size: 0.9rem; }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    .nav-menu.active { right: 0; }
    .hamburger { display: flex; }

    .hero-container { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-intro { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-image { flex: none; width: 100%; display: flex; justify-content: center; }
    .profile-img-wrapper { width: 250px; height: 250px; }

    .about-content { flex-direction: column; }
    
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .education-grid { grid-template-columns: 1fr; }
    .contact-grid { flex-direction: column; }
    .contact-item { flex-basis: 100%; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-title { font-size: 1.1rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; }
    .btn { display: block; width: 100%; margin-bottom: 1rem; margin-right: 0; }
}
