/* ═══════════════════════════════════════════════════════════════
                    🎨 RRAN PORTFOLIO - ORGANIZED STYLES 🎨
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
                          CSS VARIABLES & ROOT
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* ═══════════════════════════════════════════════════════════════
                          🎨 COMPLETE COLOR SYSTEM 🎨
                    CHANGE ALL COLORS FROM HERE - ONE PLACE!
                    
    💡 QUICK COLOR CHANGE GUIDE:
    • --primary-color: Changes buttons, highlights, cursor
    • --secondary-color: Changes hover states, accents
    • --accent-color: Changes subtle highlights
    
    🎨 READY-TO-USE THEMES (replace the 3 main colors):
    🔥 FIRE: #ff4500, #ff6347, #ff7f50
    💜 PURPLE: #8b5cf6, #a78bfa, #c4b5fd
    🌊 OCEAN: #0ea5e9, #38bdf8, #7dd3fc
    🌿 NATURE: #10b981, #34d399, #6ee7b7
    🌸 PINK: #ec4899, #f472b6, #f9a8d4
    
    📖 See COLOR-ANIMATION-GUIDE.txt for complete customization!
       ═══════════════════════════════════════════════════════════════ */
    
    /* ═══════════════════════════════════════════════════════════════
                            🧡 MAIN BRAND COLORS
       ═══════════════════════════════════════════════════════════════ */
    --primary-color: #ff7f00;           /* Main brand color (buttons, icons, highlights) */
    --secondary-color: #ffd700;         /* Secondary brand color (accents, hover states) */
    --accent-color: #ffb347;            /* Accent color (subtle highlights) */
    --text-color: #ffffff;              /* Main text color */
    --text-secondary: rgba(255, 255, 255, 0.8); /* Secondary text color */
    --text-muted: rgba(255, 255, 255, 0.6);     /* Muted text color */
    
    /* ═══════════════════════════════════════════════════════════════
                            🌈 GRADIENTS
       ═══════════════════════════════════════════════════════════════ */
    --primary-gradient: linear-gradient(135deg, #ff7f00, #ffd700);     /* Main gradient (buttons, badges) */
    --text-gradient: linear-gradient(135deg, #ff7f00, #ffd700, #ff7f00); /* Text gradient (titles) */
    --dark-gradient: linear-gradient(135deg, #1a0f00, #0a0a0a);        /* Dark backgrounds */
    --loading-gradient: linear-gradient(135deg, #ff7f00, #ffd700);     /* Loading screen gradient */
    
    /* ═══════════════════════════════════════════════════════════════
                            🖤 BACKGROUND COLORS
       ═══════════════════════════════════════════════════════════════ */
    --body-bg: #0a0a0a;                 /* Main page background */
    --section-bg: #111111;              /* Section backgrounds */
    --card-bg: rgba(20, 20, 20, 0.8);   /* Cards, modals, skill boxes */
    --card-bg-hover: rgba(30, 30, 30, 0.9); /* Card hover state */
    --loading-bg: linear-gradient(135deg, #0a0a0a, #1a0f00); /* Loading screen */
    
    /* ═══════════════════════════════════════════════════════════════
                            🔲 BORDERS & LINES
       ═══════════════════════════════════════════════════════════════ */
    --border-color: rgba(255, 183, 71, 0.2);     /* Main border color */
    --border-hover: rgba(255, 183, 71, 0.4);     /* Border on hover */
    --border-focus: rgba(255, 183, 71, 0.6);     /* Border on focus */
    
    /* ═══════════════════════════════════════════════════════════════
                            🎯 SKILL LEVEL COLORS
       ═══════════════════════════════════════════════════════════════ */
    --skill-expert: #ff7f00;                       /* Expert level badge & progress */
    --skill-expert-gradient: linear-gradient(135deg, #ff7f00, #ffd700);
    --skill-advanced: #8b5cf6;                     /* Advanced level (purple) */
    --skill-advanced-gradient: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --skill-intermediate: #3b82f6;                  /* Intermediate level (blue) */
    --skill-intermediate-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
    
    /* ═══════════════════════════════════════════════════════════════
                            🔘 BUTTON COLORS
       ═══════════════════════════════════════════════════════════════ */
    --btn-primary-bg: linear-gradient(135deg, #ff7f00, #ffd700); /* Primary buttons */
    --btn-primary-text: #000000;                                /* Primary button text */
    --btn-primary-hover: linear-gradient(135deg, #e6720a, #e6c200); /* Primary hover */
    --btn-secondary-bg: rgba(255, 183, 71, 0.1);               /* Secondary buttons */
    --btn-secondary-text: #ffd700;                              /* Secondary text */
    --btn-secondary-hover: rgba(255, 183, 71, 0.2);           /* Secondary hover */
    
    /* ═══════════════════════════════════════════════════════════════
                            🎮 CURSOR COLORS
       ═══════════════════════════════════════════════════════════════ */
    --cursor-center: #ff7f00;           /* Cursor center dot */
    --cursor-ring: rgba(128, 128, 128, 0.1); /* Cursor outer ring */
    --cursor-hover: #ffd700;            /* Cursor on hover */
    --cursor-click: #ff4500;            /* Cursor on click */
    
    /* ═══════════════════════════════════════════════════════════════
                            📊 STATUS COLORS
       ═══════════════════════════════════════════════════════════════ */
    --status-live: #22c55e;             /* Live/Active status (green) */
    --status-beta: #f59e0b;             /* Beta status (yellow/orange) */
    --status-dev: #3b82f6;              /* Development status (blue) */
    --status-completed: #6b7280;        /* Completed status (gray) */
    --status-default: #9ca3af;          /* Default status */
    
    /* ═══════════════════════════════════════════════════════════════
                            💬 SOCIAL MEDIA COLORS
       ═══════════════════════════════════════════════════════════════ */
    --social-youtube: #ff0000;          /* YouTube red */
    --social-discord: #5865F2;          /* Discord purple */
    --social-roblox: #00a2ff;           /* Roblox blue */
    --social-twitter: #1da1f2;          /* Twitter blue */
    --social-github: #333333;           /* GitHub dark */
    
    /* ═══════════════════════════════════════════════════════════════
                            ⚙️ SYSTEM COLORS
       ═══════════════════════════════════════════════════════════════ */
    --success: #10b981;                 /* Success states (green) */
    --warning: #f59e0b;                 /* Warning states (orange) */
    --error: #ef4444;                   /* Error states (red) */
    --info: #3b82f6;                    /* Info states (blue) */
    
    /* ═══════════════════════════════════════════════════════════════
                            ⏱️ ANIMATION SETTINGS
       ═══════════════════════════════════════════════════════════════ */
    --animation-speed: 0.3s;
    --animation-slow: 0.6s;
    --animation-fast: 0.15s;
    --hover-lift: -5px;
    --hover-scale: 1.05;
    
    /* ═══════════════════════════════════════════════════════════════
                          🔧 COMPATIBILITY ALIASES
                    (Keep old variable names working)
       ═══════════════════════════════════════════════════════════════ */
    --primary-orange: var(--primary-color);
    --primary-gold: var(--secondary-color);
    --accent-gold: var(--accent-color);
}

/* ═══════════════════════════════════════════════════════════════
                          GLOBAL RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--body-bg);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Hide all default cursors throughout the site */
* {
    cursor: none !important;
}

/* Custom Dot Cursor - Small Orange Center with Gray Transparent Ring */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: none; /* Instant response */
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: rgba(128, 128, 128, 0.1); /* Nearly transparent gray outer ring */
    border-radius: 50%;
    border: none;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--cursor-center); /* Uses color system */
    border-radius: 50%;
    z-index: 1;
}

.custom-cursor.hover::before {
    background: rgba(128, 128, 128, 0.2); /* Slightly more visible on hover */
    border-color: rgba(128, 128, 128, 0.4);
    transform: translate(-50%, -50%) scale(1.2);
}

.custom-cursor.hover::after {
    background: var(--cursor-hover); /* Uses color system */
    transform: translate(-50%, -50%) scale(1.3);
}

.custom-cursor.click::before {
    background: rgba(128, 128, 128, 0.3);
    transform: translate(-50%, -50%) scale(0.8);
}

.custom-cursor.click::after {
    background: var(--cursor-click); /* Uses color system */
    transform: translate(-50%, -50%) scale(0.9);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════
                          LOADING SCREEN
   ═══════════════════════════════════════════════════════════════ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a0f00);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.loading-text {
    font-size: 1.2rem;
    margin: 20px 0;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
                          3D CUBE COMPONENTS
   ═══════════════════════════════════════════════════════════════ */
.spinning-cube, .floating-cube, .profile-cube, .contact-cube, .mini-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    margin: 0 auto;
}

.mini-cube {
    width: 30px;
    height: 30px;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border: 1px solid var(--primary-gold);
    opacity: 0.9;
}

.mini-cube .cube-face {
    width: 30px;
    height: 30px;
}

/* Cube Face Positioning */
.cube-face.front { transform: rotateY(0deg) translateZ(30px); }
.cube-face.back { transform: rotateY(180deg) translateZ(30px); }
.cube-face.right { transform: rotateY(90deg) translateZ(30px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(30px); }
.cube-face.top { transform: rotateX(90deg) translateZ(30px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

.mini-cube .cube-face.front { transform: rotateY(0deg) translateZ(15px); }
.mini-cube .cube-face.back { transform: rotateY(180deg) translateZ(15px); }
.mini-cube .cube-face.right { transform: rotateY(90deg) translateZ(15px); }
.mini-cube .cube-face.left { transform: rotateY(-90deg) translateZ(15px); }
.mini-cube .cube-face.top { transform: rotateX(90deg) translateZ(15px); }
.mini-cube .cube-face.bottom { transform: rotateX(-90deg) translateZ(15px); }

/* Cube Animations */
.spinning-cube {
    animation: rotateCube 4s linear infinite;
}

.floating-cube {
    position: absolute;
    animation: rotateCube 6s linear infinite, floatCube 3s ease-in-out infinite alternate;
}

.profile-cube {
    animation: rotateCube 8s linear infinite;
    width: 80px;
    height: 80px;
}

.profile-cube .cube-face {
    width: 80px;
    height: 80px;
}

.profile-cube .cube-face.front { transform: rotateY(0deg) translateZ(40px); }
.profile-cube .cube-face.back { transform: rotateY(180deg) translateZ(40px); }
.profile-cube .cube-face.right { transform: rotateY(90deg) translateZ(40px); }
.profile-cube .cube-face.left { transform: rotateY(-90deg) translateZ(40px); }
.profile-cube .cube-face.top { transform: rotateX(90deg) translateZ(40px); }
.profile-cube .cube-face.bottom { transform: rotateX(-90deg) translateZ(40px); }

/* Contact visual container with proper 3D perspective */
.contact-visual {
    perspective: 1000px;
    perspective-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contact cube - properly inherits all 3D styling and has larger size */
.contact-cube {
    animation: rotateCube 8s linear infinite;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    position: relative;
    margin: 0 auto;
}

.contact-cube .cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border: 1px solid var(--primary-gold);
    opacity: 0.9;
}

.contact-cube .cube-face.front { transform: rotateY(0deg) translateZ(40px); }
.contact-cube .cube-face.back { transform: rotateY(180deg) translateZ(40px); }
.contact-cube .cube-face.right { transform: rotateY(90deg) translateZ(40px); }
.contact-cube .cube-face.left { transform: rotateY(-90deg) translateZ(40px); }
.contact-cube .cube-face.top { transform: rotateX(90deg) translateZ(40px); }
.contact-cube .cube-face.bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes floatCube {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    100% { transform: translateY(-20px) rotateX(180deg) rotateY(180deg); }
}

/* ═══════════════════════════════════════════════════════════════
                          SKILLS SECTION STYLING
   ═══════════════════════════════════════════════════════════════ */
.skills {
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.5), rgba(10, 10, 10, 0.8));
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 127, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 5%, rgba(255, 183, 71, 0.12) 0%, transparent 50%);
    z-index: 1;
}

.skills .container {
    position: relative;
    z-index: 2;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(var(--hover-lift));
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(255, 183, 71, 0.2);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #000;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-level-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-level-badge.expert {
    background: var(--primary-gradient);
    color: #000;
}

.skill-level-badge.intermediate {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.skill-level-badge.advanced {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
}

.skill-experience {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.skill-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
}

.skill-progress {
    margin-top: auto;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 2s ease;
    position: relative;
}

.progress-fill.expert {
    background: var(--primary-gradient);
}

.progress-fill.intermediate {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.progress-fill.advanced {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.progress-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    display: block;
    font-weight: 600;
}

.skills-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
}

.skill-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* Responsive design for skills grid */
@media (max-width: 1200px) {
    .skills-grid {
        gap: 20px;
        max-width: 1200px;
    }
    
    .skill-card {
        min-width: 280px;
    }
}

@media (max-width: 900px) {
    .skills-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-card {
        max-width: 500px;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
                          ROBLOX GAMES SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.games {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.5), rgba(10, 10, 10, 0.8));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Loading State */
.games-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 183, 71, 0.2);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text h3 {
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.loading-text p {
    color: rgba(255, 255, 255, 0.7);
}

/* Roblox Game Cards */
.game-card.roblox-game {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.game-card.roblox-game:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: 0 25px 50px rgba(255, 183, 71, 0.3);
}

.game-card.featured {
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 183, 71, 0.2);
}

/* Game Image Container */
.game-image-container {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: var(--dark-gradient);
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-thumbnail {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-button i {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Status & Featured Badges */
.game-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Game Info Section */
.game-info {
    padding: 25px;
}

.game-header {
    margin-bottom: 15px;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.game-id {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.game-role {
    margin-bottom: 20px;
}

.role-badge {
    background: var(--primary-gradient);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Stats Grid */
.game-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.game-stats-grid .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 183, 71, 0.1);
}

.stat-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.9rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contributions Section */
.contributions {
    margin-bottom: 20px;
}

.contributions h4 {
    font-size: 0.9rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contributions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contributions li {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.contributions li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 0.7rem;
}

/* Technology Badges */
.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: rgba(255, 183, 71, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(255, 183, 71, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-gradient);
    color: #000;
    transform: translateY(-2px);
}

/* Placeholder Game Card */
.game-card.placeholder {
    border: 2px dashed var(--border-color);
    background: rgba(255, 183, 71, 0.05);
    cursor: default;
}

.game-card.placeholder:hover {
    transform: none;
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(255, 183, 71, 0.1);
}

.placeholder-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-gradient);
    color: var(--primary-gold);
    font-size: 4rem;
    opacity: 0.3;
}

.placeholder-instructions {
    margin: 20px 0;
    background: rgba(255, 183, 71, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.placeholder-instructions h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.placeholder-instructions ol {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
}

.placeholder-instructions code {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.placeholder-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
                          MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-gold);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-viewer {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--dark-gradient);
}

.media-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-header-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.game-header-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-role {
    margin-bottom: 20px;
}

.modal-role .role-badge {
    background: var(--primary-gradient);
    color: #000;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 183, 71, 0.1);
}

.stat-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.stat-item small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-contributions {
    margin-bottom: 25px;
}

.modal-contributions h4 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-contributions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-contributions li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 20px;
}

.modal-contributions li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 0.8rem;
}

.modal-technologies {
    margin-bottom: 30px;
}

.modal-technologies h4 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags .tech-badge {
    background: rgba(255, 183, 71, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(255, 183, 71, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.modal-actions {
    text-align: center;
}

.play-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 183, 71, 0.3);
}

.play-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 183, 71, 0.4);
}

.play-game-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .game-image-container {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
                          NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-cube {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--animation-speed) ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--animation-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: all var(--animation-speed) ease;
}

/* ═══════════════════════════════════════════════════════════════
                          HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.cube-1 {
    top: 20%;
    right: 10%;
    animation-duration: 8s;
}

.cube-2 {
    bottom: 20%;
    left: 10%;
    animation-duration: 12s;
    animation-delay: -2s;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 183, 71, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 1.1s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease 1.3s both;
}

/* ═══════════════════════════════════════════════════════════════
                          BUTTONS & INTERACTIONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--animation-speed) ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn.enhanced {
    position: relative;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover .btn-shine {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(var(--hover-lift));
    box-shadow: 0 10px 30px rgba(255, 183, 71, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gradient);
    color: #000;
    transform: translateY(var(--hover-lift));
}

.btn-service {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-service:hover {
    background: var(--primary-gradient);
    color: #000;
}

/* Enhanced Discord Contact Button */
.discord-contact-btn.enhanced {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: 2px solid rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.discord-contact-btn.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.discord-contact-btn.enhanced:hover::before {
    left: 100%;
}

.discord-contact-btn.enhanced:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c4692 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5);
    border-color: rgba(88, 101, 242, 0.6);
}

.discord-contact-btn.enhanced i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.discord-contact-btn.enhanced:hover i {
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════
                          STATS & COUNTERS
   ═══════════════════════════════════════════════════════════════ */
.stat {
    text-align: center;
}

.stat.enhanced {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
}

.stat.enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
                          SECTION LAYOUTS
   ═══════════════════════════════════════════════════════════════ */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════════
                          ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.about {
    background: var(--dark-gradient);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    max-width: 500px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 183, 71, 0.1), transparent);
    transition: left 0.6s ease;
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.2);
    border-color: var(--primary-gold);
    background: rgba(255, 183, 71, 0.05);
}

.highlight-item i {
    font-size: 1.8rem;
    color: var(--primary-gold);
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
    transition: transform var(--animation-speed) ease;
}

.highlight-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.highlight-item h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.highlight-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.about-skills {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Old skills-grid removed - now uses main skills section flex layout */

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
}

.skill-item.enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 183, 71, 0.15);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 1.2rem;
    color: #000;
}

.skill-content h5 {
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.skill-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.skill-level {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
}

.skill-level::after {
    content: attr(data-level) '%';
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
                          SERVICES SECTION
   ═══════════════════════════════════════════════════════════════ */
.services {
    background: var(--dark-gradient);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 183, 71, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(var(--hover-lift));
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.service-card.featured {
    border: 2px solid var(--primary-gold);
    position: relative;
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--animation-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: #000;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.service-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.service-features li i {
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

.service-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price-from {
    font-weight: 600;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
                          PROCESS SECTION
   ═══════════════════════════════════════════════════════════════ */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.process-step {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--animation-speed) ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.step-content h3 {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(255, 183, 71, 0.2);
    color: var(--primary-gold);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all var(--animation-speed) ease;
}

.feature-tag:hover {
    background: var(--primary-gradient);
    color: #000;
}

/* ═══════════════════════════════════════════════════════════════
                          PREVIEW/PORTFOLIO GRID
   ═══════════════════════════════════════════════════════════════ */
.preview-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.preview-item, .portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
    cursor: pointer;
    position: relative;
}

.preview-item::before, .portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.preview-item:hover::before, .portfolio-item:hover::before {
    left: 100%;
}

.preview-item:hover, .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 183, 71, 0.2);
}

.preview-item img, .portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--animation-speed) ease;
}

.portfolio-item img {
    height: 200px;
}

.preview-item:hover img, .portfolio-item:hover img {
    transform: scale(1.05);
}

.preview-content, .portfolio-content {
    padding: 25px;
}

.portfolio-content {
    padding: 20px;
}

.preview-content h3, .portfolio-content h3 {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.preview-content p, .portfolio-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.preview-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 183, 71, 0.2);
    color: var(--primary-gold);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all var(--animation-speed) ease;
}

.tag:hover {
    background: var(--primary-gradient);
    color: #000;
}

.preview-cta {
    text-align: center;
}

/* Video Indicator */
.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
                          PORTFOLIO PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */
.portfolio-header {
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    transition: all var(--animation-speed) ease;
    transform: translate(-50%, -50%);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    width: 200%;
    height: 200%;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: #000;
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.best-works {
    padding: 80px 0;
    background: var(--dark-gradient);
}

.best-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.projects-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════════
                          ENHANCED MODAL SYSTEM HUD
   ═══════════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(12px);
    animation: modalFadeIn 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    max-width: 1300px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-80px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 183, 71, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: #000;
    background: var(--primary-gradient);
    border-color: var(--primary-gold);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 183, 71, 0.4);
}

