/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Color Palette */
    --brand-cream: #FEF0CC;
    --brand-orange: #CF6323;
    --brand-orange-light: #E67E22;
    --brand-orange-dark: #B8541F;
    
    /* Extended Palette */
    --primary-orange: #CF6323;
    --secondary-orange: #E67E22;
    --accent-orange: #F39C12;
    --cream-light: #FEF0CC;
    --cream-dark: #F4D03F;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-orange) 0%, var(--accent-orange) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-orange-dark) 0%, var(--brand-orange) 100%);
    --gradient-hero: linear-gradient(135deg, var(--brand-cream) 0%, var(--brand-orange) 100%);
    --gradient-cream: linear-gradient(135deg, var(--cream-light) 0%, var(--cream-dark) 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 240, 204, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--brand-orange);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--gray-200);
}

.navbar.scrolled .logo {
    width: 98px;
    height: 98px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--brand-orange);
}

.nav-links {
    display: flex;
    gap: var(--spacing-8);
}

.nav-link {
    text-decoration: none;
    color: #CF6323;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: var(--spacing-2) 0;
}

.nav-link:hover {
    color: var(--brand-orange);
}

.nav-link.active {
    color: var(--brand-orange);
    font-weight: 600;
}

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

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

.nav-cta {
    display: none;
    align-items: center;
    gap: var(--spacing-3);
}

.nav-cta.show {
    display: flex;
}

.google-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    padding: var(--spacing-5) var(--spacing-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    box-shadow: none;
    min-width: 135px;
    min-height: 135px;
}

.google-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
    color: var(--white);
}

.google-play-btn span {
    display: none; /* Hide the "Download" text */
}

.google-play-icon {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../assets/Background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FEF0CC 0%, #CF6323 100%);
    opacity: 0.7;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: var(--gradient-accent);
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--gray-800);
    position: relative;
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-6);
}

.title-main {
    display: block;
    color: var(--gray-800);
}

.title-accent {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    color: var(--gray-700);
    font-size: var(--font-size-4xl);
    font-weight: 600;
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--spacing-8);
    color: var(--gray-600);
    max-width: 60ch;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.highlight {
    color: #CF6323;
    font-weight: 600;
}

.hero-actions {
    display: flex !important;
    gap: var(--spacing-4);
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    margin-top: var(--spacing-6);
    margin-left: 0;
    padding-left: 0;
}

.hero-actions .cta-button {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-actions .cta-button.primary {
    height: 68px;
    margin-left: 0;
    padding-left: 0;
}

.hero-actions .cta-button.secondary {
    height: 68px;
    width: 192px;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--spacing-2);
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: transparent;
    color: var(--white);
    box-shadow: none;
}

