/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0a0a0a;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.name-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 5px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 2rem;
}

.floating-tech {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-tech:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.floating-tech:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
    color: #dd0031; /* Angular red */
}

.floating-tech:nth-child(2) {
    top: 20px;
    right: 0;
    animation-delay: 1.5s;
    color: #61dafb; /* React blue */
}

.floating-tech:nth-child(3) {
    bottom: 20px;
    left: 30px;
    animation-delay: 3s;
    color: #f89820; /* Java orange */
}

.floating-tech:nth-child(4) {
    bottom: 0;
    right: 30px;
    animation-delay: 4.5s;
    color: #336791; /* PostgreSQL blue */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: drift 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #764ba2 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation: drift 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation: drift 30s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #ccc;
}

/* About Section */
.about {
    background: #111;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    display: block;
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.2);
}

.about-text h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.about-text p {
    color: #ddd;
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    color: #bbb;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.timeline-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #ccc;
    font-size: 0.9rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.location-info h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.location-info .location {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Skills Section */
.skills {
    background: #0a0a0a;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.skill-item span {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

/* Education Section */
.education {
    background: #111;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.education-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-info h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.education-location {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.education-date {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.education-content ul {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.education-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    background: #111;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline .timeline-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45%;
    transition: transform 0.3s ease;
}

.timeline .timeline-item:hover {
    transform: translateY(-5px);
}

.timeline .timeline-item:nth-child(odd) {
    left: 0;
}

.timeline .timeline-item:nth-child(even) {
    left: 55%;
}

.timeline .timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    top: 2rem;
    z-index: 1;
}

.timeline .timeline-item:nth-child(odd) .timeline-dot {
    right: -35px;
}

.timeline .timeline-item:nth-child(even) .timeline-dot {
    left: -35px;
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    color: #ccc;
    margin-bottom: 1rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    background: #0a0a0a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.project-image i {
    font-size: 3rem;
    color: #667eea;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
}

.project-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-features {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.project-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
}

.project-features li::before {
    display: none;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
}

.project-link:hover {
    color: #fff;
}

/* Contact Section */
.contact {
    background: #111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* React Icon - Figure-8 Movement */
@keyframes float-orbit {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    12.5% {
        transform: translateY(-20px) translateX(18px) rotate(45deg) scale(1.15);
    }
    25% {
        transform: translateY(-30px) translateX(25px) rotate(90deg) scale(1.2);
    }
    37.5% {
        transform: translateY(-20px) translateX(18px) rotate(135deg) scale(1.15);
    }
    50% {
        transform: translateY(0px) translateX(0px) rotate(180deg) scale(1);
    }
    62.5% {
        transform: translateY(20px) translateX(-18px) rotate(225deg) scale(1.15);
    }
    75% {
        transform: translateY(30px) translateX(-25px) rotate(270deg) scale(1.2);
    }
    87.5% {
        transform: translateY(20px) translateX(-18px) rotate(315deg) scale(1.15);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    }
}

/* Angular Icon - Elastic Bounce Movement */
@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    10% {
        transform: translateY(-35px) translateX(8px) rotate(20deg) scale(1.25);
    }
    20% {
        transform: translateY(-15px) translateX(12px) rotate(25deg) scale(1.1);
    }
    30% {
        transform: translateY(-25px) translateX(-6px) rotate(-15deg) scale(1.15);
    }
    40% {
        transform: translateY(-8px) translateX(-12px) rotate(-20deg) scale(1.05);
    }
    50% {
        transform: translateY(-18px) translateX(15px) rotate(30deg) scale(1.2);
    }
    60% {
        transform: translateY(-30px) translateX(18px) rotate(35deg) scale(1.3);
    }
    70% {
        transform: translateY(-12px) translateX(-8px) rotate(-25deg) scale(1.08);
    }
    80% {
        transform: translateY(-6px) translateX(-15px) rotate(-30deg) scale(1.03);
    }
    90% {
        transform: translateY(-3px) translateX(5px) rotate(10deg) scale(1.02);
    }
}

/* JavaScript Icon - Infinity Loop Movement */
@keyframes float-spiral {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    8.33% {
        transform: translateY(-10px) translateX(20px) rotate(30deg) scale(1.1);
    }
    16.67% {
        transform: translateY(-25px) translateX(30px) rotate(60deg) scale(1.15);
    }
    25% {
        transform: translateY(-35px) translateX(20px) rotate(90deg) scale(1.2);
    }
    33.33% {
        transform: translateY(-25px) translateX(0px) rotate(120deg) scale(1.15);
    }
    41.67% {
        transform: translateY(-10px) translateX(-20px) rotate(150deg) scale(1.1);
    }
    50% {
        transform: translateY(0px) translateX(-25px) rotate(180deg) scale(1);
    }
    58.33% {
        transform: translateY(10px) translateX(-20px) rotate(210deg) scale(1.1);
    }
    66.67% {
        transform: translateY(25px) translateX(0px) rotate(240deg) scale(1.15);
    }
    75% {
        transform: translateY(35px) translateX(20px) rotate(270deg) scale(1.2);
    }
    83.33% {
        transform: translateY(25px) translateX(30px) rotate(300deg) scale(1.15);
    }
    91.67% {
        transform: translateY(10px) translateX(20px) rotate(330deg) scale(1.1);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    }
}

/* Node.js Icon - Pendulum Swing Movement */
@keyframes float-wave {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    6.25% {
        transform: translateY(-8px) translateX(25px) rotate(15deg) scale(1.05);
    }
    12.5% {
        transform: translateY(-18px) translateX(40px) rotate(30deg) scale(1.1);
    }
    18.75% {
        transform: translateY(-25px) translateX(45px) rotate(40deg) scale(1.15);
    }
    25% {
        transform: translateY(-30px) translateX(35px) rotate(45deg) scale(1.2);
    }
    31.25% {
        transform: translateY(-25px) translateX(15px) rotate(30deg) scale(1.15);
    }
    37.5% {
        transform: translateY(-18px) translateX(-5px) rotate(10deg) scale(1.1);
    }
    43.75% {
        transform: translateY(-8px) translateX(-20px) rotate(-10deg) scale(1.05);
    }
    50% {
        transform: translateY(0px) translateX(-30px) rotate(-20deg) scale(1);
    }
    56.25% {
        transform: translateY(8px) translateX(-35px) rotate(-30deg) scale(1.05);
    }
    62.5% {
        transform: translateY(18px) translateX(-25px) rotate(-35deg) scale(1.1);
    }
    68.75% {
        transform: translateY(25px) translateX(-10px) rotate(-25deg) scale(1.15);
    }
    75% {
        transform: translateY(30px) translateX(10px) rotate(-10deg) scale(1.2);
    }
    81.25% {
        transform: translateY(25px) translateX(25px) rotate(5deg) scale(1.15);
    }
    87.5% {
        transform: translateY(18px) translateX(35px) rotate(15deg) scale(1.1);
    }
    93.75% {
        transform: translateY(8px) translateX(20px) rotate(10deg) scale(1.05);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(30px) translateY(-30px);
    }
    50% {
        transform: translateX(-20px) translateY(20px);
    }
    75% {
        transform: translateX(20px) translateY(-10px);
    }
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Awards Section */
.awards {
    background: #111;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.award-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
}

.award-content {
    flex: 1;
}

.award-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.award-issuer {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.award-date {
    color: #ccc;
    font-size: 0.9rem;
}

/* Theme Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Light Mode Styles */
body.light-theme {
    background-color: #f8f9fa;
    color: #333;
}

body.light-theme .navbar {
    background: rgba(248, 249, 250, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .navbar.scrolled {
    background: rgba(248, 249, 250, 1) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-container {
    border: none;
    box-shadow: none;
}

body.light-theme .nav-menu {
    border: none;
    box-shadow: none;
}

body.light-theme .nav-link {
    color: #333 !important;
    font-weight: 500;
    border: none;
    box-shadow: none;
}

body.light-theme .nav-link:hover {
    color: #667eea !important;
}

body.light-theme .nav-link::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: #667eea;
}

body.light-theme .bar {
    background: #333;
}

body.light-theme .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    position: relative;
}

body.light-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

body.light-theme .hero-title {
    color: #fff;
}

body.light-theme .hero-description {
    color: rgba(255, 255, 255, 0.9);
}

body.light-theme .name-highlight {
    color: #1a202c !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a202c !important;
    background-clip: unset !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    font-weight: 900 !important;
    position: relative;
    background-size: unset !important;
    animation: none !important;
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure name visibility in light mode - additional safety */
body.light-theme .hero-title .name-highlight {
    color: #1a202c !important;
    -webkit-text-fill-color: #1a202c !important;
    background: transparent !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.light-theme .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 1);
}

body.light-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
}

body.light-theme .btn-secondary:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

body.light-theme .profile-card {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

body.light-theme .profile-image {
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .about {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .skills {
    background: #f8f9fa;
}

body.light-theme .experience {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .projects {
    background: #f8f9fa;
}

body.light-theme .awards {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .contact {
    background: #f8f9fa;
}

body.light-theme .footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .section-title {
    color: #333;
}

body.light-theme .section-subtitle {
    color: #666;
}

body.light-theme .about {
    background: #f8f9fa;
}

body.light-theme .about::before {
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
}

body.light-theme .about-text {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

body.light-theme .about-text:hover {
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.15);
}

body.light-theme .about-text h3 {
    color: #333 !important;
    font-weight: 600;
}

body.light-theme .about-text p {
    color: #555 !important;
    line-height: 1.9;
}

body.light-theme .stat-item {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.light-theme .stat-item:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

body.light-theme .stat-label {
    color: #666;
}

body.light-theme .stat-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Education Section Light Mode */
body.light-theme .education {
    background: #f8f9fa;
}

body.light-theme .education-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .education-card:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

body.light-theme .education-info h3 {
    color: #333;
}

body.light-theme .education-info h4 {
    color: #667eea;
}

body.light-theme .education-location {
    color: #666;
}

body.light-theme .education-date {
    color: #555;
}

body.light-theme .education-content ul {
    color: #555;
}

body.light-theme .education-content li {
    color: #555;
}

body.light-theme .timeline-preview {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.light-theme .timeline-content h4 {
    color: #333;
}

body.light-theme .timeline-content p {
    color: #666 !important;
}

body.light-theme .skill-category {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .skill-category h3 {
    color: #333;
}

body.light-theme .skill-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.light-theme .skill-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

body.light-theme .skill-item span {
    color: #333;
}

body.light-theme .skill-level {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .timeline .timeline-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .timeline .timeline-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.light-theme .timeline-content h3 {
    color: #333 !important;
    font-weight: 600;
}

body.light-theme .timeline-content h4 {
    color: #667eea !important;
    font-weight: 500;
}

body.light-theme .timeline-date {
    color: #666 !important;
}

body.light-theme .timeline-content ul {
    color: #555 !important;
}

body.light-theme .timeline-content li {
    color: #555 !important;
}

body.light-theme .timeline-content p {
    color: #666 !important;
}

body.light-theme .project-content h3 {
    color: #333 !important;
    font-weight: 600;
}

body.light-theme .project-content p {
    color: #555 !important;
}

body.light-theme .project-features {
    color: #555 !important;
}

body.light-theme .project-features li {
    color: #555 !important;
}

body.light-theme .award-content h3 {
    color: #333 !important;
    font-weight: 600;
}

body.light-theme .award-issuer {
    color: #667eea !important;
    font-weight: 500;
}

body.light-theme .award-date {
    color: #666 !important;
}

body.light-theme .contact-info h3 {
    color: #333 !important;
    font-weight: 600;
}

body.light-theme .contact-item h4 {
    color: #333 !important;
    font-weight: 500;
}

body.light-theme .contact-item p {
    color: #555 !important;
}

body.light-theme .skill-category h3 {
    color: #333 !important;
    font-weight: 600;
}

body.light-theme .skill-item span {
    color: #333 !important;
    font-weight: 500;
}

body.light-theme .stat-number {
    color: #667eea !important;
    font-weight: 700;
}

body.light-theme .stat-label {
    color: #666 !important;
}

body.light-theme .footer-content {
    color: #666 !important;
}

/* Fix form elements in light mode */
body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 1) !important;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: #999 !important;
}

/* Fix tech tags in light mode */
body.light-theme .tech-tag {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-weight: 500;
}

/* Fix project links in light mode */
body.light-theme .project-link {
    color: #667eea !important;
    font-weight: 500;
}

body.light-theme .project-link:hover {
    color: #333 !important;
}

/* Fix social links in light mode */
body.light-theme .social-link {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea !important;
}

body.light-theme .social-link:hover {
    background: #667eea !important;
    color: #fff !important;
}

/* Fix floating tech icons in light mode */
body.light-theme .floating-tech {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .floating-tech:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Fix timeline preview in about section */
body.light-theme .timeline-preview {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .timeline-preview .timeline-content h4 {
    color: #333 !important;
}

body.light-theme .timeline-preview .timeline-content p {
    color: #666 !important;
}

body.light-theme .location-info h4 {
    color: #667eea !important;
    font-weight: 600;
}

body.light-theme .location-info .location {
    color: #777 !important;
    font-style: italic;
}

/* Mobile menu light mode */
body.light-theme .nav-menu {
    background: rgba(248, 249, 250, 1) !important;
    /* border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15); */
}

body.light-theme .nav-menu a {
    color: #333 !important;
    font-weight: 500;
}

body.light-theme .nav-menu a:hover {
    color: #667eea !important;
}

/* Additional light mode text fixes */
body.light-theme .hero-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

body.light-theme .hero-description {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

body.light-theme .section-title {
    color: #333 !important;
    font-weight: 700;
}

body.light-theme .section-subtitle {
    color: #666 !important;
}

/* Fix submit button in light mode */
body.light-theme .btn[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}

body.light-theme .btn[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

body.light-theme .btn[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Fix contact form styling in light mode */
body.light-theme .contact-form {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fix contact icon colors */
body.light-theme .contact-item i {
    color: #667eea !important;
}

/* Light mode project cards */
body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .project-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.light-theme .project-date {
    color: #667eea !important;
    font-weight: 500;
}

body.light-theme .award-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .award-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced profile card light mode */
body.light-theme .profile-card {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

body.light-theme .profile-image {
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Light mode gradient enhancements */
body.light-theme .about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

body.light-theme .skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(118, 75, 162, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

body.light-theme .about,
body.light-theme .skills,
body.light-theme .experience,
body.light-theme .projects,
body.light-theme .awards,
body.light-theme .contact {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .education-icon {
        align-self: center;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline .timeline-dot {
        left: 15px;
    }

    .timeline .timeline-item:nth-child(odd) .timeline-dot,
    .timeline .timeline-item:nth-child(even) .timeline-dot {
        left: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .award-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .btn {
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-width: auto;
    }

    .education-timeline::before {
        left: 31px;
    }

    .education-timeline .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .education-timeline .timeline-item:nth-child(even) {
        left: 0%;
    }

    .education-timeline .timeline-dot {
        left: 15px;
    }

    .education-timeline .timeline-item:nth-child(odd) .timeline-dot,
    .education-timeline .timeline-item:nth-child(even) .timeline-dot {
        left: 15px;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .location-info {
        flex-direction: column;
        gap: 1rem;
    }

    .location-item {
        min-width: auto;
    }
}
