/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #0071e3;
    --accent-color: #06c;
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --bg-dark: #000000;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.875rem;
    transition: var(--transition);
    position: relative;
    opacity: 0.92;
}

.nav-link:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    position: absolute;
    left: 20px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: white;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.profile-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: fadeInUp 0.8s ease, float 6s ease-in-out infinite;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.4;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.credential-badge {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 400;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.credential-badge:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

/* Section Styles */
section {
    padding: 120px 20px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: -0.3px;
}

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

.skill-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.skill-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.skill-tag {
    background-color: white;
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

.competencies-list {
    list-style: none;
    padding-left: 0;
}

.competencies-list li {
    padding: 0.5rem 0;
    color: var(--light-text);
    position: relative;
    padding-left: 1.5rem;
}

.competencies-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Experience Section - Timeline */
.experience {
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        transparent,
        rgba(0, 113, 227, 0.3) 10%,
        rgba(0, 113, 227, 0.3) 90%,
        transparent
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--bg-light);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.timeline-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateX(8px);
    border-color: rgba(0, 113, 227, 0.2);
}

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

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.position {
    color: var(--light-text);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.projects {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Qualifications Section */
.qualifications {
    background-color: white;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.qual-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.qual-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.qual-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.qual-list,
.awards-list,
.engagement-list {
    list-style: none;
    padding-left: 0;
}

.qual-list li,
.awards-list li,
.engagement-list li {
    padding: 0.75rem 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.qual-list li:last-child,
.awards-list li:last-child,
.engagement-list li:last-child {
    border-bottom: none;
}

.education-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.degree {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.year {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.honor {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 113, 227, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(120, 119, 198, 0.1) 0%, transparent 60%);
}

.contact .section-title {
    color: white;
    position: relative;
    z-index: 1;
}

.contact .section-title::after {
    background: linear-gradient(90deg, var(--secondary-color), rgba(255,255,255,0.5));
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 4rem;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
    font-weight: 600;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 3rem 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0;
    opacity: 0.5;
    font-size: 0.875rem;
    font-weight: 400;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    section {
        padding: 80px 20px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -26px;
        width: 12px;
        height: 12px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skills-grid,
    .qualifications-grid,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .credentials {
        justify-content: center;
    }

    .credential-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -1.5px;
    }

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

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

    section {
        padding: 60px 15px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .qual-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .nav-menu,
    .hero-cta,
    #navbar {
        display: none;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .timeline-content {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