.cta-button.primary:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: var(--brand-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.cta-button.large {
    padding: var(--spacing-5) var(--spacing-8);
    font-size: var(--font-size-lg);
}

.play-badge {
    height: 68px;
    width: auto;
    display: block !important;
    margin: 0 !important;
}

/* Force Google Play button alignment */
.hero-actions .cta-button.primary {
    align-items: center !important;
}

.hero-actions .cta-button.primary .play-badge {
    display: block !important;
    margin: 0 !important;
    height: 68px !important;
}

/* New Feature Card Hover Effects */

/* Unique DNA - Continuous rotation around vertical axis on hover */
.unique-dna .unique-img {
    transform-style: preserve-3d !important;
    transform: translateY(30px) !important;
    transition: none !important;
}

.feature-card:hover .unique-dna .unique-img {
    animation: dnaRotateY 2s linear infinite !important;
    transform: translateY(30px) !important;
}

/* Old dnaRotate keyframes removed - using dnaRotateY instead */

/* DNA rotation test - removed to avoid conflicts */

/* Minigames Crystal - 75% scale and glow on hover (no rocking) */
.crystal-img {
    transform: scale(1.0) !important; /* Changed from 0.75 to 1.0 to show full size */
    transition: all 0.3s ease !important;
}

.feature-card:hover .minigames .crystal-img {
    filter: drop-shadow(0 0 20px #FFD700) drop-shadow(0 0 40px #FFA500) !important;
    transform: scale(1.0) !important; /* Changed from 0.75 to 1.0 to show full size */
    transition: all 0.3s ease !important;
}

/* Leaderboard - Move up and tilt left on hover (no rocking) */
.leader-img {
    transition: transform 0.3s ease !important;
}

.feature-card:hover .leaderboard .leader-img {
    transform: translateY(-10px) rotate(-15deg) !important;
    transition: transform 0.3s ease !important;
}

.arrow-icon {
    width: 20px;
    height: 20px;
}

/* Ensure new feature icons are properly sized */
.unique-img {
    width: 144px !important; /* 120px + 20% = 144px */
    height: 144px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.crystal-img {
    width: 120px !important; /* 80px + 50% = 120px */
    height: 120px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.leader-img {
    width: 120px !important; /* 80px + 50% = 120px */
    height: 120px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ensure 3D rotation works for DNA */
.unique-dna {
    transform-style: preserve-3d !important;
    perspective: 1000px !important;
}

/* DNA SVG Container - Black/White normally, colored spotlight on hover */
.dna-svg-container {
    width: 144px !important; /* 120px + 20% = 144px */
    height: 144px !important;
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.dna-svg-container image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card:has(.unique-dna):hover .dna-svg-container {
    transform: translateY(30px) scale(1.1);
    animation: dnaRotateY 2s linear infinite;
}

/* Fallback for browsers that don't support :has() */
.feature-card .unique-dna .dna-svg-container {
    width: 144px !important; /* 120px + 20% = 144px */
    height: 144px !important;
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover .unique-dna .dna-svg-container {
    transform: translateY(30px) scale(1.1);
    animation: dnaRotateY 2s linear infinite;
}

/* DNA rotation around Y-axis (vertical axis) */
@keyframes dnaRotateY {
    0% {
        transform: translateY(30px) scale(1.1) rotateY(0deg) !important;
    }
    100% {
        transform: translateY(30px) scale(1.1) rotateY(360deg) !important;
    }
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.dino-spine {
    width: 400px;
    height: 400px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Removed dino-spine hover scaling to prevent size increase */

#spineCanvas {
    /* Make the container circular and properly sized */
    width: 225px; /* 75% of 300px */
    height: 225px; /* 75% of 300px */
    border-radius: 50%; /* Make it perfectly circular */
    overflow: hidden; /* Clip content to circle */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #CF6323 !important; /* CF6323 background color with important */
}

/* Force CF6323 background on all Spine Player elements */
#spineCanvas .spine-player,
#spineCanvas .spine-player-container,
#spineCanvas canvas,
#spineCanvas .spine-player * {
    background-color: #CF6323 !important;
    background: #CF6323 !important;
    background-image: none !important;
}

/* Maximum specificity for canvas background */
#spineCanvas canvas[data-pixi-application] {
    background-color: #CF6323 !important;
    background: #CF6323 !important;
}

/* Override any black backgrounds */
#spineCanvas *[style*="background-color: black"],
#spineCanvas *[style*="background-color: #000"],
#spineCanvas *[style*="background-color: rgb(0, 0, 0)"] {
    background-color: #CF6323 !important;
    background: #CF6323 !important;
}

/* Spine Player content positioning - centered */
#spineCanvas .spine-player {
    position: relative !important;
    left: 0 !important; /* Center horizontally */
    top: 0 !important;  /* Center vertically */
    transform: translate(0, 0) !important;
}

/* Improve Spine Player rendering and make it circular */
#spineCanvas canvas {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    image-rendering: pixelated !important;
    border-radius: 50% !important; /* Make the canvas circular */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ensure proper scaling within circle */
}

/* Hide Spine Player UI completely */
#spineCanvas .spine-player-controls,
#spineCanvas .spine-player-ui,
#spineCanvas .spine-player-toolbar {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure Spine Player background matches container */
#spineCanvas .spine-player {
    background: #CF6323 !important;
}

/* Force CF6323 background on Spine Player canvas */
#spineCanvas .spine-player canvas {
    background: #CF6323 !important;
}

/* Force CF6323 background on Spine Player container */
#spineCanvas .spine-player-container {
    background: #CF6323 !important;
}

/* Set CF6323 background on Spine Player elements */
#spineCanvas .spine-player * {
    background: #CF6323 !important;
}

/* Force the Spine Player itself to be CF6323 */
#spineCanvas .spine-player {
    background-color: #CF6323 !important;
    background-image: none !important;
}

/* Make sure the canvas has CF6323 background */
#spineCanvas canvas {
    background-color: #CF6323 !important;
    background-image: none !important;
}

/* Kill any backgrounds your layout adds - ChatGPT suggestion */
.dino-spine,
.dino-spine *,
.dino-container,
.dino-container * {
    background: transparent !important;
}
.spine-player canvas { 
    display: block; /* avoids odd gaps */
}

/* Removed #spineCanvas hover effects completely */




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

.interaction-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dino-container:hover .interaction-hint {
    opacity: 1;
}

/* Features Section */
.features {
    padding: var(--spacing-24) 0;
    background: var(--brand-cream);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-16);
    color: #CF6323;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for 6 cards (2 rows) */
    gap: var(--spacing-8);
}

.feature-card {
    background: var(--white);
    padding: calc(var(--spacing-8) * 1.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: justify;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--brand-orange);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-orange);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.feature-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Override for DNA SVG specifically */
.unique-dna .feature-icon-img {
    width: 144px !important; /* 120px + 20% = 144px */
    height: 144px !important;
}

/* Override for Leader SVG specifically */
.leaderboard .feature-icon-img {
    width: 120px !important;
    height: 120px !important;
}

/* Override for Crystal SVG specifically */
.minigames .feature-icon-img {
    width: 120px !important;
    height: 120px !important;
}

/* Force DNA SVG container size */
.feature-card .unique-dna .dna-svg-container,
.feature-card:has(.unique-dna) .dna-svg-container {
    width: 144px !important; /* 120px + 20% = 144px */
    height: 144px !important;
    min-width: 144px !important;
    min-height: 144px !important;
    max-width: 144px !important;
    max-height: 144px !important;
}