.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 183, 71, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

/* Enhanced Media Section with Consistent Dimensions */
.modal-media {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.media-viewer {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    border: 3px solid rgba(255, 183, 71, 0.2);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 183, 71, 0.1);
    backdrop-filter: blur(10px);
}

.media-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(255, 183, 71, 0.05) 0%, transparent 70%);
}

.media-container img,
.media-container video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.media-container video {
    background: #000;
    border: none;
}

.media-container:hover img {
    transform: scale(1.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Enhanced View Navigation Arrows */
.view-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 15;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 28, 0.95) 100%);
    border: 2px solid rgba(255, 183, 71, 0.4);
    color: rgba(255, 255, 255, 0.95);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    pointer-events: all;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nav-btn:hover::before {
    width: 120%;
    height: 120%;
}

.nav-btn:hover {
    color: #000;
    transform: scale(1.2) translateY(-3px);
    border-color: var(--primary-gold);
    box-shadow: 
        0 15px 40px rgba(255, 183, 71, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.nav-btn:active {
    transform: scale(1.1) translateY(-1px);
}

/* Enhanced Viewer Controls HUD */
.viewer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 28, 0.8) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 183, 71, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.8) 0%, rgba(15, 15, 25, 0.9) 100%);
    border: 2px solid rgba(255, 183, 71, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 183, 71, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-btn:hover::before,
.view-btn.active::before {
    left: 100%;
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-gradient);
    color: #000;
    border-color: var(--primary-gold);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 183, 71, 0.4);
}

