/* ==========================================================================
   DESIGN SYSTEM & CONSTANTS (CSS Custom Properties)
   ========================================================================== */
:root {
    /* Color Palette - Aemeath Theme Dark Mode Default */
    --bg-primary: #050611;
    --bg-secondary: #0c0e22;
    --bg-tertiary: #141733;
    --bg-glass: rgba(12, 14, 34, 0.82);
    --border-glass: rgba(255, 117, 143, 0.15); /* Soft pink border */
    --shadow-glass: rgba(0, 0, 0, 0.6);
    
    --text-primary: #f1f3f9;
    --text-secondary: #a5b4fc; /* Indigo secondary */
    --text-muted: #6b7280;
    
    --primary: #ff758f; /* Aemeath Pink */
    --primary-glow: rgba(255, 117, 143, 0.28);
    --secondary: #818cf8; /* Light Indigo */
    --secondary-glow: rgba(129, 140, 248, 0.15);
    --accent: #f59e0b; /* Golden stars */
    
    --gradient-primary: linear-gradient(135deg, #ff758f 0%, #4f46e5 100%);
    --gradient-text: linear-gradient(135deg, #ffa6c9 0%, #818cf8 100%);
    --gradient-bg: radial-gradient(circle at 50% 0%, #1e1136 0%, #050611 75%);

    /* Layout & Spacing */
    --container-max-width: 1200px;
    --nav-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions & Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Override - Aemeath Pastel mode */
[data-theme="light"] {
    --bg-primary: #f0f2fe;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e0e4fc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 117, 143, 0.2);
    --shadow-glass: rgba(15, 23, 42, 0.08);
    
    --text-primary: #1e1b4b;
    --text-secondary: #4f46e5;
    --text-muted: #9ca3af;
    
    --primary: #e11d48; /* Hot Rose */
    --primary-glow: rgba(225, 29, 72, 0.18);
    --secondary: #312e81;
    --secondary-glow: rgba(49, 46, 129, 0.12);
    
    --gradient-primary: linear-gradient(135deg, #e11d48 0%, #4f46e5 100%);
    --gradient-text: linear-gradient(135deg, #be123c 0%, #312e81 100%);
    --gradient-bg: radial-gradient(circle at 50% 0%, #fce7f3 0%, #f0f2fe 80%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

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

/* Custom Cursor (Hidden on touch devices) */
@media (hover: hover) {
    .custom-cursor {
        width: 8px;
        height: 8px;
        background-color: var(--primary);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: width 0.1s, height 0.1s, background-color var(--transition-fast);
    }
    
    .custom-cursor-glow {
        width: 40px;
        height: 40px;
        border: 2px solid var(--secondary);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.1s ease-out, width 0.2s, height 0.2s, border-color var(--transition-fast);
    }
    
    /* Cursor Hover States */
    .custom-cursor.active {
        width: 16px;
        height: 16px;
        background-color: var(--secondary);
    }
    .custom-cursor-glow.active {
        width: 60px;
        height: 60px;
        border-color: var(--primary);
        background-color: rgba(139, 92, 246, 0.05);
    }
}

@media (hover: none) {
    .custom-cursor, .custom-cursor-glow {
        display: none;
    }
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: var(--container-max-width);
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

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

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-glow);
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    border: 1.5px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

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

.btn-block {
    width: 100%;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color var(--transition-normal), border-color var(--transition-normal), height var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: 70px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-color: var(--border-glass);
    box-shadow: 0 4px 30px var(--shadow-glass);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-logo span:last-child {
    color: var(--secondary);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

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

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

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

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

/* Nav Actions - Theme Toggle & Hamburger */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition-normal);
}

/* Sun/Moon Display depending on active theme */
[data-theme="dark"] .sun-icon {
    transform: translateY(40px) rotate(180deg);
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

[data-theme="light"] .sun-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

[data-theme="light"] .moon-icon {
    transform: translateY(-40px) rotate(-180deg);
    opacity: 0;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

/* Hamburger Active Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    box-shadow: 0 10px 30px var(--shadow-glass);
}

.mobile-menu.active {
    max-height: 350px;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
}

.mobile-link.active, .mobile-link:hover {
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 3rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/aemeath_wings.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.12;
    z-index: -2;
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 117, 143, 0.22) 0%, rgba(129, 140, 248, 0.08) 50%, rgba(0,0,0,0) 100%);
    filter: blur(80px);
    z-index: -1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

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

.typewriter-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor-blink {
    color: var(--secondary);
    animation: blink 0.8s infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Hero Visual Profile Card */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-card-wrapper {
    position: relative;
    z-index: 1;
}

.profile-card-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.45;
    transition: opacity var(--transition-normal);
}

.profile-card-wrapper:hover::after {
    opacity: 0.75;
}

.profile-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 1.8rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px var(--shadow-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 320px;
    transition: transform var(--transition-normal);
}

.profile-card-wrapper:hover .profile-card {
    transform: translateY(-5px);
}

.profile-image-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3.5px solid var(--bg-primary);
    box-shadow: 0 0 25px var(--primary-glow);
    margin-bottom: 1.5rem;
    background-color: var(--bg-secondary);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-details h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.profile-card-details p {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.profile-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: block;
    position: relative;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.mouse:hover {
    opacity: 1;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    30% { top: 15px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

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

.about-visual {
    width: 100%;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-glass);
    box-shadow: 0 12px 40px var(--shadow-glass);
    aspect-ratio: 16/10;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 14, 34, 0) 60%, rgba(12, 14, 34, 0.45) 100%);
    pointer-events: none;
}

.about-img-deco {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-img-deco {
    transform: scale(1.04) rotate(0.5deg);
}

.about-text-content {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

.about-para {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

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

.stat-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.skills-category-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    width: 100%;
    max-width: 500px;
}

.skills-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px var(--shadow-glass);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.category-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-info span:first-child {
    color: var(--text-secondary);
}

.skill-info span:last-child {
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.1, 1, 0.1, 1);
}

/* When the parent is active after revealing */
.skills-category-card.revealed .progress {
    transform: scaleX(1);
}

/* Skill Tags Cloud */
.skill-tags-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tags-cloud .skill-tag {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.skill-tags-cloud .skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background-color: var(--primary-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 500px;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow-glass);
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 10, 15, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.project-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

.project-details {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag-mini {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
}

.project-links {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.project-link-btn svg {
    transition: transform var(--transition-fast);
}

.project-link-btn:hover {
    color: var(--secondary);
}

.project-link-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/aemeath_sky.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.contact-card:hover {
    transform: translateX(5px);
    border-color: var(--secondary);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-tertiary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-info span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card-link:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px var(--shadow-glass);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group input, .form-group textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 0.9rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background-color: var(--bg-secondary);
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 20px;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: var(--accent);
}

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

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background-color: var(--primary-glow);
    transform: translateY(-2px);
}

.back-to-top {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.back-to-top:hover {
    color: var(--text-primary);
    border-color: var(--secondary);
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer API)
   ========================================================================== */
.reveal-fade-up, .reveal-fade-left, .reveal-fade-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-fade-up {
    transform: translateY(40px);
}

.reveal-fade-left {
    transform: translateX(-40px);
}

.reveal-fade-right {
    transform: translateX(40px);
}

.reveal-fade-up.revealed, .reveal-fade-left.revealed, .reveal-fade-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (Mobile-First)
   ========================================================================== */

/* Max Width 1024px (Large Tablet / Notebook) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .about-grid, .contact-grid {
        gap: 3rem;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Max Width 768px (Tablet Screen / Hamburger Nav activates) */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1; /* Place avatar at the top on mobile */
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-info-cards {
        order: 1;
    }
    
    .about-text-content {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .contact-info-wrapper {
        order: 1;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Max Width 480px (Mobile Screen) */
@media (max-width: 480px) {
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.45rem;
    }
    
    .btn {
        width: 100%; /* Force buttons block on mobile */
    }
    
    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .profile-card {
        width: 100%;
        max-width: 290px;
    }
    
    .profile-image-container {
        width: 150px;
        height: 150px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
