/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-tertiary: #1b2640;
    --glass-bg: rgba(19, 27, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);

    /* Tech Logos Brand Colors */
    --color-html: #ff6b35;
    --color-js: #ffd166;
    --color-react: #06d6a0;
    --color-python: #4cc9f0;
    --color-vscode: #7209b7;
    --color-word: #118ab2;
    --color-excel: #073b4c;
    
    /* Details */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    --box-shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --box-shadow-glow: 0 0 25px rgba(99, 102, 241, 0.4);
    
    /* Layout */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #4f46e5;
    --accent-secondary: #9333ea;
    --accent-glow: rgba(79, 70, 229, 0.08);
    
    --gradient-text: linear-gradient(90deg, #4f46e5 0%, #9333ea 100%);
    --box-shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    --box-shadow-glow: 0 0 20px rgba(79, 70, 229, 0.2);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   SCROLLBAR & PROGRESS BAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border: 2px solid var(--bg-primary);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   REUSABLE COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

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

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

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--border-radius-full);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

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

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--box-shadow-premium);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-symbol {
    color: var(--accent-primary);
    font-family: monospace;
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-full);
}

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

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

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

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

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

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
}

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

/* Hero Visual & Avatar Wrapper */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: var(--gradient-glow);
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
}

.avatar-border {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-full);
    padding: 6px;
    background: var(--gradient-primary);
    box-shadow: var(--box-shadow-premium);
    z-index: 2;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-full);
    background-color: var(--bg-secondary);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-wrapper:hover .avatar-image {
    transform: scale(1.05);
}

/* Decorative elements */
.decor-circle {
    position: absolute;
    border-radius: var(--border-radius-full);
    z-index: 3;
    animation: floating 6s ease-in-out infinite alternate;
}

.circle-1 {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    bottom: 10%;
    left: -5%;
}

.circle-2 {
    width: 20px;
    height: 20px;
    background: var(--accent-secondary);
    top: 15%;
    right: -2%;
    animation-delay: 2s;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(15deg); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.about-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.info-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.info-card-details h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-card-details p {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Glass Stat Card */
.about-stats-content {
    display: flex;
    justify-content: center;
}

.stats-glass-card {
    width: 100%;
    max-width: 360px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--box-shadow-premium);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-divider {
    height: 1px;
    background: var(--glass-border);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.skills-category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow-premium);
    transition: var(--transition-smooth);
}

.skills-category-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.4);
}

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

.category-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.category-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-name i {
    font-size: 1.1rem;
}

.skill-pct {
    color: var(--accent-primary);
    font-size: 0.85rem;
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
}

.skill-bar-outer {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.skill-bar-inner {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    width: 0%; /* Populated by JS / CSS inline */
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Colors for specific skills */
.text-orange { color: var(--color-html); }
.text-yellow { color: var(--color-js); }
.text-blue { color: var(--accent-primary); }
.text-green { color: var(--color-python); }
.text-purple { color: var(--color-vscode); }
.text-navy { color: var(--color-word); }
.text-darkgreen { color: #217346; }

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: var(--border-radius-full);
    background: var(--bg-primary);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--box-shadow-premium);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    gap: 40px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-premium);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0) 100%);
    display: flex;
    align-items: flex-end;
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(99, 102, 241, 0.85);
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    backdrop-filter: blur(4px);
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.project-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--accent-primary);
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-premium);
}

.contact-info-block {
    padding: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-detail-item i {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-detail-item div {
    display: flex;
    flex-direction: column;
}

.contact-detail-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.contact-detail-item a {
    font-size: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-form-block {
    padding: 60px;
}

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

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

.form-group {
    position: relative;
    width: 100%;
}

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

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Floating Label Animation using focus and placeholder-shown */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background-color: var(--bg-secondary);
    padding: 0 6px;
    font-weight: 700;
}

.form-submit-btn {
    align-self: flex-start;
    padding: 14px 32px;
    font-family: inherit;
}

.form-feedback {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-feedback.success {
    background: rgba(6, 214, 160, 0.1);
    color: #06d6a0;
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   ANIMATIONS & SCROLL BEHAVIOR
   ========================================================================== */
/* Reveal animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        gap: 32px;
    }
    
    .avatar-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-block {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 40px;
    }
    
    .contact-form-block {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-badge {
        margin: 0 auto 20px auto;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hero-visual {
        order: -1; /* Place image on top on mobile */
    }
    
    .avatar-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        transition: var(--transition-smooth);
        padding: 40px 24px;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    /* Hamburger Active Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .skills-category-card {
        padding: 24px 20px;
    }
    
    .timeline-container {
        padding-left: 24px;
    }
    
    .timeline-container::before {
        left: 4px;
    }
    
    .timeline-dot {
        left: -24px;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
    
    .timeline-content {
        padding: 24px 20px;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-image-wrapper {
        min-height: 220px;
    }
    
    .project-info {
        padding: 28px 20px;
    }
    
    .contact-info-block {
        padding: 32px 20px;
    }
    
    .contact-form-block {
        padding: 32px 20px;
    }
    
    .contact-form {
        gap: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   EXTRA NARROW MOBILE QUERY (MAX 365PX)
   ========================================================================== */
@media (max-width: 365px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .avatar-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .stats-glass-card {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .contact-info-block, 
    .contact-form-block,
    .skills-category-card,
    .timeline-content,
    .project-info {
        padding: 20px 12px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