.view-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-btn:hover i,
.view-btn.active i {
    transform: scale(1.1);
}

/* Enhanced Modal Info Section */
.modal-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 183, 71, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 15px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.modal-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.15rem;
    font-weight: 400;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 183, 71, 0.08) 0%, rgba(255, 183, 71, 0.03) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 183, 71, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 183, 71, 0.4);
    box-shadow: 0 8px 20px rgba(255, 183, 71, 0.15);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item strong {
    color: var(--primary-gold);
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    font-weight: 500;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.modal-tags .tag {
    margin: 0;
    background: rgba(255, 183, 71, 0.15);
    color: var(--primary-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 183, 71, 0.3);
    transition: all 0.3s ease;
}

.modal-tags .tag:hover {
    background: var(--primary-gradient);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 71, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
                          TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}

.testimonial-stars i {
    color: var(--primary-gold);
}

.testimonial-card blockquote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: #000;
    font-size: 1.2rem;
}

.author-info h4 {
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.author-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
                          PRICING SECTION
   ═══════════════════════════════════════════════════════════════ */
.pricing-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.payment-methods h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
}

.payment-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed) ease;
}

.payment-option.enhanced:hover {
    transform: translateY(var(--hover-lift));
    box-shadow: 0 10px 20px rgba(255, 183, 71, 0.2);
}

