/* Core variables & Reset */
:root {
    --bg-primary: #060608;
    --bg-secondary: #0c0c10;
    --red-primary: #ff003c;
    --red-secondary: #990022;
    --red-glow: rgba(255, 0, 60, 0.4);
    --red-glow-subtle: rgba(255, 0, 60, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a2a2ac;
    --text-muted: #62626e;
    --glass-bg: rgba(10, 10, 14, 0.75);
    --glass-border: rgba(255, 0, 60, 0.12);
    --glass-border-hover: rgba(255, 0, 60, 0.35);
    --font-title: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--red-secondary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
}

/* Background Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.045;
    z-index: 9999;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3e%3c/svg%3e");
}

/* Custom Mouse Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--red-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width var(--transition-fast), height var(--transition-fast), background-color var(--transition-fast);
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--red-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease-out, width var(--transition-fast), height var(--transition-fast), border-color var(--transition-fast);
}

.custom-cursor.hovered {
    width: 16px;
    height: 16px;
    background-color: var(--text-primary);
}

.custom-cursor-outline.hovered {
    width: 50px;
    height: 50px;
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Three.js Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Layout Grid and Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 60, 0.05);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(6, 6, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 0, 60, 0.05);
}

.logo {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -2.5px;
    color: var(--text-primary);
    text-transform: lowercase;
    line-height: 1;
}

.logo span {
    color: var(--red-primary);
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--red-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 4px;
    border: none;
    position: relative;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
    background-color: var(--red-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 15px var(--red-glow);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-glow:hover::after {
    opacity: 1;
}

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

.btn-secondary:hover {
    border-color: var(--red-primary);
    background-color: rgba(255, 0, 60, 0.05);
    transform: translateY(-2px);
}

.btn-arrow i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.btn-arrow:hover i {
    transform: translateY(3px);
}

/* Sections Structure */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.section {
    min-height: 100vh;
    width: 100%;
    padding: 140px 0 100px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-title);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 0.95;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--red-primary);
}

.section-title.text-center {
    text-align: center;
    margin-bottom: 80px;
}

/* Progress bar & indicators */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--red-primary);
}

.section-indicator {
    position: fixed;
    left: 50px;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
}

.sec-divider {
    width: 40px;
    height: 1.5px;
    background-color: var(--red-primary);
}

.active-sec-num {
    color: var(--red-primary);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-tagline .line {
    width: 30px;
    height: 1.5px;
    background-color: var(--red-primary);
}

.hero-tagline .tag-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--red-primary);
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(38px, 7vw, 90px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -2.5px;
    margin-bottom: 30px;
}

.text-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 45px;
    letter-spacing: 1px;
    max-width: 600px;
}

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

.hero-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.hero-social-link:hover {
    border-color: var(--red-primary);
    background-color: var(--red-primary);
    transform: translateY(-2px);
}

.scroll-prompt {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.scroll-mouse {
    width: 22px;
    height: 38px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--red-primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    writing-mode: vertical-lr;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ABOUT SECTION */
.about-text-content {
    max-width: 540px;
    width: 100%;
}

.summary-paragraph {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.body-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-card {
    border-left: 2px solid var(--red-primary);
    padding-left: 20px;
}

.stat-num {
    display: block;
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card-wrapper {
    position: relative;
    width: 100%;
}

.premium-card {
    position: relative;
    width: 100%;
    padding: 50px;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 0, 60, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.premium-card h3 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.focus-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.focus-list li i {
    font-size: 18px;
    margin-top: 3px;
}

.text-red {
    color: var(--red-primary);
}

/* SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    padding: 40px;
    height: 100%;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-icon {
    font-size: 28px;
    color: var(--red-primary);
}

.skill-category h3 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background-color: rgba(255, 0, 60, 0.08);
    border-color: var(--red-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* EXPERIENCE SECTION */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: var(--glass-border);
}

.timeline-item {
    padding: 40px 40px 40px 80px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 36px;
    top: 50px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--red-primary);
    box-shadow: 0 0 10px var(--red-glow);
}

.time-badge {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--red-primary);
    background-color: rgba(255, 0, 60, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--red-glow-subtle);
}

.role {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.company {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.timeline-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* CONTACT SECTION */
.contact-section {
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-section .container {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

.contact-centered-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-header {
    width: 100%;
    margin-bottom: 50px;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 50px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-card h4 {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.contact-card-icon {
    font-size: 22px;
    color: var(--red-primary);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 0, 60, 0.04);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-smooth);
}

.contact-card-value {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    font-weight: 500;
}

.contact-card:hover .contact-card-icon {
    background: var(--red-primary);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--red-glow);
    transform: scale(1.1);
}

.contact-form-container {
    width: 100%;
    max-width: 750px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.contact-form .form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-form .form-group input, 
.contact-form .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--glass-border);
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-smooth);
    resize: none;
}

.contact-form .form-group label {
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-smooth);
    text-transform: none;
    letter-spacing: 0;
}

.contact-form .form-group .input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--red-primary);
    transition: width var(--transition-smooth);
}

