/* ========================================
   AMINA — PREMIUM DARK GOLD PORTFOLIO
   Glassmorphism + Neumorphism Design
   ======================================== */

/* ---- Variables ---- */
:root {
    --gold: #D4AF37;
    --gold-light: #F0D878;
    --gold-dark: #B8960C;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-soft: rgba(212, 175, 55, 0.12);
    --bg-deep: #0a0603;
    --bg-dark: #1a0f08;
    --bg-card: rgba(30, 20, 12, 0.55);
    --bg-glass: rgba(40, 25, 15, 0.35);
    --text-primary: #f5f0e8;
    --text-secondary: #c8b898;
    --text-muted: #8a7a68;
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-neu-out: 8px 8px 16px rgba(0, 0, 0, 0.4), -8px -8px 16px rgba(60, 45, 30, 0.15);
    --shadow-neu-in: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(60, 45, 30, 0.1);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   BACKGROUND & LIGHTING
   ======================================== */
/* ========================================
   GOLDEN DUST CANVAS BACKGROUND
   ======================================== */
#dustCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.luxury-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('bg-marble.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

/* Floating Light Orbs */
.light-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(180, 140, 40, 0.12), transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.header-section {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    margin-bottom: 60px;
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

/* Gold Ornament */
.gold-ornament {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    animation: ornamentSpin 30s linear infinite;
}

.ornament-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.6;
}

.ring-1 {
    border-style: dashed;
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-2 {
    inset: 12px;
    border-radius: 45% 55%;
    opacity: 0.4;
    animation: ringPulse 4s ease-in-out infinite 1s;
}

.ring-3 {
    inset: 24px;
    border-radius: 55% 45%;
    opacity: 0.3;
    animation: ringPulse 4s ease-in-out infinite 2s;
}

.ornament-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #FFD700, var(--gold));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.2);
}

@keyframes ornamentSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Name */
.name {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #F0D878 0%, #D4AF37 30%, #F5E6A3 50%, #D4AF37 70%, #B8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.name::after {
    content: 'AMINA';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0D878 0%, #D4AF37 30%, #F5E6A3 50%, #D4AF37 70%, #B8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.divider {
    color: var(--gold);
    opacity: 0.6;
    margin: 0 10px;
}

.header-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.header-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.header-tag:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   GLASS CARD COMPONENT
   ======================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent 40%, transparent 60%, rgba(212, 175, 55, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep), var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.25);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    letter-spacing: 0.08em;
}

.pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px #10b981;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-neu-out);
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-badge i {
    font-size: 1.1rem;
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
    transition: var(--transition-smooth);
}

.skill-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.skill-badge:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(40, 25, 15, 0.5);
}

.skill-badge:hover i {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
    transform: scale(1.15);
}

.skill-badge:hover span {
    color: var(--text-primary);
}

/* ========================================
   DESIGN WORK SECTION
   ======================================== */
.design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.design-card {
    display: flex;
    flex-direction: column;
}

.design-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.design-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.design-card:hover .design-image {
    transform: scale(1.08);
}

.design-content {
    padding: 20px;
    flex: 1;
}

.design-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.design-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cert-card {
    padding: 4px;
}

.cert-frame {
    background: linear-gradient(145deg, rgba(50, 35, 20, 0.6), rgba(25, 15, 8, 0.7));
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-neu-out);
    transition: var(--transition-smooth);
}

