/* ====== GLOBAL VARIABLES & THEMES ====== */
:root {
    /* Light Theme (Default fallback) */
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.05);
    
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #0ea5e9;
    
    --glass-blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-theme {
    /* Dark Theme (Vansh style) */
    --bg-main: #0b0f19;
    --bg-alt: #111827;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #38bdf8;
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title-wrap {
    margin-bottom: 24px;
}

.subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0px;
}

.title, #hero-subrole {
    display: none !important;
}

/* ====== GLASSMORPHISM ====== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: #4f46e5;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

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

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

.w-100 { width: 100%; }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image-container {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-group:hover .logo-image-container {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
}

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

/* Sidebar Elements (Hidden on Desktop) */
.sidebar-header, .sidebar-group-title, .sidebar-group.mobile-only, .sidebar-close {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-socials {
    display: flex;
    gap: 10px;
    margin-right: 5px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-toggle {
    background: var(--border-color);
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

/* Subtle background glow */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Hero Visual & 3D Effect */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* ====== TERMINAL HERO CARD ====== */
.terminal-card {
    width: 100%;
    max-width: 520px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.15);
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.25);
}

.terminal-header {
    background: rgba(30, 41, 59, 0.75);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

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

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.terminal-body {
    padding: 22px 24px;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.8;
    color: #e2e8f0;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-line {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-prompt { color: #38bdf8; font-weight: bold; }
.t-cmd { color: #f1f5f9; font-weight: 600; }
.t-info { color: #818cf8; font-weight: 600; }
.t-keyword { color: #f43f5e; font-weight: 600; }
.t-success { color: #34d399; font-weight: 600; }
.t-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
}

/* Floating Badges Removed */

/* ====== ABOUT SECTION ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-info {
    padding: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.info-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-content h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Status Indicator */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Green */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
}

/* ====== SKILLS SECTION ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
    background: var(--bg-main);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 5px;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.skill-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: block;
}

.projects-slider-wrapper {
    position: relative;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt); /* Fallback */
}

.project-img-wrap i {
    /* Fallback icon if no image */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--border-color);
}

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

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

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    margin-top: auto;
}

.project-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 12px;
}

/* ====== CONTACT SECTION ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-form-wrap {
    padding: 40px;
}

@media (max-width: 768px) {
    .contact-form-wrap {
        padding: 20px;
    }
}

/* Contact Method Buttons */
.contact-method-buttons {
    display: flex;
    gap: 15px;
}

.method-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.method-btn i {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.method-btn[data-type="telegram"]:hover {
    border-color: rgba(36, 161, 222, 0.4);
    color: #24A1DE;
}

.method-btn[data-type="phone"]:hover {
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.method-btn:hover i {
    transform: scale(1.15);
}

.method-btn.active[data-type="telegram"] {
    border-color: #24A1DE;
    background: rgba(36, 161, 222, 0.1);
    color: #24A1DE;
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.2);
}

.method-btn.active[data-type="phone"] {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

/* ====== MEGA FOOTER STYLES BELOW ====== */

/* Input Left Icon */
.input-left-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

/* Anonim Right Switch Wrap */
.anonim-switch-wrap {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    user-select: none;
}

.anonim-switch-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 480px) {
    .anonim-switch-text {
        font-size: 0.75rem;
    }
    #form-name {
        padding-right: 100px !important;
    }
}

/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #10b981;
    border-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cyber-form input, .cyber-form textarea, .cyber-form select {
    width: 100%;
    padding: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
}

.cyber-form input:focus, .cyber-form textarea:focus, .cyber-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.cyber-form select option {
    background: var(--bg-main);
    color: var(--text-main);
}

.cyber-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 45px;
}

/* ====== MEGA FOOTER ====== */
.mega-footer {
    padding: 40px 0 10px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.footer-logo {
    font-family: 'Outfit';
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.footer-logo span { color: var(--primary); }

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-circle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-contact-list i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.footer-contact-list span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ====== MODAL (GLASSMORPHISM) ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--border-color);
    border: none;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.modal-section h4 i {
    color: var(--primary);
}

.modal-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-advantages {
    list-style: none;
}

.modal-advantages li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-advantages li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.modal-actions {
    margin-top: 30px;
}

/* ====== RESPONSIVE DESIGN ====== */
/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-btns, .hero-socials {
        justify-content: flex-start;
    }
    
    .hero-desc {
        margin: 0 0 40px;
        text-align: left;
    }
    
    .title {
        font-size: clamp(1.8rem, 5vw, 2.2rem) !important;
    }
}