.payment-option i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.payment-option span {
    font-size: 1.2rem;
    font-weight: 600;
}

.pricing-note p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.terms-link-container {
    margin-top: 20px;
}

.terms-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-gold);
    text-decoration: none;
    transition: color var(--animation-speed) ease;
}

.terms-link:hover {
    color: var(--accent-gold);
}

/* ═══════════════════════════════════════════════════════════════
                          TERMS OF SERVICE PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Terms Header */
.terms-header {
    background: var(--dark-gradient);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 183, 71, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.terms-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.terms-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(255, 183, 71, 0.3);
}

.terms-icon i {
    font-size: 3rem;
    color: #000;
}

.terms-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.terms-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.terms-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 183, 71, 0.3);
    backdrop-filter: blur(10px);
    transition: all var(--animation-speed) ease;
}

.meta-item:hover {
    background: rgba(255, 183, 71, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 183, 71, 0.2);
}

.meta-item i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.meta-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Terms Decoration */
.terms-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.terms-decoration .floating-cube {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    opacity: 0.3;
    animation: floatTerms 8s ease-in-out infinite;
}

.terms-decoration .cube-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.terms-decoration .cube-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.terms-decoration .cube-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatTerms {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Terms Content Layout */
.terms-content {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(20, 20, 28, 0.98) 100%);
}

