/* ===========================
   Last Projects — Design System
   =========================== */

/* --- Custom Properties --- */
:root {
    --bg: #0a0118;
    --surface: #1a0b2e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

/* --- Light Theme --- */
[data-theme="light"] {
    --bg: #e2e6ee;
    --surface: #cbd2dc;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.7);
    --text-primary: #1e293b;
    --text-secondary: rgba(30, 41, 59, 0.7);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease, color 0.5s ease;
}

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

ul {
    list-style: none;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ===========================
   Decorative Background Orbs
   =========================== */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -10%;
    left: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 40%;
    right: -8%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    bottom: -5%;
    left: 30%;
    animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, 80px); }
    66% { transform: translate(-40px, 40px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-50px, -60px); }
    66% { transform: translate(30px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -50px); }
    66% { transform: translate(-60px, 20px); }
}

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.glass-card:hover::after {
    left: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
}

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

.btn-outline {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-project {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-purple);
    font-weight: 600;
    margin-top: auto;
}

.btn-project:hover {
    background: var(--glass-hover);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-project-soon {
    color: var(--accent-cyan);
}

.btn-project-soon:hover {
    border-color: var(--accent-cyan);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-max);
    z-index: 1000;
    background: rgba(10, 1, 24, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 1, 24, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.nav-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    transition: all var(--transition);
}

.nav-github-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-purple);
    color: var(--text-primary) !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.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(5px, -5px);
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--bg),
        #120527,
        #0d0320,
        var(--bg)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 1.5em;
}

.hero-subtitle .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-purple);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.7s steps(1) infinite;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ===========================
   About
   =========================== */
.about {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-mission {
    font-size: 1.2rem;
    color: var(--text-primary) !important;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* ===========================
   Stats
   =========================== */
.stats {
    position: relative;
    z-index: 1;
    padding: 2rem 0 6rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================
   Philosophy
   =========================== */
.philosophy {
    position: relative;
    z-index: 1;
    padding: 4rem 0 8rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.philosophy-card {
    padding: 2rem;
    text-align: center;
}

.philosophy-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.philosophy-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   Projects
   =========================== */
.projects {
    position: relative;
    z-index: 1;
    padding: 4rem 0 8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Project preview mockup */
.project-preview {
    margin: 0 -2.5rem 1.5rem;
    padding: 1.5rem 1.5rem 0;
}

.preview-window {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    overflow: hidden;
}

.preview-dots {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background:
        radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
}

.preview-window-soon .preview-content {
    background:
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-tagline {
    color: var(--accent-purple);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-card-soon .project-tagline {
    color: var(--accent-cyan);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-features {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-features li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.project-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 700;
    font-family: monospace;
}

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

.tag {
    padding: 0.3rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tag-soon {
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
}

/* Coming Soon card extras */
.soon-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 182, 212, 0.15);
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.soon-cursor {
    animation: cursorBlink 0.7s steps(1) infinite;
    font-weight: 700;
}

.soon-text {
    color: var(--text-secondary);
}

/* ===========================
   Tech Stack Marquee
   =========================== */
.tech-marquee {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.marquee-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.marquee-track:hover .marquee-item {
    opacity: 1;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-purple);
    opacity: 0.5;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ===========================
   Community
   =========================== */
.community {
    position: relative;
    z-index: 1;
    padding: 4rem 0 8rem;
}

.community-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(var(--bg), var(--bg)),
        linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.community-card p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.community-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step-icon {
    font-size: 1.8rem;
}

.community-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

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

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-nav h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-credit {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-credit a {
    color: var(--accent-purple);
    transition: color var(--transition);
}

.footer-credit a:hover {
    color: var(--accent-pink);
}

/* ===========================
   Animations
   =========================== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.projects-grid .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.projects-grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.philosophy-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.philosophy-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.philosophy-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   Theme Toggle
   =========================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--glass-hover);
    transform: rotate(15deg);
}

/* Dark mode (default): show moon, hide sun */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* ===========================
   Light Theme Overrides
   =========================== */

/* Hero */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #cbd2dc, #e2e6ee, #c4cdd9, #cbd2dc);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(226, 230, 238, 0.75);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(226, 230, 238, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Orbs — same colors, just reduced opacity */
[data-theme="light"] .orb {
    opacity: 0.25;
}

/* Community card gradient border */
[data-theme="light"] .community-card {
    background-image:
        linear-gradient(var(--bg), var(--bg)),
        linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

/* ===========================
   Responsive
   =========================== */

/* Mobile menu */
@media (max-width: 767px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        background: rgba(10, 1, 24, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
    }

    [data-theme="light"] .nav-links {
        background: rgba(226, 230, 238, 0.98);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .about-card,
    .community-card {
        padding: 2rem 1.5rem;
    }

    .project-card {
        padding: 0 1.5rem 2rem;
    }

    .project-preview {
        margin: 0 -1.5rem 1.5rem;
        padding: 1rem 1rem 0;
    }

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

    .footer-brand {
        align-items: center;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }
}

/* Tablet */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .about {
        padding: 10rem 0;
    }

    .projects {
        padding: 4rem 0 10rem;
    }

    .community {
        padding: 4rem 0 10rem;
    }

    .philosophy {
        padding: 4rem 0 10rem;
    }
}

/* Wide */
@media (min-width: 1280px) {
    .container {
        width: 85%;
    }
}

/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        animation: none;
        background-size: 100% 100%;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee-track {
        animation: none;
    }

    .orb {
        animation: none;
    }

    .theme-toggle:hover {
        transform: none;
    }
}