@media (max-width: 1024px) {
    /* Heading Font Scaling and Single-Line Name Rule */
    .hero-title {
        font-size: clamp(1.3rem, 7.2vw, 2.5rem) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: -0.5px !important;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 5.2vw, 1.6rem) !important;
    }
    
    .title {
        font-size: clamp(1.5rem, 5.8vw, 2.2rem) !important;
    }
    
    .section-title-wrap {
        margin-bottom: 16px !important;
    }

    /* Prevent card/box overflow from long content */
    .info-content,
    .info-content h4,
    .contact-list,
    .contact-list span,
    .contact-list li {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
        max-width: 100% !important;
    }

    .about-info {
        padding: 20px !important;
    }

    .nav-container {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-right: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }

    /* Hide hamburger when sidebar is open to avoid duplicate X over logo */
    body.sidebar-open .hamburger {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;
    }

    .sidebar-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-close {
        background: var(--bg-main);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        transition: var(--transition);
    }

    .sidebar-close:hover {
        background: var(--primary);
        color: #ffffff;
        border-color: var(--primary);
    }
    
    .sidebar-group {
        width: 100%;
        padding: 0 24px 24px 24px;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-group.mobile-only {
        display: flex;
        border-top: 1px solid var(--border-color);
        padding-top: 24px;
    }
    
    .sidebar-group-title {
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
        font-weight: 600;
        opacity: 0.6;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.05rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.5px;
        color: var(--text-muted) !important;
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
    }

    .nav-links a:hover, 
    .nav-links a.active {
        color: var(--primary) !important;
        background: rgba(99, 102, 241, 0.1);
        padding-left: 20px;
    }
    
    .sidebar-contact {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-pill {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--bg-main);
        padding: 12px 16px;
        border-radius: 12px;
        text-decoration: none;
        transition: var(--transition);
        border: 1px solid var(--border-color);
    }
    
    .contact-pill:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
    }
    
    .contact-icon {
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
    }
    
    .contact-text {
        font-size: 1rem;
        color: var(--text-main);
        font-weight: 500;
    }

    .desktop-socials {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
        margin-right: 8px;
        z-index: 1000;
        flex-shrink: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Hide terminal on small mobile screens for clean compact hero */
    .hero-visual {
        display: none !important;
    }
    
    /* Position badges so they don't overflow mobile viewport and look clean */
    .badge-exp {
        bottom: 25px !important;
        left: -15px !important;
        transform: none !important;
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        border-radius: 12px !important;
    }
    
    .badge-code {
        top: 25px !important;
        right: -15px !important;
        width: 46px !important;
        height: 46px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.1rem !important;
        border-radius: 50% !important;
    }

    /* Mobile Skills Horizontal Carousel */
    .skills-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 5px 5px 15px 5px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .skills-grid::-webkit-scrollbar {
        display: none;
    }
    .skill-card {
        flex: 0 0 135px !important;
        width: 135px !important;
        max-width: 135px !important;
        scroll-snap-align: start !important;
        padding: 20px 12px !important;
    }
    .skill-icon {
        font-size: 2.5rem !important;
    }
    .skill-name {
        font-size: 0.95rem !important;
    }

    /* Mobile Projects Horizontal Carousel */
    .projects-slider-wrapper {
        padding-bottom: 0px !important;
    }
    .projects-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 5px 5px 15px 5px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .projects-grid::-webkit-scrollbar {
        display: none;
    }
    .project-card {
        flex: 0 0 85% !important;
        width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start !important;
    }
    .project-img-wrap {
        height: 165px !important;
    }
    .project-content {
        padding: 16px !important;
    }
    .project-title {
        font-size: 1.15rem !important;
        margin-bottom: 6px !important;
    }
    .project-desc {
        font-size: 0.88rem !important;
        margin-bottom: 12px !important;
    }
    .project-tags {
        margin-bottom: 14px !important;
        gap: 6px !important;
    }
    .project-tag {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    .slider-btn {
        display: none !important;
    }
    
    .contact-form-wrap {
        padding: 24px;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ====== CUSTOM TOAST NOTIFICATION ====== */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid #10b981;
}
.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid var(--primary);
}
.toast-info .toast-icon {
    color: var(--primary);
}

.skill-icon {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}
