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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
}

/* Section Styles for Single Page Layout */
.section {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    scroll-snap-align: start;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:first-child {
    opacity: 1;
    transform: translateY(0);
}

:root {
    --footer-height: 60px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0f1729;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    height: 100%;
    padding-bottom: var(--footer-height);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(15, 23, 41, 0.3), rgba(15, 23, 41, 0.5)),
        url('backgrpund_1758129273487.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

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

/* Enhanced Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

/* Header Navigation - Ultra Transparent */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(40px) saturate(250%);
    -webkit-backdrop-filter: blur(40px) saturate(250%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 10px 16px;
    color: #a3a3a3;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.15);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    z-index: 10;
}

.hero-avatar {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-img:hover {
    border-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a3a3a3;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #a3a3a3;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    color: white;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* Page Layout */
.about-page, .projects-page, .legal-page {
    padding: 120px 0 80px;
    position: relative;
    z-index: 10;
}

.contact-page {
    padding: 120px 0 80px;
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-subtitle {
    text-align: center;
    color: #a3a3a3;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Terminal Window */
.terminal-window {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.terminal-window:hover {
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 0 35px rgba(139, 92, 246, 0.6),
        0 0 70px rgba(139, 92, 246, 0.4),
        0 0 105px rgba(139, 92, 246, 0.2),
        inset 0 0 15px rgba(139, 92, 246, 0.1),
        0 12px 35px rgba(0, 0, 0, 0.4);
    background: rgba(26, 26, 26, 0.9);
    filter: brightness(1.05);
    animation: neonPulse 2s ease-in-out infinite;
}

.terminal-header {
    background: rgba(42, 42, 42, 0.9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

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

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27ca3f; }

.terminal-title {
    font-size: 13px;
    color: #a3a3a3;
    font-family: 'Fira Code', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    color: #d1d5db;
}

.prompt {
    color: #8B5CF6;
    margin-right: 8px;
}

.highlight {
    color: #EC4899;
    font-weight: 500;
}

.keyword {
    color: #06b6d4;
    font-weight: 500;
}

.success {
    color: #10b981;
}

.cursor {
    animation: blink 1s infinite;
    color: #8B5CF6;
}

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

/* Neon Pulse Animation for Cards */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(139, 92, 246, 0.6),
            0 0 60px rgba(139, 92, 246, 0.4),
            0 0 100px rgba(139, 92, 246, 0.2),
            inset 0 0 20px rgba(139, 92, 246, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(139, 92, 246, 0.8),
            0 0 80px rgba(139, 92, 246, 0.6),
            0 0 120px rgba(139, 92, 246, 0.4),
            inset 0 0 25px rgba(139, 92, 246, 0.15);
    }
}

/* Enhanced Neon Effects for Interactive Elements */
.btn:hover {
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 8px 25px rgba(139, 92, 246, 0.4);
    animation: neonPulse 1.5s ease-in-out infinite;
}

/* Avatar Neon Glow */
.avatar-img:hover {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.6),
        0 0 50px rgba(139, 92, 246, 0.4),
        0 0 75px rgba(139, 92, 246, 0.2);
    filter: brightness(1.1);
    animation: neonPulse 2s ease-in-out infinite;
}

/* Navigation Links Neon Effect */
.nav-link:hover {
    text-shadow: 
        0 0 5px rgba(139, 92, 246, 0.8),
        0 0 10px rgba(139, 92, 246, 0.6),
        0 0 15px rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.3),
        inset 0 0 10px rgba(139, 92, 246, 0.1);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: rgba(26, 26, 26, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    border-color: rgba(139, 92, 246, 0.8);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4),
        0 0 100px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.1),
        0 15px 40px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
    animation: neonPulse 2s ease-in-out infinite;
}

/* Neon Square Icon Styles - Same as Active badge */
.skill-icon, .contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 600;
    text-shadow: 0 0 5px currentColor;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.1);
}

.neon-red {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.neon-green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.neon-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.neon-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.neon-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Centered Social Icons Container */
.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
    flex-wrap: nowrap;
    max-width: none;
    width: 100%;
    overflow-x: auto;
}

/* Remove horizontal padding from contact section to eliminate left space */
#contact .container {
    padding-left: 0;
    padding-right: 0;
}

.social-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    text-shadow: 0 0 5px currentColor;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
    box-shadow: 
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor,
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    filter: brightness(1.2) saturate(1.3);
    animation: neonPulse 1.5s ease-in-out infinite;
}

