/* ========================================
   PREMIUM PORTFOLIO - Global Styles
   Inspired by Good Day with premium touch
   ======================================== */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Premium Dark Theme */
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --tertiary: #3a3a3a;
    --accent: #c9a227;
    --accent-light: #e8c547;
    --accent-dark: #a68a1f;
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --gradient-gold: linear-gradient(135deg, #c9a227, #e8c547);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 5px 30px rgba(201, 162, 39, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent);
}

/* ============================================
   NAVIGATION - Sidebar Style
   ============================================ */
.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background: var(--secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar:hover {
    width: 240px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.nav-logo .logo-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.nav-logo .logo-text {
    opacity: 0;
    transition: var(--transition-medium);
}

.navbar:hover .logo-text {
    opacity: 1;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0 1rem;
    flex: 1;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    overflow: hidden;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass-bg);
    color: var(--accent);
}

.nav-link .nav-icon {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.nav-link .nav-text {
    opacity: 0;
    transition: var(--transition-medium);
}

.navbar:hover .nav-text {
    opacity: 1;
}

.nav-footer {
    margin-top: auto;
    padding: 1rem;
    width: 100%;
}

.nav-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-fast);
    margin: 0 auto;
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    margin-left: 80px;
    min-height: 100vh;
    transition: var(--transition-medium);
}

.section {
    padding: 5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 10s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--tertiary);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--glass-bg);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.masonry-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* ============================================
   FEATURED GRID (Good Day Style)
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.featured-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.featured-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.featured-item:hover .featured-bg {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.featured-item:first-child .featured-title {
    font-size: 2.5rem;
}

.featured-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.featured-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: var(--transition-fast);
}

/* 3D Pop-up Surface Effect */
.featured-grid {
    perspective: 1000px;
}

.featured-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.featured-item:hover {
    transform: translateZ(50px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(201, 162, 39, 0.2),
        0 0 0 2px rgba(201, 162, 39, 0.3);
}

/* 3D Lift Animation for Content */
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transform: translateZ(30px);
    transition: all 0.4s ease;
}

.featured-item:hover .featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

/* 3D Title Pop */
.featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateZ(0);
    transition: all 0.3s ease 0.1s;
}

.featured-item:hover .featured-title {
    transform: translateY(-5px);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.featured-item:first-child .featured-title {
    font-size: 2.5rem;
}

/* 3D Description */
.featured-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.8;
    transform: translateY(10px);
    transition: all 0.3s ease 0.15s;
}

.featured-item:hover .featured-description {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Arrow Button */
.featured-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(201, 162, 39, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    transform: translateZ(60px) scale(0.5) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.4);
}

.featured-item:hover .featured-arrow {
    opacity: 1;
    transform: translateZ(60px) scale(1) rotate(0deg);
}

/* Floating Animation */
@keyframes float3d {
    0%, 100% { transform: translateZ(0) translateY(0); }
    50% { transform: translateZ(10px) translateY(-5px); }
}

.featured-item:not(:hover) {
    animation: float3d 4s ease-in-out infinite;
}

.featured-item:nth-child(2) { animation-delay: 0.5s; }
.featured-item:nth-child(3) { animation-delay: 1s; }
.featured-item:nth-child(4) { animation-delay: 1.5s; }
.featured-item:nth-child(5) { animation-delay: 2s; }

/* ============================================
   SKILL BARS
   ============================================ */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    background: var(--secondary);
    border-radius: 15px;
    padding: 1.25rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    color: var(--accent);
}

.skill-bar {
    height: 8px;
    background: var(--tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-muted);
}

/* ============================================
   ZODIAC WHEEL (Horoscope)
   ============================================ */
.zodiac-wheel {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.zodiac-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--secondary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.zodiac-center .selected-sign {
    font-size: 2.5rem;
}

.zodiac-center .selected-name {
    font-size: 0.9rem;
    color: var(--accent);
}

.zodiac-sign {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.zodiac-sign:hover,
.zodiac-sign.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.15);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-medium);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Memory Game */
.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 10px;
    justify-content: center;
    margin: 2rem 0;
}

