/* ========================================
   CSS RESET & GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for easy customization */
:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #3b82f6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--light);
}

/* ========================================
   NAVIGATION BAR
======================================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

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

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: white;
    padding: 6rem 2rem 2rem;
}

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

hero-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.4s backwards;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
    animation: fadeInUp 0.8s ease 0.8s backwards;
    font-weight: 600;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* about section 

.about-container {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-text {
    flex: 1;
}
*/

/* ========================================
   SECTIONS
======================================== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ========================================
   EXPERIENCE & PROJECT ITEMS
======================================== */
.experience-item, 
.project-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.experience-item:hover, 
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: bold;
}

.experience-company {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 0.3rem;
}

.experience-date {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.experience-item ul,
.project-item ul {
    margin-left: 1.5rem;
    color: var(--gray);
}

.experience-item li,
.project-item li {
    margin-bottom: 0.5rem;
}

/* ========================================
   SKILLS SECTION
======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-category p {
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   EDUCATION SECTION
======================================== */
.education-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.education-item:hover {
    transform: translateX(5px);
}

.education-degree {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.1rem;
}

.education-school {
    color: var(--gray);
    margin-top: 0.3rem;
}

/* ========================================
   CERTIFICATIONS SECTION
======================================== */
.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.cert-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cert-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cert-provider {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .experience-header {
        flex-direction: column;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }
}