/* Facebook - Neon Blue */
.social-facebook {
    background: rgba(24, 119, 242, 0.2);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

/* Telegram - Neon Blue */
.social-telegram {
    background: rgba(0, 136, 204, 0.2);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.3);
}

/* Messenger - Neon Purple */
.social-messenger {
    background: rgba(0, 114, 255, 0.2);
    color: #0072ff;
    border: 1px solid rgba(0, 114, 255, 0.3);
}

/* WhatsApp - Neon Green */
.social-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

/* Email - Neon Red */
.social-email {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Website - Neon Purple */
.social-website {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Phone - Neon Green */
.social-phone {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-link:focus {
    outline: 2px solid rgba(139, 92, 246, 0.5);
    outline-offset: 2px;
}



.skill-card:hover .skill-icon {
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 8px currentColor;
    box-shadow: 0 0 12px currentColor, inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.skill-card p {
    color: #a3a3a3;
    font-size: 0.9rem;
}

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

.project-card {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(139, 92, 246, 0.7),
        0 0 80px rgba(139, 92, 246, 0.5),
        0 0 120px rgba(139, 92, 246, 0.3),
        inset 0 0 25px rgba(139, 92, 246, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.5);
    background: rgba(139, 92, 246, 0.05);
    filter: brightness(1.1);
    animation: neonPulse 2s ease-in-out infinite;
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: #8B5CF6;
    opacity: 0.6;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.3s ease;
}

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

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-badge.research {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-description {
    color: #a3a3a3;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tag {
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    margin-bottom: 2rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-details h3 {
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-size: 1rem;
}

.contact-details a {
    color: #a3a3a3;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-details a:hover {
    color: #8B5CF6;
}

/* Social Media */
.social-media {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.social-btn.messenger { 
    color: #0084ff;
    text-shadow: 0 0 5px #0084ff;
}
.social-btn.facebook { 
    color: #1877f2;
    text-shadow: 0 0 5px #1877f2;
}
.social-btn.telegram { 
    color: #0088cc;
    text-shadow: 0 0 5px #0088cc;
}
.social-btn.whatsapp { 
    color: #25d366;
    text-shadow: 0 0 5px #25d366;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.2);
}

/* Contact Form */
.contact-form {
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background: rgba(42, 42, 42, 0.8);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
    color: #a3a3a3;
    font-size: 14px;
}

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

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.6);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
}

.last-updated {
    color: #a3a3a3;
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: #8B5CF6;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-content p {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #d1d5db;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-text {
    color: #a3a3a3;
    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #8B5CF6;
}

.footer-links span {
    color: #666;
    font-size: 14px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.mobile-menu-toggle .fa-times {
    display: none;
}

.mobile-menu-toggle.active .fa-bars {
    display: none;
}

.mobile-menu-toggle.active .fa-times {
    display: inline-block;
}

/* Responsive Design */
/* Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .terminal-body {
        font-size: 13px;
        padding: 16px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Tablet Portrait & Mobile Landscape */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 41, 0.98);
        backdrop-filter: blur(40px);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-top: none;
        padding: 20px;
        flex-direction: column;
        gap: 0;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        max-height: 300px;
        opacity: 1;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        margin: 5px 0;
        background: rgba(26, 26, 26, 0.4);
        border-radius: 8px;
        text-align: center;
        font-size: 16px;
        border: 1px solid rgba(139, 92, 246, 0.1);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 92, 246, 0.15);
        border-color: rgba(139, 92, 246, 0.3);
        transform: none;
    }
    
    .hero-section {
        padding: 140px 0 100px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .page-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .skill-card {
        padding: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .project-image {
        height: 180px;
    }
    
    .terminal-window {
        margin-bottom: 2rem;
    }
    
    .terminal-body {
        font-size: 13px;
        padding: 16px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 14px 32px;
        font-size: 15px;
        min-height: 48px;
        min-width: 120px;
    }
    
    .social-icons-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        padding: 0 10px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        min-height: 48px;
        min-width: 48px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .about-page, .projects-page, .contact-page, .legal-page {
        padding: 100px 0 80px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .page-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .terminal-body {
        font-size: 12px;
        padding: 12px;
    }
    
    .terminal-header {
        padding: 10px 12px;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-image {
        height: 160px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .legal-content {
        padding: 1rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .avatar-img {
        width: 90px;
        height: 90px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .skill-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .terminal-body {
        font-size: 11px;
        padding: 10px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .avatar-img,
    .project-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .avatar-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    .project-card:hover,
    .skill-card:hover,
    .btn:hover,
    .social-icon:hover {
        transform: none;
    }
    
    .project-card:active,
    .skill-card:active,
    .btn:active,
    .social-icon:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}