/* ============================================
   PORTOFOLIO - VALDIS BESTARI IRAWAN
   Style: 2018 Web Design (Soft, Vibrant, Blob, Glass)
   ============================================ */

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

:root {
    /* Primary Palette - School Vibe */
    --primary: #1E88E5;     /* Pen Blue */
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --primary-glow: rgba(30, 136, 229, 0.3);

    /* Accent */
    --accent: #FFEB3B;      /* Highlighter Yellow */
    --accent-dark: #FBC02D;
    --accent-glow: rgba(255, 235, 59, 0.4);

    /* Neutrals - Paper Light */
    --bg-dark: #FDFBF7;     /* Off-white paper */
    --bg-section: transparent;  /* Transparent to show paper */
    --bg-card: #FFFFFF;
    --text-primary: #333333; /* Dark pencil/ink */
    --text-secondary: #5A5D7A; 
    --text-muted: #9E9E9E;

    --card-shadow: 2px 4px 10px rgba(0,0,0,0.08); /* Paper shadow */
    --hover-shadow: 4px 8px 20px rgba(0,0,0,0.12);
    --border-color: rgba(30, 136, 229, 0.2);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 8px; /* Slightly squarer for paper */
    --radius-lg: 16px;
    --radius-sm: 4px;
    --paper-pattern: linear-gradient(rgba(30, 136, 229, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 136, 229, 0.1) 1px, transparent 1px);
}

body.dark-mode {
    --bg-dark: #2B3A32;     /* Chalkboard green */
    --bg-section: transparent;
    --bg-card: #33443B;
    --text-primary: #F5F5F5; /* Chalk white */
    --text-secondary: #D0D0D0;
    --text-muted: #A0A4B8;
    --card-shadow: 3px 5px 15px rgba(0, 0, 0, 0.2);
    --hover-shadow: 5px 10px 25px rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --paper-pattern: none; /* No grid on chalkboard */
}

body.dark-mode .navbar.scrolled {
    background: rgba(36, 49, 42, 0.85);
}

body.dark-mode .btn-outline,
body.dark-mode .social-link,
body.dark-mode .profile-photo,
body.dark-mode .project-link,
body.dark-mode .contact-social-card,
body.dark-mode .lang-toggle {
    background: var(--bg-card);
}

body.dark-mode .footer {
    background: var(--bg-dark);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--paper-pattern);
    background-size: 24px 24px;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo-bracket {
    color: var(--accent);
    font-weight: 900;
}

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

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

.nav-link {
    padding: 8px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(122, 137, 254, 0.08);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 50px;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.lang-toggle i {
    font-size: 0.9rem;
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 137, 254, 0.2);
    background: var(--primary);
    color: #fff;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.theme-toggle i {
    font-size: 1rem;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    background: var(--primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== HERO SECTION (Soft 2018 Blobs) ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Soft Organic Blob Shapes typical of late 2018 */
.shape {
    position: absolute;
    filter: blur(40px);
    opacity: 0.6;
    border-radius: 50%;
}

.shape-1 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    top: -100px;
    right: -50px;
    animation: floatBlob 12s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #90E0EF, var(--accent));
    bottom: -50px;
    left: -100px;
    animation: floatBlob 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #00BBF9, var(--primary));
    top: 30%;
    left: 20%;
    animation: floatBlob 10s ease-in-out infinite;
    opacity: 0.3;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 20%;
    right: 25%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: floatBlob 18s linear infinite;
    filter: blur(20px);
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    bottom: 20%;
    right: 15%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: floatBlob 14s linear infinite reverse;
    filter: blur(30px);
}

@keyframes floatBlob {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-40px) scale(1.1) rotate(10deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0;
    animation: slideUp 0.6s ease forwards 0.2s;
}

.hero-name {
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp 0.6s ease forwards 0.4s;
}

.name-first {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.name-last {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    opacity: 0;
    animation: slideUp 0.6s ease forwards 0.6s;
}

.tagline-line {
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.tagline-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 540px;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 0.6s ease forwards 0.8s;
}

.hero-description strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 0.6s ease forwards 1s;
}

/* Beautiful Pill Buttons 2018 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #a3b1ff);
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-primary i {
    transition: var(--transition);
}

.btn-primary:hover i {
    transform: translateX(6px);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.btn-outline:hover {
    color: var(--primary-dark);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Social Icons */
.hero-socials {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: slideUp 0.6s ease forwards 1.2s;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 50%; /* Circle */
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-4px) rotate(10deg);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Hero Image with Overlapping Blob */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.image-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
}

