/* ==========================================================================
   PREMIUM PORTFOLIO STYLESHEET
   Theme: Modern Dark Glassmorphism
   Author: Kasama
   ========================================================================== */

/* 1. Design System & Variables */
:root {
    /* Color Palette (Dark Mode - Default) */
    --color-bg-darkest: #07070a;
    --color-bg-darker: #0d0d15;
    --color-bg-card: rgba(20, 20, 35, 0.45);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(147, 51, 234, 0.35);
    
    /* Accents & Gradients */
    --color-accent-primary: #a855f7;     /* Vibrant Violet */
    --color-accent-secondary: #06b6d4;   /* Cyan */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    --grad-primary: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    --grad-text: linear-gradient(to right, #e9d5ff, #a855f7, #06b6d4);
    
    /* Theme-specific Component Backgrounds */
    --color-nav-bg: rgba(7, 7, 10, 0.7);
    --color-nav-bg-scrolled: rgba(7, 7, 10, 0.85);
    --color-mobile-menu-bg: rgba(13, 13, 21, 0.95);
    --color-btn-sec-bg: rgba(255, 255, 255, 0.05);
    --color-btn-sec-hover: rgba(255, 255, 255, 0.1);
    --color-input-bg: rgba(7, 7, 10, 0.5);
    --color-input-focus-bg: rgba(7, 7, 10, 0.7);
    --color-card-bg-custom: rgba(20, 20, 35, 0.25);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.15);
    
    /* Fonts & Transitions */
    --font-heading: 'Outfit', 'Sarabun', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Sarabun', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50%;
}

/* Light Theme Variables */
[data-theme="light"] {
    --color-bg-darkest: #f8fafc;
    --color-bg-darker: #f1f5f9;
    --color-bg-card: rgba(255, 255, 255, 0.75);
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-hover: rgba(147, 51, 234, 0.45);
    
    --color-accent-primary: #9333ea;
    --color-accent-secondary: #0891b2;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    
    --grad-text: linear-gradient(to right, #6b21a8, #9333ea, #0891b2);
    
    --color-nav-bg: rgba(248, 250, 252, 0.8);
    --color-nav-bg-scrolled: rgba(248, 250, 252, 0.95);
    --color-mobile-menu-bg: rgba(241, 245, 249, 0.98);
    --color-btn-sec-bg: rgba(15, 23, 42, 0.05);
    --color-btn-sec-hover: rgba(15, 23, 42, 0.1);
    --color-input-bg: rgba(255, 255, 255, 0.85);
    --color-input-focus-bg: rgba(255, 255, 255, 1);
    --color-card-bg-custom: rgba(255, 255, 255, 0.6);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(147, 51, 234, 0.08);
    --shadow-glow-cyan: 0 0 30px rgba(8, 91, 178, 0.08);
}

/* 2. Global Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-darkest);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

button, input, textarea {
    font-family: inherit;
    color: inherit;
    outline: none;
    border: none;
}

/* Selection Highlight */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: var(--color-text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.45);
}

/* 3. Ambient Background Glows */
.glow-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: var(--radius-round);
    filter: blur(140px);
    opacity: 0.2;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-primary);
    top: -100px;
    right: -100px;
    animation: pulseGlow 12s infinite alternate;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: var(--color-accent-secondary);
    top: 600px;
    left: -150px;
    animation: pulseGlow 15s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
    100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.25; }
}

/* 4. Utilities */
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--color-bg-darkest);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-secondary);
    transform: translateY(-3px);
}

