/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #00ff9d;
    --secondary-color: #ff00ff;
    --primary-color: #00ff9d;
    --card-bg: rgba(20, 20, 20, 0.8);
    --border-color: rgba(0, 255, 157, 0.5);
    --section-bg: #1a1a1a;
    --background: #0a0a0a;
    --button-hover: rgba(0, 255, 157, 0.15);
    --button-active: rgba(0, 255, 157, 0.25);
    --neon-glow: 0 0 10px var(--accent-color),
                 0 0 20px var(--accent-color);
    --neon-text: 0 0 5px var(--accent-color),
                 0 0 10px var(--accent-color);
    --neon-text-shadow: 0 0 5px var(--accent-color);
    
    /* Typography */
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-spacing: 100px;
    --container-padding: 20px;
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for better scaling */
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
    -ms-text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word; /* Prevent text overflow */
    hyphens: auto; /* Enable hyphenation for long words */
}

/* Ensure all text is visible */
* {
    color: var(--text-color);
}

section {
    background-color: var(--section-bg);
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden; /* Prevent horizontal overflow */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--neon-text-shadow);
    font-family: var(--heading-font);
    white-space: nowrap; /* Prevent logo from wrapping */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1rem;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: var(--neon-text);
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.theme-toggle:hover {
    background: var(--button-hover);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color);
}

.theme-toggle:active {
    background: var(--button-active);
    transform: scale(0.95);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--section-bg) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--accent-color) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--secondary-color) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, var(--accent-color) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, var(--accent-color) 100%),
        linear-gradient(0deg, transparent 98%, var(--accent-color) 100%);
    background-size: 50px 50px;
    animation: grid-animation 20s linear infinite;
    opacity: 0.1;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

@keyframes grid-animation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-left {
    animation: slideInLeft 1s ease-out;
}

.hero-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-family: var(--heading-font);
    animation: pulse 2s infinite;
}

.badge-icon {
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.title-name {
    display: block;
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text-color);
    text-shadow: var(--neon-text);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.title-role {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--heading-font);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.primary-btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 157, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 157, 0.3);
}

.secondary-btn a {
    color: inherit;
    text-decoration: none;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-text {
    font-size: 0.9rem;
    font-family: var(--heading-font);
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: arrowBounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Enhanced Profile Card */
.profile-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.1);
    backdrop-filter: blur(10px);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 255, 157, 0.2);
    border-color: var(--accent-color);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

.profile-image {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.3);
    border: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 157, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.overlay-content {
    font-size: 3rem;
    animation: wave 1s ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 255, 157, 0.5);
}

.profile-image:hover .image-overlay {
    opacity: 1;
}

.profile-image:hover img {
    transform: scale(1.1);
}

.profile-info {
    text-align: center;
}

.profile-info h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.profile-info p {
    color: var(--accent-color);
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-left {
        order: 2;
    }
    
    .hero-right {
        order: 1;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .title-name {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-card {
        padding: 2rem;
    }

    /* Timeline improvements */
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        margin-left: 50px;
        width: calc(100% - 70px);
        padding: 1rem;
    }

    /* Education Timeline Mobile Styles */
    .education-timeline::before {
        left: 20px;
    }

    .education-timeline .timeline-item::before {
        left: 20px;
    }

    .education-timeline .timeline-item.left .timeline-content,
    .education-timeline .timeline-item.right .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        width: calc(100% - 70px);
        text-align: left;
        padding: 1rem;
    }

    .education-timeline .timeline-item.left .timeline-content::after,
    .education-timeline .timeline-item.right .timeline-content::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tooltip-container {
        width: 100%;
        max-width: 250px;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    background: var(--section-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--accent-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-color) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: var(--neon-text);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Skills Section */
.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.skill-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 157, 0.1),
        transparent
    );
    transition: 0.5s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* Projects Section */
.projects {
    background: var(--section-bg);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--text-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--section-bg);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--text-color);
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--accent-color);
}

/* Contact Section */
.contact {
    background: var(--section-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--text-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item i {
    margin-right: 1rem;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-color) !important;
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: var(--heading-font);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--neon-glow);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    background: var(--bg-color);
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    background: var(--background);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    text-shadow: var(--neon-text);
}

/* Social Links */
.social-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: transparent;
    box-shadow: var(--neon-glow);
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-color);
}

.social-link:active {
    transform: translateY(-1px);
    background: var(--button-active);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    border-radius: 50%;
}

.social-link:hover::before {
    left: 100%;
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
    border: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.5);
}

.profile-image:hover img {
    transform: scale(1.1);
}

.profile-info {
    text-align: center;
}

