/* ==========================================================================
   Modern Portfolio Design System & Styling
   Developer: Ismatjonov Bakhtovar
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Color Palette */
    --bg-dark: #090616;
    --bg-card: rgba(22, 17, 43, 0.7);
    --bg-card-hover: rgba(33, 26, 64, 0.85);
    --bg-elevated: #16112b;
    --bg-input: rgba(255, 255, 255, 0.05);

    --accent-red: #ff3b5c;
    --accent-red-glow: rgba(255, 59, 92, 0.35);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, #ff3b5c 0%, #9333ea 100%);
    --accent-gradient-text: linear-gradient(135deg, #ff5e78 0%, #a855f7 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 59, 92, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(255, 59, 92, 0.25);
    --shadow-purple-glow: 0 0 25px rgba(139, 92, 246, 0.25);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 59, 92, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.gradient-text {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Glass Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(9, 6, 22, 0.75);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    height: 70px;
    background: rgba(9, 6, 22, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo-dot {
    color: var(--accent-red);
}

.menu2 {
    display: flex;
    align-items: center;
}

.list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.list li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

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

.list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.list li a:hover::after,
.list li a.active::after {
    width: 100%;
}

/* Header Buttons */
.list li a.btn_contact::after {
    display: none !important;
}

.list li a.btn_contact {
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 59, 92, 0.5);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    padding: 6px 12px;
}

.btn_contact i {
    color: var(--accent-red);
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn_contact:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 59, 92, 0.55);
}

.btn_contact:hover i {
    color: #ffffff;
    transform: translate(3px, -3px) rotate(12deg);
}

.btn_contact:active {
    transform: translateY(-1px) scale(0.98);
}


/* Mobile Toggle */
#toggle, header label {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Section Common Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-subtitle {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--accent-red);
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    margin-bottom: 40px;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 59, 92, 0.1);
    border: 1px solid rgba(255, 59, 92, 0.25);
    border-radius: var(--radius-full);
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); }
}

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

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 36px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 59, 92, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(255, 59, 92, 0.05);
}

/* Avatar Frame */
.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--accent-gradient);
    padding: 6px;
    animation: morph 8s ease-in-out infinite;
    box-shadow: var(--shadow-glow);
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background: var(--bg-elevated);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-badge i {
    font-size: 1.8rem;
    color: var(--accent-red);
}

.badge-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-text strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ABOUT SECTION & INFO GRID */
.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.info-item:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    background: rgba(255, 59, 92, 0.04);
}

.info-item span {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: block;
}

.info-item strong {
    font-size: 1rem;
    color: var(--text-main);
}

/* Tech Stack Badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.tech-tag:hover {
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: var(--shadow-purple-glow);
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 59, 92, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 59, 92, 0.1);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--accent-red);
    font-size: 0.8rem;
}

.btn_more {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn_more:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* FAQ ACCORDION */
.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(255, 59, 92, 0.3);
}

.faq-header {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-header i {
    color: var(--accent-red);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding: 0 28px;
}

.faq-item.active .faq-content {
    display: block;
    padding: 0 28px 24px 28px;
}

.faq-content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.privacy-consent { display:flex; align-items:flex-start; gap:10px; margin:12px 0 18px; color:var(--text-muted); font-size:.82rem; line-height:1.5; }
.privacy-consent input { flex:0 0 18px; width:18px; height:18px; margin-top:2px; accent-color:var(--accent-red); }
.privacy-consent a, .legal-footer-links a { color:var(--accent-red); }
.legal-footer-links { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; font-size:.82rem; }

/* TEAM / COMPANIES SECTION */
.site_box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.site_box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple-glow);
}

.logo_text {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.site_box h4 a {
    color: var(--accent-red);
    font-size: 1.1rem;
    font-weight: 700;
}

.site_box p {
    margin: 16px 0 24px 0;
    font-size: 0.95rem;
}

.btn_wade {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn_wade:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple-glow);
}

/* PROJECTS / BLOG GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.box_froject {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.box_froject:hover {
    transform: translateY(-6px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.box_froject i {
    font-size: 2.2rem;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.box_froject h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.box_froject p {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-weight: 600;
}

/* CONTACT SECTION & FORM */
.contact-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-soft);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 59, 92, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff3b5c 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 59, 92, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 59, 92, 0.6);
    background: linear-gradient(135deg, #ff5e78 0%, #b866ff 100%);
}

.btn-submit:hover i {
    transform: translateX(4px) scale(1.1);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 59, 92, 0.4);
}


.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FOOTER */
footer {
    background: rgba(9, 6, 22, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

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

.btn_social {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.bg-footer {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.bg-footer:hover {
    border-color: rgba(255, 59, 92, 0.6);
    background: rgba(255, 59, 92, 0.12);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.35);
    transform: translateY(-4px) scale(1.05);
}


.bg-footer img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* TOAST NOTIFICATION */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--accent-red);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

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

.modal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--accent-red);
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.reveal.active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge, .hero-actions {
        justify-content: center;
    }
    .avatar-wrapper {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .btn_social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header label {
        display: block;
    }
    .menu2 {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(9, 6, 22, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
    }
    header.menu-open .menu2 {
        left: 0;
    }
    .list {
        flex-direction: column;
        gap: 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.4rem;
    }
}

/* =====================================================
   Modals & Auth Styling (Main CSS)
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.94) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-red);
}

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

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.15);
}

.btn-submit {
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 59, 92, 0.5);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(22, 17, 43, 0.95);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast.success {
    border-left: 4px solid #22c55e;
}

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

.toast.info {
    border-left: 4px solid #8b5cf6;
}
