/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-card: #1a1f35;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Cursor Follower ===== */
.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    opacity: 0;
}

.cursor-follower.active {
    opacity: 1;
}

.cursor-follower.hover {
    transform: scale(1.5);
    background: rgba(99, 102, 241, 0.1);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 40px;
    background: rgba(15, 23, 42, 0.95);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

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

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

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

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    padding: 12px 28px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 40px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float1 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: float2 18s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(-180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.name-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.name-line:first-child {
    animation-delay: 0.2s;
}

.name-line:last-child {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.hero-roles {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.role-text {
    color: var(--accent);
}

.cursor {
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

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

/* ===== Orbital Atom Animation ===== */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atom-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glowing Core */
.atom-core {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0.4) 50%, transparent 70%);
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.6),
        0 0 100px rgba(99, 102, 241, 0.4),
        0 0 140px rgba(99, 102, 241, 0.2);
    animation: corePulse 3s ease-in-out infinite;
}

.core-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(99, 102, 241, 1) 60%, transparent 100%);
    animation: coreInnerPulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes coreInnerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.9); }
}

/* Orbital Rings */
.orbit {
    position: absolute;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: orbitRotate linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 8s;
    transform: rotateX(70deg) rotateY(20deg);
}

.orbit-2 {
    width: 240px;
    height: 240px;
    animation-duration: 12s;
    animation-direction: reverse;
    transform: rotateX(60deg) rotateY(-40deg);
}

.orbit-3 {
    width: 280px;
    height: 280px;
    animation-duration: 16s;
    transform: rotateX(50deg) rotateY(60deg);
}

@keyframes orbitRotate {
    0% { transform: rotateX(70deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateY(360deg) rotateZ(360deg); }
}

/* Electrons */
.electron {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0.6) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.4);
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    animation: electronGlow 1.5s ease-in-out infinite;
}

@keyframes electronGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 1), 0 0 60px rgba(16, 185, 129, 0.6); }
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    animation: particleFloat linear infinite;
}

.particle-1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    animation-duration: 6s;
}

.particle-2 {
    width: 4px;
    height: 4px;
    top: 70%;
    left: 20%;
    animation-duration: 8s;
    animation-delay: -2s;
}

.particle-3 {
    width: 5px;
    height: 5px;
    top: 30%;
    right: 15%;
    animation-duration: 7s;
    animation-delay: -1s;
}

.particle-4 {
    width: 3px;
    height: 3px;
    top: 80%;
    right: 25%;
    animation-duration: 9s;
    animation-delay: -3s;
}

.particle-5 {
    width: 5px;
    height: 5px;
    top: 10%;
    right: 30%;
    animation-duration: 5s;
    animation-delay: -4s;
}

.particle-6 {
    width: 4px;
    height: 4px;
    bottom: 15%;
    left: 35%;
    animation-duration: 10s;
    animation-delay: -5s;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) scale(1.2); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) scale(0.8); 
        opacity: 0.8;
    }
    75% { 
        transform: translateY(15px) translateX(5px) scale(1.1); 
        opacity: 1;
    }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

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

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    inset: 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    z-index: 1;
    transform: translate(20px, 20px);
}

.about-text {
    padding: 20px 0;
}

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
}

.about-intro strong {
    color: var(--primary-light);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.skills-container {
    margin-top: 40px;
}

.skills-container h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Work Section (3D) ===== */
.work-section {
    background: var(--dark);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.work-card {
    display: block;
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .card-image img {
    transform: scale(1.1);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.view-project {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

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

.artstation-link {
    text-align: center;
}

/* ===== Projects Section (Web) ===== */
.projects-section {
    background: linear-gradient(180deg, var(--dark-lighter) 0%, var(--dark) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.1);
    z-index: 1;
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

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

.placeholder-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.coming-soon {
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

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

.tag {
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding: 40px;
    background: var(--dark-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
}

.contact-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link.linkedin svg {
    color: #0077b5;
}

.social-link.artstation svg {
    color: #13aff0;
}

/* ===== Contact Form ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: var(--dark);
    padding: 0 8px;
    color: var(--primary-light);
}

.btn-submit {
    width: fit-content;
    gap: 12px;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-submit:hover svg {
    transform: translate(5px, -5px);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--dark-lighter);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* ===== Mobile Menu ===== */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-roles {
        font-size: 1.2rem;
    }
    
    .cube-container {
        width: 180px;
        height: 180px;
    }
    
    .cube-face {
        width: 180px;
        height: 180px;
    }
    
    .cube-face.front  { transform: rotateY(0deg) translateZ(90px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(90px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(90px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(90px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(90px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(90px); }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 80px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}