/* Floating label states */
.contact-form .form-group input:focus ~ label,
.contact-form .form-group input:not(:placeholder-shown) ~ label,
.contact-form .form-group textarea:focus ~ label,
.contact-form .form-group textarea:not(:placeholder-shown) ~ label {
    top: -14px;
    font-size: 11px;
    color: var(--red-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-form .form-group input:focus ~ .input-line,
.contact-form .form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-submit {
    align-self: flex-start;
    padding: 16px 36px;
    margin-top: 10px;
}

.form-submit i {
    margin-left: 10px;
    font-size: 12px;
}

/* Footer styling */
.footer {
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    background-color: var(--bg-primary);
    z-index: 10;
}

.footer-design {
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile Menu & Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Simple Mobile Nav Dropdown Styles (Nested in Header) */
.mobile-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1.5px solid var(--red-glow-subtle);
    display: none;
    flex-direction: column;
    padding: 20px 40px;
    gap: 15px;
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-10px);
    transition: transform var(--transition-fast) ease-out, opacity var(--transition-fast) ease-out;
    pointer-events: none;
}

.mobile-nav-dropdown.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-dropdown-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.mobile-nav-dropdown-link:hover {
    color: var(--red-primary);
}

/* Custom Scroll Reveals Pre-styles */
.reveal-item {
    opacity: 0;
    transform: translateY(50px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT AUDITS (TABLET & MOBILE)
   ========================================================================== */

/* 1. Tablet Landscapes & Laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-text-content, .about-card-wrapper {
        max-width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .section-indicator, .scroll-prompt {
        display: none;
    }
    
    .header {
        padding: 20px 30px;
    }
    
    /* Ensure absolute badge doesn't overlap text inside timeline on tablet views */
    .timeline-item {
        padding: 40px 40px 40px 60px;
    }
    
    .time-badge {
        position: relative;
        right: auto;
        top: auto;
        display: inline-block;
        margin-bottom: 20px;
    }
/* 2. Tablets Portrait & Smaller (992px) */
@media (max-width: 992px) {
    .section {
        min-height: auto;
        padding: 100px 0 60px 0;
    }
    
    .section-title {
        font-size: 46px;
        margin-bottom: 30px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding: 30px 20px 30px 50px;
    }
    
    .timeline-item::after {
        left: 16px;
        top: 36px;
    }

    .contact-cards-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* 3. Mobile Screens Portrait (768px & Under) */
@media (max-width: 768px) {
    .nav, .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .section-title {
        font-size: 36px;
        line-height: 1.05;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 30px 20px;
    }

    .contact-cards-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Shield text containers with glass panels on mobile to prevent 3D canvas overlap reading issues */
    .hero-container, 
    .about-text-content,
    .skills-section .container,
    .experience-section .container,
    .contact-centered-container {
        background: rgba(6, 6, 8, 0.82);
        padding: 30px 20px;
        border-radius: 12px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 0, 60, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Make sure the nested container shielding has no nested borders */
    .skills-section .container,
    .experience-section .container {
        padding: 30px 15px;
    }
    
    .premium-card {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 30px 20px;
    }
}

/* 4. Very Small Mobile Screens (480px & Under) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 34px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding-left: 15px;
    }
    
    .stat-num {
        font-size: 34px;
    }
    
    .timeline::before {
        display: none; /* remove line on tiny screens */
    }
    
    .timeline-item {
        padding: 20px;
        border-left: 2px solid var(--red-primary);
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .mobile-nav-dropdown {
        padding: 20px 20px;
    }
}

/* ==========================================================================
   PREMIUM TOAST ALERTS
   ========================================================================== */
.toast-card {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 22px 28px;
    min-width: 340px;
    max-width: 440px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(40px) scale(0.95) rotateX(-10deg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    perspective: 1000px;
}

.toast-card.show {
    transform: translateY(0) scale(1) rotateX(0deg);
    opacity: 1;
    pointer-events: auto;
}

.toast-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-card.show .toast-icon {
    transform: scale(1) rotate(360deg);
}

/* Success State Colors */
.toast-card.success {
    border: 1px solid rgba(40, 167, 69, 0.35);
    background: linear-gradient(135deg, rgba(10, 10, 14, 0.9) 0%, rgba(16, 28, 20, 0.9) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(40, 167, 69, 0.1);
}

.toast-card.success .toast-glow {
    background: radial-gradient(circle at 10% 20%, rgba(40, 167, 69, 0.1) 0%, transparent 60%);
}

.toast-card.success .toast-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 1px solid rgba(40, 167, 69, 0.5);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.toast-card.success h4 {
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

/* Error State Colors */
.toast-card.error {
    border: 1px solid rgba(255, 0, 60, 0.35);
    background: linear-gradient(135deg, rgba(10, 10, 14, 0.9) 0%, rgba(30, 8, 14, 0.9) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 60, 0.1);
}

.toast-card.error .toast-glow {
    background: radial-gradient(circle at 10% 20%, rgba(255, 0, 60, 0.1) 0%, transparent 60%);
}

.toast-card.error .toast-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #ff003c 0%, #990022 100%);
    border: 1px solid rgba(255, 0, 60, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.4);
}

.toast-card.error h4 {
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

.toast-text h4 {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.toast-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    border-radius: 0 0 12px 12px;
}

.toast-card.success .toast-progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.toast-card.error .toast-progress-bar {
    background: linear-gradient(90deg, #ff003c, #990022);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

@media (max-width: 480px) {
    .toast-card {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: calc(100vw - 40px);
    }
}