/* Force Crystal and Leader image sizes */
.feature-card .minigames .crystal-img,
.feature-card:has(.minigames) .crystal-img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
}

/* Ultra-specific override for Crystal SVG */
.feature-card .feature-icon.minigames .feature-icon-img.crystal-img,
.feature-card:has(.feature-icon.minigames) .feature-icon-img.crystal-img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    display: block !important;
    object-fit: contain !important;
}

.feature-card .leaderboard .leader-img,
.feature-card:has(.leaderboard) .leader-img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
}

/* Ultra-specific override for Leader SVG */
.feature-card .feature-icon.leaderboard .feature-icon-img.leader-img,
.feature-card:has(.feature-icon.leaderboard) .feature-icon-img.leader-img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    display: block !important;
    object-fit: contain !important;
}

/* Daily Activities Icons */
.daily-activities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: auto;
    height: 140px;
    background: transparent;
    flex-shrink: 0;
    margin: 0 auto calc(var(--spacing-6) * 0.25);
    align-items: center;
}

.ring {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ring:hover {
    transform: scale(1.05);
}

.ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 18;
}

.ring-progress {
    fill: none;
    stroke-width: 18;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: var(--dashoffset);
    transition: stroke-dashoffset 0.6s ease;
}

.icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    z-index: 1;
    pointer-events: none;
}

/* Hub Cards */
.hub-cards {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0px;
    width: auto;
    height: 140px;
    background: transparent;
    flex-shrink: 0;
    margin: 0 auto calc(var(--spacing-6) * 0.25);
    perspective: 1000px;
    position: relative;
    padding-left: 20px;
}

.hub-card {
    width: 113.4px;
    height: 161.9px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

.hub-card:nth-child(1) {
    transform: translate(-50%, -40%) rotate(-25deg) translateY(-15px) translateX(-25px);
    z-index: 4;
}

.hub-card:nth-child(2) {
    transform: translate(-50%, -40%) rotate(-8deg) translateY(-5px) translateX(-8px);
    z-index: 3;
}

.hub-card:nth-child(3) {
    transform: translate(-50%, -40%) rotate(8deg) translateY(-5px) translateX(8px);
    z-index: 2;
}

.hub-card:nth-child(4) {
    transform: translate(-50%, -40%) rotate(25deg) translateY(-15px) translateX(25px);
    z-index: 1;
}

.hub-card:hover {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-15px) scale(1.1);
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Pair Card Special Styling */
.feature-card:has(.feature-icon:not(.daily-activities):not(.hub-cards)) {
    position: relative;
}

.feature-card:has(.feature-icon:not(.daily-activities):not(.hub-cards)) .feature-icon {
    background: transparent;
    box-shadow: none;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto calc(var(--spacing-6) * 0.25);
}

.feature-card:has(.feature-icon:not(.daily-activities):not(.hub-cards)) .feature-icon-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: translateY(30px);
}

.feature-card:has(.feature-icon:not(.daily-activities):not(.hub-cards)):hover .feature-icon-img {
    animation: rock 0.6s ease-in-out infinite alternate;
    transform: translateY(30px);
}

@keyframes rock {
    0% {
        transform: translateY(30px) rotate(-5deg);
    }
    100% {
        transform: translateY(30px) rotate(5deg);
    }
}

.feature-card h3 {
    font-size: calc(var(--font-size-xl) * 1.5);
    font-weight: 600;
    margin-bottom: 0;
    margin-top: calc(var(--spacing-4) * 4.5);
    color: #CF6323;
    flex-shrink: 0;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    min-height: 6.75rem;
    font-size: calc(1rem * 1.5);
    margin-top: calc(var(--spacing-4) * 2.5);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-24) 0;
    background: #CF6323;
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: var(--spacing-8) var(--spacing-6);
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 var(--spacing-4) 0;
    font-style: italic;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3);
    margin-top: var(--spacing-6);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

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

/* FAQ Section */
.faq {
    padding: var(--spacing-24) 0;
    background: #FEF0CC;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-4);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-6) 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand-orange);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 var(--spacing-6) 0;
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-8);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.footer-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
}


.footer-links {
    display: flex;
    gap: var(--spacing-6);
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .title-sub {
        font-size: var(--font-size-2xl);
    }
    
    .hero-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .dino-container {
        width: 300px;
        height: 300px;
    }
    
    .dino-spine {
        width: 300px;
        height: 300px;
    }
    
    #spineCanvas {
        width: 187.5px; /* 75% of 250px */
        height: 187.5px; /* 75% of 250px */
        border-radius: 93.75px; /* 75% of 125px */
        background: #CF6323; /* CF6323 background color for mobile */
    }
    
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none !important;
    }
    
    .logo {
        width: 98px;
        height: 98px;
    }
    
    .navbar.scrolled .logo {
        width: 92px;
        height: 92px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card p {
        text-align: start;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-4);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .title-sub {
        font-size: var(--font-size-xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        text-align: start;
    }
    
    .cta-button {
        padding: var(--spacing-3) var(--spacing-5);
    }
    
    .play-badge {
        height: 70px;
    }
}