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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #94a3b8;
    --dark-bg: #07111f;
    --light-bg: #f8fafc;
    --text-color: #0f172a;
    --text-light: #475569;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.nav-menu a:hover {
    color: #93c5fd;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #93c5fd;
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.09), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #eaf2ff 100%);
    color: var(--text-color);
    padding: 110px 20px 90px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05), transparent 55%);
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    filter: blur(12px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    text-align: left;
}

.hero-copy {
    order: 1;
}

.hero-copy {
    max-width: 620px;
}

.hero-kicker {
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    margin-bottom: 12px;
    animation: slideDown 0.8s ease;
    text-transform: none;
    line-height: 0.95;
}

.subtitle {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 12px;
    opacity: 0.95;
    animation: slideDown 0.8s ease 0.2s backwards;
    color: var(--text-color);
}

.description {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.9;
    animation: slideDown 0.8s ease 0.4s backwards;
    color: var(--text-light);
    max-width: 560px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
    order: 2;
    justify-self: end;
    width: min(100%, 200px);
}

.hero-image-frame {
    padding: 8px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.hero-image {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    object-position: center 22%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin: 32px 0 28px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(147, 197, 253, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: #eff6ff;
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #93c5fd, var(--primary-color));
    color: #042f2e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 16px 35px rgba(15, 118, 110, 0.32);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: #eff6ff;
    color: var(--primary-dark);
}

.cta-button.ghost {
    background: transparent;
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.45);
    box-shadow: none;
}

.cta-button.ghost:hover {
    background: rgba(147, 197, 253, 0.12);
    color: #dbeafe;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 45px rgba(15, 118, 110, 0.42);
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 24px;
    padding: 22px 24px;
    color: var(--text-color);
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(3, 7, 18, 0.35);
}

.hero-card-label {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
    color: #93c5fd;
    font-weight: 700;
}

.hero-card h2 {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-card-tags span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.12);
    font-size: 12px;
    color: var(--text-color);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.light-bg {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-item i {
    color: var(--primary-color);
    font-size: 24px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 60px;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 30px;
    border: 4px solid var(--white);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content .institution {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-content .date {
    color: var(--text-light);
    font-size: 14px;
}

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

.experience-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.experience-card h3 {
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.badge, .date-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
}

.date-badge {
    background: var(--light-bg);
    color: var(--primary-color);
}

.experience-description {
    color: var(--text-light);
    margin: 15px 0;
    line-height: 1.6;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.project-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(230, 126, 34, 0.05));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: -1;
}

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

.project-card:hover::before {
    transform: scaleY(1);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.project-card h3 {
    color: var(--text-color);
    margin: 15px 0 5px;
}

.project-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Qualities Section */
.qualities-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.qualities-section h3 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 24px;
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.quality-card {
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.quality-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.quality-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
    transition: all 0.3s ease;
}

.quality-card:hover i {
    color: var(--white);
    transform: scale(1.2);
}

.quality-card span {
    font-weight: 500;
    display: block;
}

/* Languages */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.language-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.language-card h3 {
    color: var(--text-color);
    margin-bottom: 8px;
}

.language-card .proficiency {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.proficiency-bar {
    width: 100%;
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.language-card:hover .proficiency-fill {
    filter: brightness(1.2);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 55%, #e0ecff 100%);
    color: var(--text-color);
}

.contact-section .section-title {
    color: var(--text-color);
}

.contact-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 197, 253, 0.24);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2);
}

.contact-card h3 {
    margin: 15px 0 10px;
    font-size: 18px;
}

.contact-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #ffffff;
    color: var(--text-color);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid rgba(59, 130, 246, 0.18);
}

.footer p {
    margin: 5px 0;
}

.footer-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.footer-subtitle i {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-copy {
        max-width: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .subtitle {
        font-size: 18px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 32px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 30px 40px !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 40px !important;
    }

    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
    }

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

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

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

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

    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-image {
        aspect-ratio: 16 / 10;
    }

    .hero-visual {
        width: 100%;
        max-width: 280px;
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .social-links {
        gap: 10px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .cta-button {
        text-align: center;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-card {
        padding: 18px;
    }
}