.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #16161A 0%, #2D1B57 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(45, 27, 87, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(228, 199, 111, 0.2) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 0%; 
    }
    33% { 
        background-position: 100% 50%, 0% 100%, 80% 20%; 
    }
    66% { 
        background-position: 50% 100%, 50% 0%, 20% 80%; 
    }
}

/* Glass Glow Effects */
.glass-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: pulseGlow 8s ease-in-out infinite;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 27, 87, 0.8) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: 4s;
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particles::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 27, 87, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

/* Crystal Dust Effect */
.crystal-dust {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(228, 199, 111, 0.4), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(228, 199, 111, 0.5), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(139, 92, 246, 0.4), transparent);
    background-size: 300px 300px, 400px 400px, 250px 250px, 350px 350px, 450px 450px;
    background-position: 0 0, 40px 60px, 80px 20px, 120px 100px, 200px 50px;
    animation: sparkle 20s linear infinite;
    opacity: 0.6;
}

@keyframes sparkle {
    0% { background-position: 0 0, 40px 60px, 80px 20px, 120px 100px, 200px 50px; }
    100% { background-position: 300px 300px, 340px 360px, 380px 320px, 420px 400px, 500px 350px; }
}

/* Twinkling Stars Background */
.stars-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(228, 199, 111, 0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle, rgba(139, 92, 246, 0.7) 1px, transparent 1px),
        radial-gradient(circle, rgba(228, 199, 111, 0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 0.5px, transparent 0.5px);
    background-size: 
        200px 200px,
        300px 300px,
        250px 250px,
        150px 150px,
        180px 180px;
    animation: starsMove 60s linear infinite;
    opacity: 0.4;
}

.stars-background::before {
    background-position: 
        0 0,
        50px 60px,
        120px 30px,
        80px 100px,
        150px 50px;
}

.stars-background::after {
    background-position: 
        100px 50px,
        30px 120px,
        180px 80px,
        60px 150px,
        200px 20px;
    animation-duration: 80s;
    animation-direction: reverse;
    opacity: 0.3;
}

@keyframes starsMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

/* Brand Badge */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(228, 199, 111, 0.1);
    border: 1px solid rgba(228, 199, 111, 0.3);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.brand-badge svg {
    color: var(--accent-gold);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--pearl-white);
    font-weight: 800;
    letter-spacing: -1px;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.title-line:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.1rem;
    color: var(--accent-silver);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--accent-silver);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--accent-silver);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.4s;
}

/* Enhanced Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(228, 199, 111, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(228, 199, 111, 0.3);
}

.hero-visual {
    position: relative;
    height: 600px;
    transition: transform 0.1s ease-out;
}

.gem-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Golden Hexagon Outline */
.golden-outline {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.outline-svg {
    width: 450px;
    height: 450px;
}

.hex-outline {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2;
    opacity: 0.4;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawHex 3s ease forwards 1s;
}

.hex-outline-inner {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 1.5;
    opacity: 0.3;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawHex 3s ease forwards 1.3s;
}

@keyframes drawHex {
    to {
        stroke-dashoffset: 0;
    }
}

.gem-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Floating Certificate Card */
.floating-card {
    position: absolute;
    background: rgba(34, 35, 39, 0.9);
    border: 1px solid rgba(228, 199, 111, 0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    animation: floatIn 1s ease forwards;
    transition: transform 0.3s ease;
}

.cert-card {
    top: 10%;
    left: -80px;
    animation-delay: 2s;
}

.gem-card {
    bottom: 15%;
    right: -100px;
    animation-delay: 2.3s;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    font-size: 0.75rem;
    color: var(--accent-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.card-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pearl-white);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.card-verified {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.card-verified svg {
    color: var(--accent-gold);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pearl-white);
    margin-bottom: 0.4rem;
}

.card-weight {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-origin {
    font-size: 0.8rem;
    color: var(--accent-silver);
}

.gem-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(45, 27, 87, 0.5) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.gem-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    inset: 0;
    border-color: rgba(45, 27, 87, 0.5);
    animation-delay: 0s;
}

.ring-2 {
    inset: -20px;
    border-color: rgba(228, 199, 111, 0.4);
    animation-delay: -5s;
    animation-direction: reverse;
}

.ring-3 {
    inset: -40px;
    border-color: rgba(139, 92, 246, 0.4);
    animation-delay: -10s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gem Awakening Animation */
.gem-awakening {
    position: absolute;
    inset: 50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    box-shadow: 0 0 20px var(--accent-gold);
    animation: scan 3s ease-in-out 0.5s;
    z-index: 5;
    opacity: 0;
}

@keyframes scan {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
        transform: translateY(300px);
    }
    100% {
        opacity: 0;
        transform: translateY(300px);
    }
}

.gem-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: floatGem 6s ease-in-out infinite, gemAwaken 3s ease forwards;
    box-shadow: 
        0 20px 60px rgba(45, 27, 87, 0.6), 
        0 0 40px rgba(228, 199, 111, 0.3),
        inset 0 0 60px rgba(139, 92, 246, 0.2);
    border: 3px solid rgba(228, 199, 111, 0.5);
    filter: brightness(0.3);
}

@keyframes gemAwaken {
    0% {
        filter: brightness(0.3);
    }
    50% {
        filter: brightness(0.5);
    }
    100% {
        filter: brightness(1);
    }
}

@keyframes floatGem {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-20px) scale(1.05);
    }
}

/* Crystal Shards */
.crystal-shard {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(228, 199, 111, 0.4));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    filter: blur(1px) drop-shadow(0 0 10px rgba(139, 92, 246, 0.8));
    animation: floatShard 8s ease-in-out infinite;
    opacity: 0;
    animation-delay: var(--delay);
}

.shard-1 {
    --delay: 3s;
    top: 10%;
    right: 15%;
    animation: floatShard 7s ease-in-out infinite 3s;
}

.shard-2 {
    --delay: 3.5s;
    bottom: 20%;
    left: 10%;
    animation: floatShard 8s ease-in-out infinite 3.5s;
}

.shard-3 {
    --delay: 4s;
    top: 60%;
    right: 5%;
    width: 20px;
    height: 20px;
    animation: floatShard 6s ease-in-out infinite 4s;
}

.shard-4 {
    --delay: 4.5s;
    top: 30%;
    left: 5%;
    width: 25px;
    height: 25px;
    animation: floatShard 9s ease-in-out infinite 4.5s;
}

@keyframes floatShard {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .brand-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .gem-container {
        width: 300px;
        height: 300px;
    }
    
    .gem-awakening {
        inset: 40px;
        width: 220px;
        height: 220px;
    }
    
    .floating-card {
        display: none;
    }
    
    .outline-svg {
        width: 350px;
        height: 350px;
    }
    
    .crystal-shard {
        width: 20px;
        height: 20px;
    }
}