.profile-info h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.profile-info p {
    color: var(--accent-color);
    font-family: var(--heading-font);
    margin-bottom: 1rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    box-shadow: var(--neon-glow);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    width: 45%;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-date {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.achievement-list {
    list-style: none;
    margin-top: 1rem;
}

.achievement-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.achievement-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: var(--heading-font);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cert-content h3 {
    font-family: var(--heading-font);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cert-date {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-size: 0.9rem;
    display: block;
    margin: 0.5rem 0;
}

.cert-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--heading-font);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cert-link:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* 3D Background */
#bg-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#bg-3d canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Animated Elements */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, var(--accent-color) 100%),
        linear-gradient(0deg, transparent 98%, var(--accent-color) 100%);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cyber-circle, .cyber-square, .cyber-triangle {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.cyber-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cyber-square {
    width: 80px;
    height: 80px;
    border: 2px solid var(--secondary-color);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.cyber-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--accent-color);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.25;
    }
}

/* Glitch Text Effect */
.glitch-text {
    color: var(--text-color);
    position: relative;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-color);
}

.glitch-text::before {
    animation: glitch-anim 0.3s infinite;
    color: var(--accent-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-anim2 0.3s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: skew(0.15deg);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: skew(0.25deg);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: skew(0.1deg);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: skew(0.4deg);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: skew(0.2deg);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: skew(0.3deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(25% 0 58% 0);
        transform: skew(0.4deg);
    }
    20% {
        clip-path: inset(54% 0 7% 0);
        transform: skew(0.2deg);
    }
    40% {
        clip-path: inset(58% 0 43% 0);
        transform: skew(0.3deg);
    }
    60% {
        clip-path: inset(40% 0 61% 0);
        transform: skew(0.15deg);
    }
    80% {
        clip-path: inset(92% 0 1% 0);
        transform: skew(0.25deg);
    }
    100% {
        clip-path: inset(43% 0 1% 0);
        transform: skew(0.1deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Improve base font scaling */
    html {
        font-size: 14px;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation improvements */
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin: 5px 0;
    }

    /* Hero section improvements */
    .hero {
        padding: 80px 0 60px 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    /* Profile card improvements */
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .profile-image {
        margin-bottom: 1.5rem;
        width: 150px;
        height: 150px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .profile-info h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Content layout improvements */
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-content > *,
    .contact-content > * {
        width: 100%;
    }

    /* Skills improvements */
    .skill-tags {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Project grid improvements */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }

    /* Timeline improvements */
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        margin-left: 50px;
        width: calc(100% - 70px);
        padding: 1rem;
    }

    /* Certificate grid improvements */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-card {
        padding: 1.5rem;
    }

    /* Tooltip button improvements */
    .tooltip-container {
        font-size: 0.9rem;
        padding: 0.6em 1.4em;
        margin-top: 1.5rem;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }
    
    .tooltip {
        font-size: 0.8rem;
        padding: 0.2em 0.4em;
    }
    
    #Calque_1 {
        height: 30px;
        width: auto;
    }
    
    .tooltip-container:hover #Calque_1 {
        top: calc(30px * -1);
    }
    
    /* Section spacing adjustments */
    section {
        padding: 60px 0;
    }
    
    /* Heading improvements */
    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    /* Text improvements */
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .cyber-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Ensure text doesn't get cut off */
    .hero-content,
    .about-content,
    .project-card,
    .testimonial-card,
    .cert-card,
    .timeline-content {
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Improve button text */
    .tooltip-container .text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Ensure proper spacing */
    .container > * {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    /* Further reduce font sizes for very small screens */
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    
    .profile-card {
        padding: 1rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-info h2 {
        font-size: 1.2rem;
    }
    
    .profile-info p {
        font-size: 0.8rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .skill-tags {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .skill-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .tooltip-container {
        font-size: 0.8rem;
        padding: 0.5em 1.2em;
        margin-top: 1rem;
    }
    
    .tooltip {
        font-size: 0.7rem;
        padding: 0.15em 0.3em;
    }
    
    #Calque_1 {
        height: 25px;
    }
    
    .tooltip-container:hover #Calque_1 {
        top: calc(25px * -1);
    }
    
    /* Section spacing for very small screens */
    section {
        padding: 40px 0;
    }
    
    /* Heading sizes for very small screens */
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .cyber-text {
        font-size: 0.8rem;
    }
    
    /* Timeline adjustments for very small screens */
    .timeline-content {
        margin-left: 40px;
        width: calc(100% - 50px);
        padding: 0.8rem;
    }
    
    .timeline::before {
        left: 15px;
    }
}
/* Additional responsive improvements for medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-tags {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }
    
    .profile-info h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .profile-info p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Ensure proper text contrast and visibility */
.cyber-text {
    color: var(--text-color);
    text-shadow: var(--neon-text-shadow);
    font-family: var(--heading-font);
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Animated Tooltip Button - Cyberpunk Theme */
.tooltip-container {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.8rem, 4vw, 2.8rem);
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
    margin: 0;
}

.tooltip-container:hover {
    background: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 157, 0.3);
    border: solid 2px var(--accent-color);
    color: var(--accent-color);
}

.tooltip-container:active {
    transform: translateY(0);
    background: var(--button-active);
}

/* Primary button specific styles */
.tooltip-container.primary-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.tooltip-container.primary-btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 157, 0.3);
}

/* Secondary button specific styles */
.tooltip-container.secondary-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.tooltip-container.secondary-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 157, 0.3);
}