.terms-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* Table of Contents Sidebar */
.terms-sidebar {
    position: sticky;
    top: 120px;
}

.toc-container {
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 183, 71, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 183, 71, 0.2);
}

.toc-title i {
    font-size: 1.1rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.toc-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 183, 71, 0.1), transparent);
    transition: left 0.5s ease;
}

.toc-link:hover::before,
.toc-link.active::before {
    left: 100%;
}

.toc-link:hover,
.toc-link.active {
    background: rgba(255, 183, 71, 0.1);
    border-color: rgba(255, 183, 71, 0.3);
    transform: translateX(5px);
}

.toc-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--animation-speed) ease;
}

.toc-link:hover .toc-number,
.toc-link.active .toc-number {
    background: var(--primary-gradient);
    color: #000;
    transform: scale(1.1);
}

.toc-text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--animation-speed) ease;
}

.toc-link:hover .toc-text,
.toc-link.active .toc-text {
    color: var(--primary-gold);
}

/* Terms Main Content */
.terms-main {
    max-width: none;
}

.terms-sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Individual Terms Section */
.terms-section {
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 183, 71, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 183, 71, 0.3);
}

.terms-section:hover::before {
    opacity: 1;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 183, 71, 0.2);
}

.section-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(255, 183, 71, 0.3);
    transition: transform var(--animation-speed) ease;
}

