@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;550;700;800&family=Sora:wght@300;400;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --bg-dark: #0b0c10;
    --bg-card: rgba(25, 28, 36, 0.45);
    --bg-card-hover: rgba(40, 45, 58, 0.6);
    --primary: #b5ff00;
    --primary-glow: rgba(181, 255, 0, 0.3);
    --primary-glow-weak: rgba(181, 255, 0, 0.05);
    --text-white: #ffffff;
    --text-muted: #9fa6b2;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(181, 255, 0, 0.2);
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background blob animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(11, 12, 16, 0) 70%);
    opacity: 0.5;
    filter: blur(80px);
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(0, 168, 204, 0.25) 0%, rgba(11, 12, 16, 0) 70%);
    animation-delay: 5s;
    width: 600px;
    height: 600px;
}

.blob-3 {
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(181, 255, 0, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    animation-delay: 10s;
    width: 400px;
    height: 400px;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -80px) scale(0.95);
    }
}

/* Background grid overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(11, 12, 16, 0.7);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    font-weight: 550;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--text-white);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition);
}

/* --- PREMIUM UI COMPONENTS --- */

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 45px -10px rgba(181, 255, 0, 0.08);
}

/* Lime Highlight Title */
.highlight-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.highlight-title span {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(181, 255, 0, 0.2);
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 5px 20px var(--primary-glow);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(181, 255, 0, 0.5);
    background-color: #c4ff33;
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(181, 255, 0, 0.1);
}

/* Tags / Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(181, 255, 0, 0.08);
    color: var(--primary);
    border: 1px solid rgba(181, 255, 0, 0.15);
}

/* --- MAIN CONTAINER --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
    min-height: calc(100vh - 80px);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(11, 12, 16, 0.9);
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* --- PAGE SPECIFIC STYLES --- */

/* 1. HOME PAGE */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 5rem;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(181, 255, 0, 0.2);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-card {
    position: relative;
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 28, 36, 0.8) 0%, rgba(15, 17, 21, 0.5) 100%);
    border: 1px solid var(--border-glass-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    max-width: 380px;
    width: 100%;
}

.hero-logo-card::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 30px;
    border: 1px dashed rgba(181, 255, 0, 0.15);
    z-index: -1;
    animation: rotateDashed 40s linear infinite;
}

.hero-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(181, 255, 0, 0.2));
    transition: var(--transition);
}

.hero-logo-card:hover .hero-logo-img {
    transform: rotate(3deg) scale(1.05);
}

.hero-logo-name {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 800;
    margin-top: 0.5rem;
    color: var(--text-white);
}

.hero-logo-tag {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
    font-weight: 600;
}

/* Quick Features Home Page */
.home-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.highlight-card {
    text-align: center;
    padding: 2.2rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 45px -10px rgba(181, 255, 0, 0.08);
}

.highlight-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(181, 255, 0, 0.3));
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pitch Banner */
.pitch-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 5rem;
}

.pitch-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(181, 255, 0, 0.08) 0%, rgba(11, 12, 16, 0.8) 100%);
    z-index: 1;
}

.pitch-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pitch-content h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.pitch-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Canvas Particle Backdrop */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
}

/* 2. ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro-card {
    position: sticky;
    top: 120px;
}

.profile-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-circle-border {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    animation: rotateDashed 25s linear infinite;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f232b 0%, #0d0f12 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border-glass-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 10px rgba(181, 255, 0, 0.3);
}

.about-intro-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.about-intro-card .role-title {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.about-meta-list {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.about-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.about-meta-item .label {
    color: var(--text-muted);
}

.about-meta-item .val {
    font-weight: 600;
}

/* Timeline */
.story-timeline {
    position: relative;
    padding-left: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 7px;
    width: 2px;
    height: 98%;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.3rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
    z-index: 2;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(181, 255, 0, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.timeline-card {
    background: rgba(25, 28, 36, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.8rem;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: rgba(181, 255, 0, 0.15);
    background: rgba(25, 28, 36, 0.35);
    transform: translateX(5px);
}

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills Section */
.skills-wrapper {
    margin-top: 4rem;
}

.skills-category {
    margin-bottom: 3rem;
}

.skills-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.8rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
}

.skill-pill {
    background: rgba(25, 28, 36, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.skill-pill:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 20px -10px var(--primary-glow);
    background: rgba(40, 45, 58, 0.5);
}

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

.skill-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* 3. PROJECTS PAGE */
.projects-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.projects-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Project Filters */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(25, 28, 36, 0.45);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 550;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    color: var(--bg-dark);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-thumbnail {
    height: 180px;
    background: linear-gradient(135deg, rgba(181, 255, 0, 0.05) 0%, rgba(25, 28, 36, 0.8) 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-thumbnail::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 255, 0, 0.1) 0%, transparent 60%);
    animation: rotateDashed 20s linear infinite;
}

.project-thumbnail-icon {
    font-size: 3.5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px rgba(181, 255, 0, 0.3);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.project-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

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

.project-link:hover {
    text-decoration: underline;
}

/* 5. CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-card-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-card-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.channel-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(25, 28, 36, 0.3);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.channel-card:hover {
    border-color: rgba(181, 255, 0, 0.2);
    background: rgba(25, 28, 36, 0.55);
    transform: translateY(-2px);
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(181, 255, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid rgba(181, 255, 0, 0.15);
}

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

.channel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.channel-value {
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-all;
}

.channel-value a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-card {
    position: relative;
    overflow: hidden;
}

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

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

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(181, 255, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Float Label effect */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.65rem;
    left: 0.8rem;
    font-size: 0.75rem;
    padding: 0 0.4rem;
    color: var(--primary);
    background: #191c24;
    border-radius: 4px;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-status {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}

.form-status.success {
    display: block;
    color: var(--primary);
}

.form-status.error {
    display: block;
    color: #ff4a4a;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes rotateDashed {
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

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

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-subtitle::before {
        display: none;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-intro-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0.8rem 1.5rem;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(20px);
        z-index: 99;
        transition: 0.4s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid var(--border-glass);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-bottom: 4rem;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

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

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-title {
        font-size: 2.8rem;
    }

    .home-highlights {
        grid-template-columns: 1fr;
    }

    .pitch-content {
        padding: 2.5rem 1.5rem;
    }

    .pitch-content h2 {
        font-size: 1.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}
