/* CSS Variables for Dual Theme */

:root {
    /* Light Theme */
    --primary-light: #4361ee;
    --secondary-light: #3a0ca3;
    --accent-light: #4cc9f0;
    --bg-light: #ffffff;
    --card-light: #f8f9fa;
    --text-light: #2d3748;
    --text-secondary-light: #6c757d;
    --border-light: #e9ecef;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Dark Theme */
    --primary-dark: #6366f1;
    --secondary-dark: #4f46e5;
    --accent-dark: #38bdf8;
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --text-dark: #f8fafc;
    --text-secondary-dark: #94a3b8;
    --border-dark: #334155;
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Current Theme - Default Dark */
    --primary: var(--primary-dark);
    --secondary: var(--secondary-dark);
    --accent: var(--accent-dark);
    --bg: var(--bg-dark);
    --card: var(--card-dark);
    --text: var(--text-dark);
    --text-secondary: var(--text-secondary-dark);
    --border: var(--border-dark);
    --shadow: var(--shadow-dark);
    /* Common */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    transition: var(--transition);
    overflow-x: hidden;
    position: relative;
}

body.light-theme {
    --primary: var(--primary-light);
    --secondary: var(--secondary-light);
    --accent: var(--accent-light);
    --bg: var(--bg-light);
    --card: var(--card-light);
    --text: var(--text-light);
    --text-secondary: var(--text-secondary-light);
    --border: var(--border-light);
    --shadow: var(--shadow-light);
}


/* Background Particles */

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.5;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-accent);
    animation: float 15s infinite linear;
}


/* Custom Cursor */

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.6s ease;
}


/* Navigation */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.light-theme header {
    background: rgba(248, 249, 250, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.logo-circle {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::before {
    width: 100%;
}

.theme-toggle {
    width: 50px;
    height: 26px;
    background: var(--card);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.light-theme .theme-toggle::after {
    transform: translateX(24px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}


/* Hero Section */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textReveal 1.5s ease forwards;
    opacity: 0;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0;
    animation: textReveal 1.5s ease 0.3s forwards;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    opacity: 0;
    animation: textReveal 1.5s ease 0.6s forwards;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: var(--accent)
    }
}

.hero-image {
    position: relative;
    perspective: 1000px;
}

.floating-card {
    width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: float3d 6s ease-in-out infinite;
}

@keyframes float3d {
    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    33% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
    66% {
        transform: translateY(-10px) rotateX(-5deg) rotateY(-5deg);
    }
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-front {
    background: var(--gradient);
    transform: translateZ(20px);
    box-shadow: var(--shadow);
}

.card-back {
    background: var(--card);
    transform: rotateY(180deg) translateZ(20px);
    border: 1px solid var(--border);
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.floating-card:hover {
    animation-play-state: paused;
    transform: rotateY(180deg);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 8px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.profile-img:hover img {
    transform: scale(1.05);
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-badge i {
    color: var(--accent);
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: textReveal 1.5s ease 0.9s forwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-5px) scale(1.05);
}


/* Sections Common */

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* About Section */

.about {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.light-theme .about {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    color: var(--text);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.skills-container {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.skills-container h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-tag:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-tag i {
    font-size: 0.9rem;
}


/* Experience Section */

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    color: var(--accent);
    border: 3px solid var(--border);
    transition: var(--transition);
}

.timeline-icon:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent);
}

.timeline-content {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
    flex: 1;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50px;
}

.responsibilities ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.responsibilities li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.certificate-showcase {
    text-align: center;
    margin-top: 4rem;
}

.certificate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--card);
    border: 2px solid var(--border);
    transition: var(--transition);
    margin: 0 10px;
}

.certificate-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
}


/* Education Section */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transition: width 0.4s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.education-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.education-year {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}


/* Projects Section */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.project-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-content {
    padding: 2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tag {
    padding: 5px 12px;
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}


/* Contact Section */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px) rotate(10deg);
    border-color: transparent;
}

.contact-form {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}


/* Footer */

footer {
    background: var(--card);
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) rotate(360deg);
}


/* Responsive Design */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .floating-card {
        width: 300px;
        height: 300px;
    }
    .profile-img {
        width: 250px;
        height: 250px;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        border-right: 1px solid var(--border);
        z-index: 999;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    .about-highlights {
        grid-template-columns: 1fr;
    }
    .floating-card {
        width: 250px;
        height: 250px;
    }
    .profile-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .floating-card {
        width: 220px;
        height: 220px;
    }
    .profile-img {
        width: 180px;
        height: 180px;
    }
    .tech-badge {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}