/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Banner Styles */
.hero-banner {
    margin-top: 70px;
    height: 400px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-placeholder {
    text-align: center;
    color: white;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.placeholder-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.placeholder-content small {
    opacity: 0.7;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--background-secondary);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section Styles */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    animation: fadeInUp 1s ease-out;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-10px);
}

.about-text {
    padding: 1rem 0;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    animation: slideInFromLeft 0.6s ease-out;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    animation: slideInFromRight 0.6s ease-out;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--background-primary);
    z-index: 2;
}

.timeline-date {
    flex: 1;
    text-align: right;
    padding-right: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 20px;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-content {
    flex: 1;
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    margin-left: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 3rem;
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Section Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

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

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Projects Section Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
    animation: fadeInUp 0.6s ease-out;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-card p:last-child {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Awards Section Styles */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-item {
    text-align: center;
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.award-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.award-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Section Styles */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item-large {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.contact-item-large:hover {
    transform: translateY(-5px);
}

.contact-item-large i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item-large h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item-large p {
    color: var(--text-secondary);
    margin: 0;
}

/* Footer Styles */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    /* Navigation Mobile Styles */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Banner Mobile */
    .hero-banner {
        height: 300px;
        margin-top: 70px;
    }

    .banner-placeholder {
        padding: 1.5rem;
    }

    .placeholder-content i {
        font-size: 2rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .profile-image {
        height: 250px;
        max-width: 250px;
        margin: 0 auto;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-item::before {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-date {
        text-align: left;
        padding: 0 0 1rem 3rem;
        order: 2;
    }

    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        padding: 0 0 1rem 3rem;
    }

    .timeline-content {
        margin-left: 3rem;
        order: 1;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 3rem;
        border-right: none;
        border-left: 4px solid var(--primary-color);
    }

    /* Section titles mobile */
    .section-title {
        font-size: 2rem;
    }

    /* Grid layouts mobile */
    .skills-grid,
    .projects-grid,
    .awards-grid,
    .contact-info-large {
        grid-template-columns: 1fr;
    }

    /* Spacing adjustments */
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-banner {
        height: 250px;
    }

    .banner-placeholder {
        padding: 1rem;
        margin: 0 15px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}