.section-icon i {
    font-size: 1.8rem;
    color: #000;
}

.terms-section:hover .section-icon {
    transform: scale(1.05) rotate(5deg);
}

.section-title-wrapper {
    flex: 1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
    line-height: 1.2;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
}

/* Section Content */
.section-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.05rem;
}

.section-content p {
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.2rem !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 30px !important;
}

/* Content Boxes */
.highlight-box,
.info-box,
.warning-box,
.legal-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid;
    transition: all var(--animation-speed) ease;
}

.highlight-box {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.info-box {
    background: rgba(13, 110, 253, 0.1);
    border-left-color: #0d6efd;
}

.warning-box {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.legal-note {
    background: rgba(108, 117, 125, 0.1);
    border-left-color: #6c757d;
}

.highlight-box:hover,
.info-box:hover,
.warning-box:hover,
.legal-note:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.highlight-box i,
.info-box i,
.warning-box i,
.legal-note i {
    font-size: 1.5rem;
    margin-top: 3px;
}

.highlight-box i {
    color: #ffc107;
}

.info-box i {
    color: #0d6efd;
}

.warning-box i {
    color: #dc3545;
}

.legal-note i {
    color: #6c757d;
}

.highlight-box h4,
.info-box h4,
.warning-box h4,
.legal-note h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
}

.service-item:hover {
    background: rgba(255, 183, 71, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
    transition: transform var(--animation-speed) ease;
}

.service-item:hover i {
    transform: scale(1.1);
}

.service-item h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Payment Structure */
.payment-structure {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.payment-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
}

.payment-item:hover {
    background: rgba(255, 183, 71, 0.05);
    transform: translateX(5px);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.payment-header i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.payment-header h4 {
    color: var(--primary-gold);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.payment-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.payment-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 0.8rem;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 183, 71, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 183, 71, 0.3);
    transition: all var(--animation-speed) ease;
}

.method:hover {
    background: rgba(255, 183, 71, 0.2);
    transform: translateY(-2px);
}

.method i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.method span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Delivery Timeline */
.delivery-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
    position: relative;
}

.timeline-item:hover {
    background: rgba(255, 183, 71, 0.05);
    transform: translateX(10px);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--animation-speed) ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
}

.timeline-icon i {
    font-size: 1.5rem;
    color: #000;
}