.text-orange { color: #f97316; }
.text-yellow { color: #eab308; }
.text-blue { color: #3b82f6; }
.text-cyan { color: #06b6d4; }
.text-green { color: #22c55e; }
.text-indigo { color: #6366f1; }
.text-red { color: #ef4444; }

/* 5. Sticky Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(7, 7, 10, 0.85);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
}

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

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

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

.nav-cta {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--grad-primary);
    color: var(--color-bg-darkest);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Hamburger toggle styling */
.hamburger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* 6. Section Styles General */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-accent-secondary);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
}

/* 7. Hero Section (Mobile-First) */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 120px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-direction: column-reverse; /* Stack image on top for mobile */
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--color-accent-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

/* Profile Image Glowing Card */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-card {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: var(--radius-round);
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    padding: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(6, 182, 212, 0.5));
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-round);
    background: var(--color-bg-darker);
}

.profile-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--radius-round);
    filter: blur(24px);
    z-index: 1;
    opacity: 0.6;
    animation: floatGlow 6s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: scale(0.9) translateY(0); opacity: 0.5; }
    100% { transform: scale(1.05) translateY(-10px); opacity: 0.8; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Hide on small mobiles to save space */
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-accent-primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* 8. About Me Section */
.about-section {
    background: var(--color-bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.about-bio h3, .about-skills h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-bio p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
}

.info-item i {
    font-size: 1.25rem;
    color: var(--color-accent-secondary);
}

/* Glassmorphic Bio Card */
.bio-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    text-align: left;
}

.bio-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.bio-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.bio-subtitle i {
    color: var(--color-accent-secondary);
    font-size: 1.3rem;
}

.personal-info-grid-custom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.info-item-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

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

.info-label {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.info-value {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.info-value a {
    color: var(--color-accent-secondary);
    transition: var(--transition-fast);
}

.info-value a:hover {
    color: var(--color-accent-primary);
    text-decoration: underline;
}

/* Education Timeline */
.education-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.edu-item {
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-round);
    background: var(--color-bg-darker);
    border: 2px solid var(--color-text-muted);
    transition: var(--transition-fast);
}

.edu-item.active::before {
    background: var(--color-accent-secondary);
    border-color: var(--color-accent-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.edu-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-secondary);
    margin-bottom: 6px;
}

.edu-item.active .edu-year {
    color: var(--color-accent-primary);
}

.edu-title {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.edu-details {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Custom Skills List */
.custom-skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.custom-skills-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.custom-skills-list li i {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* 9. Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.project-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #141423;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-img-wrapper:hover .project-overlay {
    opacity: 1;
}

.project-overlay-link {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    background: var(--color-text-primary);
    color: var(--color-bg-darkest);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-img-wrapper:hover .project-overlay-link {
    transform: translateY(0);
}

.project-overlay-link:hover {
    background: var(--color-accent-secondary);
    color: var(--color-bg-darkest);
    transform: scale(1.1);
}

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

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

.p-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.p-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.github-link {
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.github-link:hover {
    color: var(--color-text-primary);
}

.demo-link {
    color: var(--color-accent-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-link:hover {
    color: var(--color-accent-secondary);
}

/* 10. Contact Section */
.contact-section {
    background: var(--color-bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.contact-info h3, .contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.channel-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.channel-card:hover {
    transform: translateX(6px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-accent-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.channel-card:hover .channel-icon {
    background: var(--grad-primary);
    color: var(--color-bg-darkest);
}

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.channel-value {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(20, 20, 35, 0.25);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-group .required {
    color: var(--color-accent-primary);
}

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

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    background: rgba(7, 7, 10, 0.5);
    border: 1px solid var(--color-border);
    padding: 14px 16px 14px 44px;
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.input-wrapper textarea {
    padding-top: 14px;
    resize: vertical;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--color-accent-primary);
    background: rgba(7, 7, 10, 0.7);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.textarea-icon {
    top: 24px;
}

.btn-submit {
    justify-content: center;
    font-size: 1.05rem;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Success status popup style */
.form-status {
    padding: 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    animation: fadeIn 0.4s ease forwards;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4ade80;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 11. Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand .footer-logo .accent-dot {
    color: var(--color-accent-secondary);
}

.footer-brand p {
    color: var(--color-text-secondary);
    max-width: 400px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
}

.footer-bottom {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom i {
    animation: heartbeat 1.5s infinite alternate;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* ==========================================================================
   12. MEDIA QUERIES (FLAWLESS RESPONSIVENESS)
   ========================================================================== */

/* Medium Devices (Tablets, 768px and up) */
@screen-md {
    /* (Calculated implicitly below) */
}

@media (min-width: 768px) {
    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        flex-direction: row;
        width: auto;
    }
    
    /* Grid adjustments */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .personal-info-grid-custom {
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 60px;
    }
}

/* Large Devices (Desktops, 1024px and up) */
@media (min-width: 1024px) {
    /* Hero */
    .hero-section {
        padding-top: 0;
    }
    
    .hero-container {
        flex-direction: row;
        text-align: left;
        gap: 80px;
    }
    
    .hero-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .profile-card {
        width: 380px;
        height: 380px;
    }
    
    .scroll-indicator {
        display: block;
    }
    
    /* Navbar height */
    .nav-container {
        padding: 24px;
    }
    
    /* Projects Grid 3 Columns */
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* MOBILE RESPONSIVE NAVIGATION (Hamburger Menu Toggle logic) */
@media (max-width: 767px) {
    .hamburger-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 13, 21, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    /* Hamburger Active Animations */
    .hamburger-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
