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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #e2e8f0;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(245, 158, 11, 0.1));
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 20%;
    animation-delay: -7s;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 5%;
    animation-delay: -12s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    color: #60a5fa;
    font-weight: 500;
}

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

.gradient-text {
    background: linear-gradient(45deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.typewriter {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.typewriter-text {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: typewriter 12s infinite;
}

.typewriter-text:nth-child(1) { animation-delay: 0s; }
.typewriter-text:nth-child(2) { animation-delay: 3s; }
.typewriter-text:nth-child(3) { animation-delay: 6s; }
.typewriter-text:nth-child(4) { animation-delay: 9s; }

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Code Preview */
.code-preview {
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.code-header {
    background: #0f172a;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-title {
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.code-content {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #1e293b;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-keyword {
    color: #f472b6;
}

.code-function {
    color: #60a5fa;
}

.code-string {
    color: #10b981;
}

.code-builtin {
    color: #f59e0b;
}

.code-comment {
    color: #64748b;
    font-style: italic;
}

/* Sections Common */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.feature-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feature-list i {
    color: #10b981;
}

/* Languages */
.languages-overview {
    margin-top: 3rem;
}

.language-type {
    margin-bottom: 4rem;
}

.language-type h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.type-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 800px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.language-item {
    background: rgba(30, 41, 59, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.language-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.language-item:hover::after {
    left: 100%;
}

.language-item:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.language-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.language-icon.c { background: #00599c; }
.language-icon.cpp { background: #00599c; font-family: 'JetBrains Mono'; }
.language-icon.java { background: #007396; }
.language-icon.csharp { background: #68217a; }
.language-icon.go { background: #00add8; font-family: 'JetBrains Mono'; font-weight: bold; }
.language-icon.python { background: #3776ab; }
.language-icon.javascript { background: #f7df1e; color: #333; }
.language-icon.php { background: #777bb4; }
.language-icon.ruby { background: #cc342d; }
.language-icon.typescript { background: #3178c6; font-family: 'JetBrains Mono'; font-weight: bold; }

.language-item h4 {
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.language-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.language-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #10b981;
}

.language-status .online {
    font-size: 0.6rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    padding: 2rem;
    color: white;
}

.overlay-content h4 {
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.overlay-content p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.about-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.about-feature i {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

.about-feature h4 {
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.about-feature p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-actions {
    display: flex;
    gap: 1rem;
}

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

.skill-category {
    background: rgba(30, 41, 59, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-item {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(96, 165, 250, 0.2);
    transform: translateY(-2px);
}

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

.project-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    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.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.project-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 500;
}

.project-link:hover {
    color: #60a5fa;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #3b82f6;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    color: #f1f5f9;
}

.contact-item p {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.9);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-text {
    color: #94a3b8;
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px 0 0 8px;
    color: #e2e8f0;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2563eb;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3b82f6;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

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

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .languages-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
    }
    
    .features-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
    }
}
/* Responsive Fixes for Homepage */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .typewriter {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .code-preview {
        margin-top: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .languages-grid {
        grid-template-columns: 1fr !important;
    }
    
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat {
        text-align: center;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Fix for mobile menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for typewriter animation on mobile */
.typewriter-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 480px) {
    .typewriter-text {
        white-space: normal;
        overflow: visible;
    }
}

/* Fix for code preview on mobile */
.code-content {
    font-size: 12px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .code-content {
        font-size: 11px;
        padding: 1rem;
    }
}

/* Fix for forms on mobile */
.form-group input,
.form-group textarea,
.form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Fix for buttons on mobile */
.btn {
    min-height: 44px; /* Better touch target */
    padding: 0.75rem 1.5rem;
}

/* Fix for cards on mobile */
.feature-card,
.language-item,
.project-card {
    min-height: auto;
    padding: 1.5rem;
}

/* Animation timeline fixes */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}