.timeline-content h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Format Grid */
.delivery-formats {
    margin-top: 30px;
}

.delivery-formats h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.format-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.format-tag {
    background: rgba(255, 183, 71, 0.15);
    color: var(--primary-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: monospace;
    border: 1px solid rgba(255, 183, 71, 0.3);
    transition: all var(--animation-speed) ease;
}

.format-tag:hover {
    background: var(--primary-gradient);
    color: #000;
    transform: translateY(-2px);
}

/* Revision Policy */
.revision-policy {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
}

.policy-item:hover {
    background: rgba(255, 183, 71, 0.05);
    transform: translateX(5px);
}

.policy-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--animation-speed) ease;
}

.policy-item:hover .policy-icon {
    transform: scale(1.1);
}

.policy-icon.included {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.policy-icon.additional {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.policy-icon.major {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.policy-icon i {
    font-size: 1.2rem;
}

.policy-content h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.policy-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.rights-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
}

.rights-item:hover {
    background: rgba(255, 183, 71, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.rights-item i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
    transition: transform var(--animation-speed) ease;
}

.rights-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.rights-item h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.rights-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Cancellation Stages */
.cancellation-stages {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
}

.stage-item:hover {
    background: rgba(255, 183, 71, 0.05);
    transform: translateX(10px);
}

.stage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--animation-speed) ease;
}

.stage-item:hover .stage-icon {
    transform: scale(1.1);
}

.stage-icon.early {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.stage-icon.mid {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.stage-icon.late {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.stage-icon i {
    font-size: 1.5rem;
}

.stage-content h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.stage-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Liability Content */
.liability-content {
    margin: 30px 0;
}

.liability-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.liability-point {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 71, 0.15);
    transition: all var(--animation-speed) ease;
}

.liability-point:hover {
    background: rgba(255, 183, 71, 0.05);
    transform: translateX(5px);
}

.liability-point i {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-top: 2px;
}

.liability-point h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.liability-point p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 183, 71, 0.2);
    transition: all var(--animation-speed) ease;
}

.contact-item:hover {
    background: rgba(255, 183, 71, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 71, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--animation-speed) ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon i {
    font-size: 1.5rem;
    color: #000;
}

.contact-details h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.5;
}

.response-note {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 183, 71, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 183, 71, 0.3);
    transition: all var(--animation-speed) ease;
    margin-top: 10px;
}

.contact-link:hover {
    background: var(--primary-gradient);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 183, 71, 0.3);
}

/* Responsive Design for Terms */
@media (max-width: 1024px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .terms-sidebar {
        position: static;
        order: -1;
    }
    
    .toc-container {
        padding: 20px;
    }
    
    .toc-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .terms-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .terms-title {
        font-size: 2.5rem;
    }
    
    .terms-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item,
    .stage-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════
                          CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact {
    background: var(--dark-gradient);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    margin-bottom: 30px;
}

.contact-text h3 {
    font-size: 2.8rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    line-height: 1.2;
}

.contact-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.8) 0%, rgba(15, 15, 25, 0.9) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 183, 71, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-height: 100px;
}

.contact-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 183, 71, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-feature:hover::before {
    left: 100%;
}

.contact-feature:hover {
    background: linear-gradient(135deg, rgba(255, 183, 71, 0.1) 0%, rgba(255, 183, 71, 0.05) 100%);
    transform: translateY(-8px);
    border-color: rgba(255, 183, 71, 0.4);
    box-shadow: 0 15px 40px rgba(255, 183, 71, 0.2);
}

.contact-feature i {
    font-size: 2rem;
    color: var(--primary-gold);
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 183, 71, 0.3);
}

.contact-feature:hover i {
    transform: scale(1.1) rotate(5deg);
}

.contact-feature h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-feature p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.contact-action {
    text-align: left;
}


.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.contact-cube {
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    animation: rotateCube 8s linear infinite;
    transform: scale(1.2);
    filter: drop-shadow(0 10px 25px rgba(255, 183, 71, 0.3));
}

.contact-cube .cube-face {
    width: 80px;
    height: 80px;
}

/* ═══════════════════════════════════════════════════════════════
                          SOCIAL LINKS
   ═══════════════════════════════════════════════════════════════ */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--primary-gold);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.social-link.enhanced {
    transition: all var(--animation-speed) ease;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    transition: all var(--animation-speed) ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 120%;
    height: 120%;
}

.social-link:hover {
    color: #000;
    transform: translateY(var(--hover-lift));
    box-shadow: 0 10px 20px rgba(255, 183, 71, 0.3);
}

.social-link i {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
                          FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--animation-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

/* ═══════════════════════════════════════════════════════════════
                          BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-speed) ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 183, 71, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
                          GRID BACKGROUND
   ═══════════════════════════════════════════════════════════════ */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

.grid-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    background: linear-gradient(var(--primary-orange), var(--primary-gold));
    opacity: 0.1;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
    left: 0;
}

.grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: dotPulse 3s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

@keyframes dotPulse {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════════════════
                          ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.entrance-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Enhanced hover effects */
.enhanced {
    position: relative;
    transition: all var(--animation-speed) ease;
}

.enhanced:hover {
    transform: translateY(-3px);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease 1.5s both;
    z-index: 10;
    width: auto;
    white-space: nowrap;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.scroll-arrow i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ═══════════════════════════════════════════════════════════════
                          RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-visual {
        order: -1;
        padding: 20px;
    }
    
    .contact-cube {
        transform: scale(1);
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .projects-stats {
        gap: 40px;
    }
    
    .payment-options {
        gap: 20px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .view-navigation {
        padding: 0 10px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-visual {
        order: -1;
        padding: 20px;
    }
    
    .contact-cube {
        transform: scale(0.8);
    }
    
    .contact-feature {
        min-height: auto;
        padding: 20px;
    }
    
    .contact-text h3 {
        font-size: 2.2rem;
    }
    
    .contact-text p {
        font-size: 1.1rem;
    }
    
    .contact-action {
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .preview-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
                       ENHANCED CUSTOM STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Enhanced Discord Contact Button */
.discord-contact-btn.enhanced {
    background: var(--primary-gradient) !important;
    color: #000 !important;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.discord-contact-btn.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.discord-contact-btn.enhanced:hover::before {
    left: 100%;
}

.discord-contact-btn.enhanced:hover {
    background: var(--primary-gradient) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 127, 0, 0.4);
    border-color: var(--primary-gold);
}

/* Enhanced Skills Section */
.skills-grid .skill-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.skills-grid .skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--animation-speed) ease;
}

.skills-grid .skill-item:hover::before {
    transform: scaleX(1);
}

.skills-grid .skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(255, 127, 0, 0.15);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.skill-icon i {
    font-size: 1.5rem;
    color: #000;
}

.skill-level {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    width: var(--skill-width, 0%);
    transition: width 1s ease 0.5s;
}

/* Icon-only Social Links */
.social-links .social-link.icon-only {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.social-links .social-link.icon-only i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all var(--animation-speed) ease;
    z-index: 2;
    position: relative;
}

.social-links .social-link.icon-only::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    transition: all var(--animation-speed) ease;
    transform: translate(-50%, -50%);
}

.social-links .social-link.icon-only:hover::before {
    width: 100%;
    height: 100%;
}

.social-links .social-link.icon-only:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 127, 0, 0.3);
}

.social-links .social-link.icon-only:hover i {
    color: #000;
    transform: scale(1.1);
}

/* Enhanced Service Card (single card styling) */
.service-card.featured {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 8px 25px rgba(255, 127, 0, 0.15);
}

.service-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.service-badge {
    background: var(--primary-gradient);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: flex;
    justify-content: center;
}

/* Enhanced Contact Section */
.contact {
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 127, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* About Highlights as Skills Grid */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Enhanced Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all var(--animation-speed) ease;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--animation-speed) ease;
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 35px rgba(255, 127, 0, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all var(--animation-speed) ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(255, 127, 0, 0.4);
}

.step-content h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: color var(--animation-speed) ease;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.feature-tag {
    background: rgba(255, 127, 0, 0.1);
    border: 1px solid rgba(255, 127, 0, 0.3);
    color: var(--primary-gold);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--animation-speed) ease;
}

.process-step:hover .feature-tag {
    background: rgba(255, 127, 0, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Responsive Process Timeline */
@media (max-width: 1024px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 600px;
    }
    
    .process-step {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .process-timeline {
        gap: 20px;
    }
    
    .process-step {
        padding: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Modal Mobile */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .viewer-controls {
        gap: 8px;
    }
    
    .view-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .view-btn span {
        display: none;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .view-navigation {
        padding: 0 10px;
    }


/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .process-step,
    .testimonial-card {
        padding: 25px;
    }
    
    .modal-content {
        margin: 10px auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .hero-stats .stat {
        padding: 15px;
    }
    
    .contact-features {
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ═══════════════════════════════════════════════════════════════
                          ACCESSIBILITY & PERFORMANCE
   ═══════════════════════════════════════════════════════════════ */

/* Focus styles for accessibility */
button:focus,
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-cube,
    .spinning-cube {
        animation: none !important;
    }
    
    .grid-line,
    .dot {
        animation: none !important;
        opacity: 0.2 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 183, 71, 0.5);
        --card-bg: rgba(20, 20, 20, 1);
    }
}

/* Performance optimizations */
.floating-cube,
.spinning-cube,
.preview-item,
.portfolio-item {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}