.tooltip-container.secondary-btn a {
    color: inherit;
    text-decoration: none;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-color);
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Button text styling */
.tooltip-container .text {
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* SVG Character Styles */
.st1 {
    fill: var(--accent-color);
}

.st2 {
    fill: #f9c8a7;
}

.st3 {
    fill: #ff9e97;
}

.st4 {
    fill: var(--accent-color);
}

.st5 {
    fill: var(--text-color);
}

.st6 {
    fill: #d72e48;
}

.st7 {
    fill: #ffffff;
}

.st8 {
    fill: #ff8d7f;
}

.st10 {
    fill: #3d3d3b;
}

.st11 {
    fill: var(--secondary-color);
}

.st12 {
    opacity: 0.2;
}

.st14 {
    fill: #b7b7b7;
}

.st15 {
    fill: #ead9cf;
}

/* Section Hover Animations */
.about, .education, .experience, .certifications, .projects, .testimonials, .contact {
    transition: all 0.3s ease;
}

.about:hover, .education:hover, .experience:hover, .certifications:hover, .projects:hover, .testimonials:hover, .contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

/* Card Hover Effects */
.project-card, .testimonial-card, .cert-card, .timeline-content {
    transition: all 0.3s ease;
}

.project-card:hover, .testimonial-card:hover, .cert-card:hover, .timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 157, 0.2);
}

/* Text overflow prevention */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* Improve text readability on mobile */
@media (max-width: 768px) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Ensure text doesn't get cut off */
    .hero-content,
    .about-content,
    .project-card,
    .testimonial-card,
    .cert-card,
    .timeline-content {
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Improve button text */
    .tooltip-container .text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Ensure proper spacing */
    .container > * {
        margin-left: auto;
        margin-right: auto;
    }

}

/* Fix for very small screens */
@media (max-width: 320px) {
    html {
        font-size: 12px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .profile-card {
        padding: 0.8rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .tooltip-container {
        font-size: 0.7rem;
        padding: 0.4em 1em;
    }
}

/* General Button Styles */
.cta-button, .btn, .submit-btn {
    display: inline-block;
    padding: clamp(0.6rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: var(--fluid-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    position: relative;
    overflow: hidden;
}

.cta-button:hover, .btn:hover, .submit-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 157, 0.3);
}

.cta-button:active, .btn:active, .submit-btn:active {
    transform: translateY(0);
    background: var(--button-active);
}

@keyframes shake {
    0%, 40%, 80% {
        transform: translateX(-10%);
    }
    20%, 60%, 100% {
        transform: translateX(0);
    }
}

/* Education Timeline - Alternating Left-Right Layout */
.education-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    box-shadow: var(--neon-glow);
}

.education-timeline .timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.education-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--neon-glow);
    z-index: 2;
}

.education-timeline .timeline-item.left .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

.education-timeline .timeline-item.right .timeline-content {
    margin-left: 55%;
    margin-right: 0;
    text-align: left;
}

.education-timeline .timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    width: 45%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.education-timeline .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
    border-color: var(--accent-color);
}

.education-timeline .timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid var(--border-color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: translateY(-50%);
}

.education-timeline .timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border-right: 10px solid var(--border-color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: translateY(-50%);
}

.education-timeline .timeline-content:hover::after {
    border-left-color: var(--accent-color);
    border-right-color: var(--accent-color);
}

/* Education Timeline Mobile Styles */
.education-timeline::before {
    left: 20px;
}

.education-timeline .timeline-item::before {
    left: 20px;
}

.education-timeline .timeline-item.left .timeline-content,
.education-timeline .timeline-item.right .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    width: calc(100% - 70px);
    text-align: left;
    padding: 1rem;
}

.education-timeline .timeline-item.left .timeline-content::after,
.education-timeline .timeline-item.right .timeline-content::after {
    display: none;
}