.cert-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.4), rgba(252, 246, 186, 0.2), rgba(179, 135, 40, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cert-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    animation: certShine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes certShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.cert-card:hover .cert-frame {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.cert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cert-org {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cert-medal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.cert-medal i {
    font-size: 0.85rem;
    color: #5c3d05;
    position: relative;
    z-index: 1;
}

.cert-image-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cert-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    margin-top: 40px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.gold-text {
    color: var(--gold);
    font-weight: 600;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}

/* ========================================
   LUXURY SOCIAL JEWELS
   ======================================== */
.social-jewels-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.jewel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.jewel-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(145deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 55, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.jewel-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0,0,0,0.2), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.jewel-core {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a0f08, #2a1b0e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.5),
        inset -2px -2px 6px rgba(60, 40, 20, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.jewel-core i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #F0D878 0%, #D4AF37 35%, #F5E6A3 55%, #D4AF37 75%, #B8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.jewel-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover — Luxury Glow */
.jewel-btn:hover {
    transform: translateY(-6px);
}

.jewel-btn:hover .jewel-ring {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 175, 55, 0.45),
        0 0 80px rgba(212, 175, 55, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.45),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
}

.jewel-btn:hover .jewel-core {
    background: linear-gradient(145deg, #2a1b0e, #3a2515);
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.4),
        inset -2px -2px 6px rgba(80, 55, 30, 0.3),
        0 0 20px rgba(212, 175, 55, 0.15);
}

.jewel-btn:hover .jewel-core i {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transform: scale(1.15);
}

.jewel-btn:hover .jewel-label {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .header-section {
        padding: 40px 12px 30px;
        margin-bottom: 40px;
    }
    
    .gold-ornament {
        width: 80px;
        height: 80px;
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
    }
    
    .header-tag {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 28px;
    }
    
    .section {
        margin-bottom: 56px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        gap: 10px;
    }
    
    .skill-badge {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .skill-badge i {
        font-size: 1rem;
    }
    
    /* Jewel icons — tablet size */
    .social-jewels-grid {
        gap: 32px;
        padding: 16px 0;
    }
    
    .jewel-ring {
        width: 76px;
        height: 76px;
    }
    
    .jewel-core {
        width: 64px;
        height: 64px;
    }
    
    .jewel-core i {
        font-size: 1.4rem;
    }
    
    .jewel-label {
        font-size: 0.75rem;
    }
    
    .project-content,
    .design-content {
        padding: 18px;
    }
    
    .cert-frame {
        padding: 16px;
    }
    
    .footer {
        padding: 30px 16px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 20px 14px;
    }
    
    .header-section {
        padding: 32px 10px 24px;
        margin-bottom: 32px;
    }
    
    .gold-ornament {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .ornament-core {
        width: 20px;
        height: 20px;
    }
    
    .name {
        font-size: 2.2rem;
        letter-spacing: 0.08em;
    }
    
    .subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        margin-bottom: 14px;
    }
    
    .divider {
        margin: 0 6px;
    }
    
    .header-tags {
        gap: 8px;
    }
    
    .header-tag {
        font-size: 0.65rem;
        padding: 5px 14px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }
    
    .section-title::after {
        width: 48px;
        height: 2px;
        margin-top: 10px;
    }
    
    .section {
        margin-bottom: 48px;
    }
    
    /* Jewel icons — phone size (2x2 grid) */
    .social-jewels-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 28px;
        max-width: 280px;
        padding: 12px 0;
    }
    
    .jewel-btn {
        gap: 10px;
    }
    
    .jewel-ring {
        width: 64px;
        height: 64px;
    }
    
    .jewel-core {
        width: 54px;
        height: 54px;
    }
    
    .jewel-core i {
        font-size: 1.2rem;
    }
    
    .jewel-label {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }
    
    .projects-grid,
    .design-grid,
    .certs-grid {
        gap: 16px;
    }
    
    .project-image-wrapper {
        aspect-ratio: 16 / 9;
    }
    
    .project-content {
        padding: 16px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-desc {
        font-size: 0.82rem;
    }
    
    .design-content {
        padding: 14px;
    }
    
    .design-title {
        font-size: 0.92rem;
    }
    
    .design-desc {
        font-size: 0.75rem;
    }
    
    .skills-grid {
        gap: 8px;
    }
    
    .skill-badge {
        padding: 8px 14px;
        gap: 8px;
    }
    
    .skill-badge i {
        font-size: 0.95rem;
    }
    
    .skill-badge span {
        font-size: 0.78rem;
    }
    
    .cert-frame {
        padding: 14px;
    }
    
    .cert-org {
        font-size: 0.78rem;
    }
    
    .cert-medal {
        width: 32px;
        height: 32px;
    }
    
    .cert-medal i {
        font-size: 0.78rem;
    }
    
    .live-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }
    
    .footer {
        padding: 24px 14px;
        margin-top: 24px;
    }
    
    .footer-text {
        font-size: 0.78rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .name {
        font-size: 1.9rem;
    }
    
    .social-jewels-grid {
        gap: 16px 22px;
        max-width: 240px;
    }
    
    .jewel-ring {
        width: 58px;
        height: 58px;
    }
    
    .jewel-core {
        width: 48px;
        height: 48px;
    }
    
    .jewel-core i {
        font-size: 1.1rem;
    }
    
    .jewel-label {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* iOS background-attachment fix */
@supports (-webkit-touch-callout: none) {
    .luxury-bg {
        background-attachment: scroll;
        position: fixed;
        height: 100vh;
        width: 100vw;
    }
}

/* ========================================
   INTERSECTION OBSERVER ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

