/* Base styles and variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-primary: #4169e1;
    --accent-secondary: #764ba2;
    --font-main: 'Poppins', sans-serif;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --glow: 0 0 10px rgba(65, 105, 225, 0.6);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Custom cursor - DISABLED */
#cursor, #cursor-blur {
    display: none !important; /* Force disable cursor elements */
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(65, 105, 225, 0.1);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.8);
}

nav.scrolled {
    padding: 15px 0;
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn__burger {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 5px;
    transition: var(--transition);
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Section styles */
.section {
    padding: var(--section-padding);
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section:nth-child(odd) {
    background-color: var(--bg-secondary);
}

.section-title {
    margin-bottom: 50px;
    font-size: 36px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    left: 50%;
    transform: translateX(-50%);
}

/* Home Section */
#home {
    padding-top: 140px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(65, 105, 225, 0.1), transparent 50%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    min-height: 70vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 0 20px;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-text p {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    width: 100%;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-code-section {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-bottom: 40px;
}

.code-container {
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.code-header {
    background-color: rgba(65, 105, 225, 0.1);
    padding: 8px 15px;
    border-bottom: 1px solid rgba(65, 105, 225, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-filename {
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 500;
}

.code-header::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff5f57;
}

.code-header::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffbd2e;
    margin-left: 5px;
}

.code-container pre {
    margin: 0;
    padding: 15px;
    background-color: rgba(10, 10, 10, 0.8);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    font-size: 12px;
}

.code-container code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #e6e6e6;
    line-height: 1.4;
    font-size: 11px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
    z-index: 10;
    padding: 50px 0;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 16px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    opacity: 0.5;
    /* Animation disabled */
}

.arrow {
    margin-top: 15px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes scrollArrow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.5;
    }
}

/* About Section - clean and responsive */
#about {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 80px 0;
    position: relative;
    margin-top: 20px;
}

.about-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.about-text {
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 0 20px;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    width: 100%;
    box-sizing: border-box;
}

.about-text ul {
    margin: 20px 0 30px 0;
    text-align: left;
    padding-left: 30px;
    width: 100%;
    box-sizing: border-box;
}

.about-text li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.about-text li::before {
    content: '▹';
    position: absolute;
    left: 5px;
    color: var(--accent-primary);
}

.download-cv {
    margin-top: 10px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.05) 0%, transparent 70%);
    z-index: 0;
    transform: rotate(45deg);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.skill-icon.php {
    background: linear-gradient(135deg, #4F5B93, #333);
    color: #fff;
}

.skill-icon.laravel {
    background: linear-gradient(135deg, #F05340, #AA2E25);
    color: #fff;
}

.skill-icon.mysql {
    background: linear-gradient(135deg, #00758F, #003349);
    color: #fff;
}

.skill-icon.html {
    background: linear-gradient(135deg, #E44D26, #9C2A1A);
    color: #fff;
}

.skill-icon.css {
    background: linear-gradient(135deg, #264DE4, #1D38A9);
    color: #fff;
}

.skill-icon.js {
    background: linear-gradient(135deg, #F7DF1E, #B8A608);
    color: #111;
}

.skill-icon.typescript {
    background: linear-gradient(135deg, #3178C6, #1E4A72);
    color: #fff;
}

.skill-icon.git {
    background: linear-gradient(135deg, #F05033, #A92D22);
    color: #fff;
}

.skill-icon.docker {
    background: linear-gradient(135deg, #2496ED, #1C70AA);
    color: #fff;
}

.skill-icon.api {
    background: linear-gradient(135deg, #00C2FF, #0088C2);
    color: #fff;
}

.skill-icon.vue {
    background: linear-gradient(135deg, #41B883, #34495E);
    color: #fff;
}

.skill-icon.alpine {
    background: linear-gradient(135deg, #77C1D2, #2D3A4F);
    color: #fff;
}

.skill-icon.tailwind {
    background: linear-gradient(135deg, #38B2AC, #1A202C);
    color: #fff;
}

.skill-icon.jquery {
    background: linear-gradient(135deg, #0769AD, #003559);
    color: #fff;
}

.skill-icon.ajax {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
}

.skill-icon.livewire {
    background: linear-gradient(135deg, #FB70A9, #4A3AFF);
    color: #fff;
}

.skill-icon.sqlite {
    background: linear-gradient(135deg, #003B57, #0066CC);
    color: #fff;
}

.skill-icon.stripe {
    background: linear-gradient(135deg, #635BFF, #00D4FF);
    color: #fff;
}

.skill-icon.ai {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: #fff;
}

.skill-icon.english {
    background: linear-gradient(135deg, #FF4B4B, #A30000);
    color: #fff;
}

.skill-item h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(160, 160, 160, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}


.projects-grid.single-card {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.project-img {
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
    border-bottom: 1px solid rgba(65, 105, 225, 0.2);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img::after {
    opacity: 0.5;
}

.project-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-card:hover .project-img img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.project-info {
    padding: 25px;
    background: linear-gradient(to bottom, var(--bg-card) 0%, rgba(26, 26, 26, 0.98) 100%);
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.project-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 12px;
    padding: 4px 12px;
    background-color: rgba(65, 105, 225, 0.1);
    border-radius: 15px;
    color: var(--accent-primary);
}

.project-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    margin-right: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
}

.contact-text h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-text p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-main);
    resize: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

    .footer-links {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Animations - OPTIMIZED */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Disable continuous animations */
@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

@keyframes scrollArrow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.5;
    }
}

/* Media Queries */
@media screen and (max-width: 900px) {
    .container {
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    .hero-content {
        gap: 25px !important;
        padding: 0 15px !important;
        min-height: auto !important;
    }

    .hero-text h1 {
        font-size: 42px !important;
    }

    .hero-text p {
        font-size: 16px !important;
    }

    .hero-code-section {
        max-width: 100% !important;
    }
    
    .hero-text h1 {
        font-size: 38px !important;
        max-width: 100% !important;
    }
    
    .hero-text p {
        max-width: 100% !important;
    }
}

@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    /* About section for tablet */
    #about {
        padding: 60px 0;
        margin-top: 15px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }

    .hero-code-section {
        max-width: 550px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 20px;
    }
}

@media screen and (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-links {
        gap: 12px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* About section for mobile */
    #about {
        padding: 50px 0;
        margin-top: 10px;
    }

    /* About section for mobile */
    .about-text {
        padding: 0 15px;
        font-size: 16px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.6;
    }

    .about-text li {
        font-size: 15px;
        padding-left: 15px;
    }

    .about-text ul {
        padding-left: 25px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px 0;
        transition: var(--transition);
        z-index: 98;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-btn {
        display: block;
        z-index: 99;
    }

    .menu-btn.active .menu-btn__burger {
        background: transparent;
    }

    .menu-btn.active .menu-btn__burger::before {
        transform: rotate(45deg);
    }

    .menu-btn.active .menu-btn__burger::after {
        transform: rotate(-45deg);
    }

    /* Hero section for mobile */
    .hero-content {
        gap: 35px !important;
        padding: 0 10px !important;
    }
    
    .hero-code-section {
        margin-bottom: 30px !important;
    }

    .hero-text h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .hero-text p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    .hero-code-section {
        max-width: 100% !important;
    }

    /* Scroll indicator position for mobile */
    .scroll-indicator {
        bottom: -40px !important;
        padding: 45px 0 !important;
    }

    .code-container pre {
        padding: 12px !important;
        font-size: 11px !important;
    }

    .code-container code {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    /* Language switcher in mobile view */
    .language-switch {
        margin: 20px 0 0;
        padding: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-links {
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* About section for small mobile */
    #about {
        padding: 40px 0;
        margin-top: 8px;
    }

    /* About section for small mobile */
    .about-text {
        padding: 0 12px;
        font-size: 15px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.5;
    }

    .about-text li {
        font-size: 14px;
        padding-left: 12px;
    }

    .about-text ul {
        padding-left: 20px;
    }

    .hero-text h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .hero-text p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }

    .cta-buttons {
        gap: 12px !important;
    }

    .btn {
        max-width: 260px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }

    .hero-text h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .hero-text p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .btn {
        max-width: 260px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }

    .code-container pre {
        padding: 10px !important;
        font-size: 10px !important;
    }

    /* Scroll indicator for small mobile */
    .scroll-indicator {
        bottom: -50px !important;
        padding: 50px 0 !important;
    }

    .code-container code {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .section-title {
        font-size: 28px;
    }

    .project-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Language switcher */
.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.lang-btn:hover {
    color: var(--text-primary);
}

/* Project Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-size: 28px;
}

.modal-body h3 {
    margin: 25px 0 15px 0;
    color: var(--text-primary);
    font-size: 20px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 5px;
}

.modal-body h4 {
    margin: 20px 0 10px 0;
    color: var(--accent-primary);
    font-size: 16px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-body li::marker {
    color: var(--accent-primary);
}

.modal-body strong {
    color: var(--text-primary);
}

.modal-body .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.modal-body .tech-stack span {
    background-color: rgba(65, 105, 225, 0.1);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive modal */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-body h2 {
        font-size: 24px;
    }
    
    .modal-body h3 {
        font-size: 18px;
    }
}

/* Extra small screens (320px and below) */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
        box-sizing: border-box !important;
    }

    .footer-links {
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* About section for extra small mobile */
    #about {
        padding: 35px 0;
        margin-top: 5px;
    }

    /* About section for extra small mobile */
    .about-text {
        padding: 0 10px;
        font-size: 14px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.4;
    }

    .about-text li {
        font-size: 13px;
        padding-left: 10px;
    }

    .about-text ul {
        padding-left: 18px;
    }

    .hero-text h1 {
        font-size: 24px !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }

    .hero-text p {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
    }

    .btn {
        max-width: 240px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    .hero-text h1 {
        font-size: 24px !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }

    .hero-text p {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 18px !important;
    }

    .btn {
        max-width: 240px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    .code-container pre {
        padding: 8px !important;
        font-size: 9px !important;
    }

    /* Scroll indicator for extra small mobile */
    .scroll-indicator {
        bottom: -60px !important;
        padding: 55px 0 !important;
    }

    .code-container code {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    .section-title {
        font-size: 24px;
    }
} 