/* Base Styles & Variables */
:root {
    /* Light Theme */
    --light-bg: #f5f7fa;
    --light-text: #2d3748;
    --light-accent: #4f46e5;
    --light-card: #ffffff;
    --light-border: #e2e8f0;
    
    /* Dark Theme (Default) */
    --dark-bg: #0f172a;
    --dark-text: #e2e8f0;
    --dark-accent: #818cf8;
    --dark-card: #1e293b;
    --dark-border: #334155;
    
    /* Current Theme - Defaults to Dark */
    --bg: var(--dark-bg);
    --text: var(--dark-text);
    --accent: var(--dark-accent);
    --card: var(--dark-card);
    --border: var(--dark-border);
    
    /* Other Variables */
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Fonts */
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Rajdhani', sans-serif;
}

/* Theme Switching */
[data-theme="light"] {
    --bg: var(--light-bg);
    --text: var(--light-text);
    --accent: var(--light-accent);
    --card: var(--light-card);
    --border: var(--light-border);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

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

.text-gradient {
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    outline: none;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(129, 140, 248, 0.8);
}

.hover-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    top: 0;
    left: -100%;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover .hover-effect {
    left: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(129, 140, 248, 0.1);
}

[data-theme="light"] .navbar {
    background-color: rgba(245, 247, 250, 0.8);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-text {
    position: relative;
    z-index: 2;
}

.logo .accent {
    color: var(--accent);
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(15px);
    z-index: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.hover-underline:hover::after {
    width: 100%;
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 24px;
}

.theme-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: var(--box-shadow);
}

.theme-label i {
    font-size: 0.8rem;
    color: var(--text);
}

.theme-label .fa-sun {
    color: #f59e0b;
}

.theme-label .fa-moon {
    color: #7c3aed;
}

.theme-ball {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--accent);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(26px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--heading-font);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: rgba(226, 232, 240, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background-color: var(--accent);
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

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

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-text {
    font-family: var(--heading-font);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: rgba(226, 232, 240, 0.7);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    z-index: 1;
    transform: rotate(5deg) scale(1.02);
    opacity: 0.7;
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.1;
    border-radius: var(--border-radius);
    filter: blur(20px);
    z-index: 0;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--accent);
    opacity: 0.3;
}

.timeline-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

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

.timeline-content {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--card);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: auto;
    left: -10px;
    border-left: none;
    border-right: 10px solid var(--card);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.timeline-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

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

.skill-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(129, 140, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.skill-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(10px);
}

.skill-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(129, 140, 248, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    border-radius: 4px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0; }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

.tag {
    background-color: rgba(129, 140, 248, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--heading-font);
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Social Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--accent);
}

.link-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-link:hover .link-glow {
    opacity: 0.2;
    filter: blur(10px);
}

.social-link[data-tooltip] {
    position: relative;
}

.social-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--body-font);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.social-link[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.youtube-section {
    margin-top: 4rem;
}

.youtube-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.embed-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.1;
    border-radius: var(--border-radius);
    filter: blur(20px);
    z-index: -1;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-form {
    flex: 1;
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(129, 140, 248, 0.05), transparent);
    transform: rotate(45deg);
    z-index: 0;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1rem;
    outline: none;
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    pointer-events: none;
    transition: var(--transition);
    color: rgba(226, 232, 240, 0.7);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--card);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(129, 140, 248, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-family: var(--heading-font);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--text);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(129, 140, 248, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.8);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #4ade80;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-text {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.modal-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.1;
    border-radius: var(--border-radius);
    filter: blur(20px);
    z-index: -1;
}

/* Particle Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        width: 100%;
        padding-right: 0;
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-date {
        position: relative;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