.memory-card {
    width: 80px;
    height: 80px;
    background: var(--tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.memory-card.flipped {
    background: var(--accent);
}

.memory-card.matched {
    background: #4ade80;
    cursor: default;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem;
    margin-left: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* ============================================
   RESPONSIVE DESIGN - All Devices
   Desktop: 1200px+
   Laptop: 1024px - 1199px
   Tablet Landscape: 768px - 1023px
   Tablet Portrait: 600px - 767px
   Mobile Large: 480px - 599px
   Mobile Small: < 480px
   ============================================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .section-container {
        max-width: 1400px;
    }
    .hero-title {
        font-size: 6rem;
    }
}

/* Laptop (1024px - 1199px) */
@media (max-width: 1199px) {
    .section {
        padding: 4rem 2rem;
    }
    .grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .featured-grid { 
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
    }
    .featured-item:first-child { 
        grid-column: span 2; 
        grid-row: span 1;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    .navbar {
        width: 70px;
    }
    .navbar:hover {
        width: 200px;
    }
    .main-content {
        margin-left: 70px;
    }
    .footer {
        margin-left: 70px;
    }
    .grid-3 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .masonry-grid { 
        columns: 2; 
    }
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .zodiac-wheel {
        width: 350px;
        height: 350px;
    }
    .zodiac-sign {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
    /* Navigation becomes top bar */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        z-index: 1000;
    }
    
    .navbar:hover {
        width: 100%;
    }
    
    .nav-logo {
        margin-bottom: 0;
    }
    
    .nav-logo .logo-text {
        opacity: 1;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
    }
    
    .nav-link .nav-text {
        opacity: 1;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-footer {
        display: none;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        margin-top: 70px;
    }
    
    .section {
        padding: 3rem 1.5rem;
        min-height: auto;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Grids single column */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .masonry-grid {
        columns: 1;
    }
    
    /* Featured Grid */
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }
    
    .featured-item {
        min-height: 200px;
    }
    
    .featured-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .featured-item:first-child .featured-title {
        font-size: 1.75rem;
    }
    
    .featured-overlay {
        padding: 1.5rem;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: calc(100vh - 70px);
        padding-top: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    /* Cards */
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    /* Footer */
    .footer {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* About page - Profile image smaller */
    .profile-image-container {
        width: 250px !important;
        height: 250px !important;
    }
    
    /* Zodiac wheel smaller */
    .zodiac-wheel {
        width: 280px;
        height: 280px;
    }
    
    .zodiac-center {
        width: 100px;
        height: 100px;
    }
    
    .zodiac-center .selected-sign {
        font-size: 2rem;
    }
    
    .zodiac-sign {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    /* Games */
    .game-card {
        padding: 1.5rem;
    }
    
    .game-icon {
        font-size: 3rem;
    }
    
    .memory-board {
        grid-template-columns: repeat(4, 65px);
        gap: 8px;
    }
    
    .memory-card {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: -2rem;
        transform: translateX(-5px);
    }
}

/* Mobile Large (480px - 599px) */
@media (max-width: 599px) {
    .section {
        padding: 2.5rem 1rem;
    }
    
    .section-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .featured-item {
        min-height: 180px;
    }
    
    .featured-item:first-child {
        min-height: 220px;
    }
    
    /* Skill bars */
    .skill-item {
        padding: 1rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    /* Stats */
    .stat-item h3 {
        font-size: 2rem !important;
    }
    
    /* Cards */
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    /* Profile circle */
    .profile-image-container {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* Zodiac */
    .zodiac-wheel {
        width: 240px;
        height: 240px;
    }
    
    .zodiac-center {
        width: 80px;
        height: 80px;
    }
    
    .zodiac-center .selected-sign {
        font-size: 1.5rem;
    }
    
    .zodiac-sign {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Memory game */
    .memory-board {
        grid-template-columns: repeat(4, 55px);
        gap: 6px;
    }
    
    .memory-card {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Mobile Small (< 480px) */
@media (max-width: 479px) {
    .navbar {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1.5rem 1rem;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .section {
        padding: 2rem 0.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Featured grid smaller */
    .featured-item {
        min-height: 150px;
        border-radius: 12px;
    }
    
    .featured-item:first-child {
        min-height: 180px;
    }
    
    .featured-overlay {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1.1rem;
    }
    
    .featured-item:first-child .featured-title {
        font-size: 1.35rem;
    }
    
    .featured-description {
        font-size: 0.8rem;
    }
    
    /* Stats grid 2 columns */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.75rem !important;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    /* Cards smaller */
    .card {
        border-radius: 12px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Profile circle smaller */
    .profile-image-container {
        width: 160px !important;
        height: 160px !important;
    }
    
    /* Timeline compact */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
        width: 10px;
        height: 10px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
    }
    
    /* Zodiac even smaller */
    .zodiac-wheel {
        width: 200px;
        height: 200px;
    }
    
    .zodiac-center {
        width: 60px;
        height: 60px;
    }
    
    .zodiac-center .selected-sign {
        font-size: 1.25rem;
    }
    
    .zodiac-center .selected-name {
        font-size: 0.7rem;
    }
    
    .zodiac-sign {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    /* Games compact */
    .game-card {
        padding: 1.25rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.85rem;
    }
    
    .memory-board {
        grid-template-columns: repeat(4, 45px);
        gap: 5px;
    }
    
    .memory-card {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    
    /* Footer compact */
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-links {
        gap: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Landscape orientation for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .section {
        min-height: auto;
    }
    
    .navbar {
        height: 50px;
    }
    
    .nav-menu {
        top: 50px;
        height: calc(100vh - 50px);
    }
    
    .main-content {
        margin-top: 50px;
    }
}

/* Print styles */
@media print {
    .navbar, .nav-toggle, .loading-screen {
        display: none;
    }
    
    .main-content {
        margin: 0;
    }
    
    .section {
        break-inside: avoid;
    }
}

/* ============================================
   PREMIUM INTERACTIVE FEATURES
   ============================================ */

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.5;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--accent-light);
    background: rgba(201, 162, 39, 0.1);
}

.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--accent);
    transform: rotate(180deg);
    box-shadow: var(--shadow-gold);
}

.theme-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Light Mode Styles */
body.light-mode {
    --primary: #f5f5f5;
    --secondary: #e8e8e8;
    --tertiary: #d0d0d0;
    --text-primary: #1a1a1a;
    --text-secondary: #444444;
    --text-muted: #666666;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-icon::after {
    content: '☀️';
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5);
}

.back-to-top span {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9996;
    transition: all 0.3s ease;
    animation: pulse-contact 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes pulse-contact {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(201, 162, 39, 0); }
}

.floating-contact:hover {
    background: var(--accent);
    transform: scale(1.1);
    animation: none;
}

.floating-contact span {
    font-size: 1.75rem;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* Easter Egg Overlay */
.easter-egg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.easter-egg-overlay.active {
    opacity: 1;
    visibility: visible;
}

.easter-egg-content {
    text-align: center;
    padding: 3rem;
    background: var(--secondary);
    border: 2px solid var(--accent);
    border-radius: 20px;
    transform: scale(0.5) rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
}

.easter-egg-overlay.active .easter-egg-content {
    transform: scale(1) rotate(0deg);
}

.easter-egg-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.easter-egg-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.easter-egg-content button {
    padding: 0.75rem 2rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: 30px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.easter-egg-content button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* Social Link Hover Enhancement */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: scale(1.2) rotate(360deg);
}

/* Page Transition Effect */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.page-transition.active {
    transform: translateX(0);
}

/* Responsive for Mobile */
@media (max-width: 767px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    .theme-toggle {
        top: 15px;
        right: 70px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 90px;
        width: 45px;
        height: 45px;
    }
    
    .floating-contact {
        right: 15px;
        bottom: 150px;
        width: 50px;
        height: 50px;
    }
}
