:root {
    --primary: #6366F1; /* Modern indigo */
    --secondary-pink: #EC4899; /* Vibrant fuchsia */
    --accent-coral: #F43F5E; /* Coral accent */
    --accent-turquoise: #06B6D4; /* Cyan for tech/data */
    --light: #FFFFFF; /* Pure white background */
    --text-dark: #1F2937; /* Dark text for readability */
    --text-medium: #4B5563; /* Medium gray text */
    --text-light: #6B7280; /* Light gray text */
    --surface: #F8FAFC; /* Very light blue-gray surface */
    --surface-elevated: #FFFFFF; /* White elevated surfaces */
    --border-light: #E5E7EB; /* Light borders */
    --gradient: linear-gradient(135deg, #6366F1, #EC4899);
    --gradient-turquoise: linear-gradient(135deg, #6366F1, #06B6D4);
    --gradient-soft: linear-gradient(135deg, #EEF2FF, #FDF2F8);
    --shadow-light: 0 4px 20px rgba(99, 102, 241, 0.15);
    --shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #EEF2FF 100%);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Enhanced Header with Glass Morphism */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    cursor: pointer;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 20px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 20px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleY(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Enhanced Banner with Floating Elements */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 25%, #EEF2FF 50%, #FDF2F8 75%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366F1' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    backdrop-filter: brightness(1.02);
}

.banner-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    animation: slideInUp 1s ease forwards;
}

.banner h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
    position: relative;
}

.banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 6px;
    background: var(--gradient);
    border-radius: 3px;
    animation: expand 2s ease-in-out infinite alternate;
}

.banner h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--text-medium);
    opacity: 0.9;
}

.banner p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-medium);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.cta-btn.secondary {
    background: var(--surface-elevated);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-card);
}

.cta-btn.secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-turquoise);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.download-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

/* Enhanced Sections */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 80px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

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

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

.about-img {
    text-align: center;
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-soft);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

.about-img img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--surface-elevated);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Enhanced Timeline */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

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

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

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

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

.timeline-item::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    top: 25px;
    right: -12px;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--light), var(--shadow-light);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-item:hover::after {
    transform: scale(1.2);
}

.timeline-content {
    padding: 30px;
    background: var(--surface-elevated);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.timeline-content > p {
    text-align: left;
    color: var(--text-medium);
}

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

.timeline-date {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.institution, .experience {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.institution-logo, .experience-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 3px solid var(--secondary-pink);
    border-radius: 12px;
    padding: 8px;
    background: var(--surface-elevated);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-card);
}

.institution-logo:hover, .experience-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.institution-info, .experience-info {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary);
}

.experience-description {
    text-align: left;
    margin-bottom: 10px;
}

.experience-description > p {
    margin-bottom: 10px;
    color: var(--text-medium);
}

.experience-description > ul {
    margin-left: 20px;
    margin-bottom: 10px;
    color: var(--text-medium);
}

/* Enhanced Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--surface-elevated);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--primary);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.skill-bar {
    height: 12px;
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 6px;
    width: 0;
    transition: width 2s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

/* Certifications Section */
#certifications {
    background: var(--surface);
}

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

.certification-card {
    background: var(--surface-elevated);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
    border: 1px solid var(--border-light);
}

.certification-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.certification-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.cert-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

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

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cert-image:hover img {
    transform: scale(1.1);
}

.cert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.cert-issuer {
    color: var(--secondary-pink);
    font-weight: 600;
    margin-bottom: 10px;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.cert-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

/* Images visibility fix */
.about-img img,
.institution-logo,
.experience-logo,
.cert-image img {
    opacity: 1 !important;
}

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

.project-card {
    background: var(--surface-elevated);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--border-light);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.project-info {
    padding: 30px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-date {
    color: var(--secondary-pink);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-desc {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--text-medium);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: var(--secondary-pink);
    transform: translateX(5px);
}

/* Enhanced Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background: var(--surface-elevated);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--text-medium);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    margin-top: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: var(--shadow-light);
}

.contact-text h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text a,
.contact-text p {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--surface-elevated);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    background: var(--light);
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Enhanced Footer */
footer {
    background: var(--surface);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--surface-elevated);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.copyright {
    color: var(--text-light);
    font-size: 1rem;
}

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

@keyframes expand {
    0% { width: 100px; }
    100% { width: 200px; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.5s ease;
        box-shadow: var(--shadow-card);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-img img {
        width: 250px;
        height: 250px;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 18px;
        right: auto;
        box-shadow: 0 0 0 4px var(--light), var(--shadow-light);
    }

    .timeline-item:nth-child(even)::after {
        left: 18px;}
    }