.image-bg {
    position: absolute;
    top: 5%;
    left: -5%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), #48CAE4);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.8;
    z-index: 0;
    animation: morphingBg 10s ease-in-out infinite;
}

@keyframes morphingBg {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.image-dots {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
    background-size: 18px 18px;
    z-index: 0;
    opacity: 0.4;
    animation: floatDots 8s infinite linear alternate;
}

@keyframes floatDots {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.profile-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    z-index: 1;
    box-shadow: var(--card-shadow);
    background: #fff;
    animation: profileBreathe 4s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-photo:hover {
    animation-play-state: paused;
    transform: scale(1.05) rotate(3deg);
}

@keyframes profileBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.6s;
}

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

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

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

/* Animation Keyframes */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== SECTION COMMON ========== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
}

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

.section-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(0, 187, 249, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    margin: 0 auto;
}

/* ========== ABOUT SECTION (Soft Floating Cards) ========== */
.about {
    background: var(--bg-section);
    position: relative;
    z-index: 10;
}

/* Overlapping wave top */
.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-section);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Diagonal overlap style */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: -1;
    transition: var(--transition);
}

.about-card:hover::before {
    transform: translate(20%, -20%) scale(1.5);
}

.about-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--hover-shadow);
}

.about-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(122, 137, 254, 0.1), rgba(122, 137, 254, 0.2));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.about-card:hover .about-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
    transform: rotate(10deg) scale(1.1);
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Stats Area */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    background: var(--bg-dark);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.02);
}

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

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-plus {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== PROJECTS SECTION ========== */
.projects {
    background: var(--bg-dark);
    position: relative;
    padding-top: 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--hover-shadow);
}

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

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

.project-card:hover .project-thumbnail {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(122, 137, 254, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    transform: translateY(20px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--accent);
    color: #fff;
}

.project-info {
    padding: 30px;
    background: var(--bg-card);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

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

.tag {
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(122, 137, 254, 0.1);
    border-radius: 50px;
}

/* ========== CONTACT SECTION ========== */
.contact {
    background: var(--bg-section);
    position: relative;
}

/* Reverse wave shape */
.contact::before {
    content: '';
    position: absolute;
    top: -49px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--bg-section);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}

.contact-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 50px;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: #fff;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-social-card i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-social-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    color: var(--primary);
}

.contact-social-card:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #0c1631, #162858);
    position: relative;
    color: #fff;
    overflow: hidden;
}

/* Glowing top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Ambient glow ball inside */
.footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 16px;
    color: #fff;
}

.footer-logo:hover {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.footer-logo .logo-bracket {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.95rem;
    color: #A0A4B8;
    line-height: 1.8;
    max-width: 350px;
}

.footer-links h4,
.footer-socials-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: #A0A4B8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #A0A4B8;
}

.heart {
    color: var(--accent);
    font-size: 1.1rem;
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

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

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* ========== RESPONSIVE ========== */

/* Desktop / Tablet Landscape */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .name-first, .name-last {
        font-size: 2.8rem;
    }
    
    .image-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .projects-grid {
        gap: 30px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 40px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-tagline {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .about-stats {
        flex-direction: column;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .contact-socials {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .name-first,
    .name-last {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .section-container {
        padding: 80px 16px;
    }

    .stat-number {
        font-size: 3rem;
    }
    
    .stat-plus {
        font-size: 3rem;
    }

    .project-image {
        height: 220px;
    }

    .contact-social-card {
        width: 100%;
        justify-content: center;
    }
}
