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

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-color: #e0e0e0;
    --light-bg: #0a0a0a;
    --white: #1a1a1a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: #000000;
}

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

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333333;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 60px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.university {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.contact-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--light-bg);
}

section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #666666;
    border-radius: 2px;
}

/* About Section */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #b0b0b0;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid #666666;
}

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

.timeline-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.degree {
    font-weight: 600;
    color: #999999;
    margin-bottom: 0.3rem;
}

.specialization {
    color: #888888;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.gpa {
    font-weight: 600;
    color: #aaaaaa;
    margin-bottom: 0.3rem;
}

.date {
    color: #777777;
    font-size: 0.9rem;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.experience-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.position {
    font-weight: 600;
    color: #999999;
    margin-bottom: 0.5rem;
}

.experience-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.experience-card ul li {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

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

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid #666666;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.project-type {
    font-weight: 600;
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.project-location {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.project-card ul li {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Achievements */
.achievement-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid #444444;
}

.achievement-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.skill-tag {
    background: var(--white);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid #333333;
}

.skill-tag:hover {
    background: #333333;
    color: #ffffff;
    transform: scale(1.05);
    border-color: #666666;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333333;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #666666;
    transform: scale(1.2);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        width: 100%;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .experience-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 120px 0 80px;
    }

    #hero h1 {
        font-size: 1.75rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 0;
    }
}
