:root {
    --bg: #030303;
    --bg-alt: #0a0a0a;
    --accent: #dca032; /* Rich Gold */
    --accent-light: #f1d382; /* Pale Gold */
    --card-bg: rgba(15, 15, 15, 0.6); /* Glassmorphism Dark */
    --border: rgba(220, 160, 50, 0.25); /* Faint Gold Border */
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(220, 160, 50, 0.02);
}

/* Base Setup */
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    
    /* 1 & 2: Subtle Gold Gridlines
      3, 4 & 5: Faint Golden Curves / Circular Glows
      6: Deep Black Base
    */
    background: 
        /* GRID LINES: Increased opacity from 0.04 to 0.12 */
        linear-gradient(rgba(162, 111, 15, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 149, 10, 0.049) 1px, transparent 1px),
        /* FAINT GOLDEN CURVES & GLOWS */
        radial-gradient(ellipse 100% 100% at -10% 20%, rgba(220, 160, 50, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 120% 120% at 110% 80%, rgba(220, 160, 50, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 50% 120%, rgba(220, 160, 50, 0.05) 0%, transparent 60%),
        var(--bg);
        
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Space Grotesk', sans-serif; }

/* Navigation */
nav {
    background: rgba(3, 3, 3, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(220, 160, 50, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 30px;
    box-shadow: 0 4px 30px rgba(220, 160, 50, 0.05);
}
.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.logo { font-size: 1.1rem; letter-spacing: 2px; color: #fff; font-weight: 700; margin: 0; }
.nav-links { position: absolute; right: 30px; }
.nav-links a { color: var(--text-dim); text-decoration: none; margin-left: 20px; font-size: 0.8rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 60px 20px; text-align: center; }
.badge { 
    background: rgba(220, 160, 50, 0.05); 
    padding: 10px 25px; 
    border-radius: 100px; 
    font-size: 1.1rem; 
    color: var(--accent); 
    border: 1px solid var(--accent); 
    display: inline-block; 
    font-weight: 600; 
    box-shadow: 0 0 15px rgba(220, 160, 50, 0.1);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-top: 25px; letter-spacing: -2px; }
.hero p { color: #888; max-width: 800px; margin: 15px auto; font-size: 1.2rem; line-height: 1.6; }

/* Domain Selector */
.category-selector { display: flex; gap: 30px; max-width: 95%; margin: 40px auto; padding: 20px; }
.big-card {
    flex: 1; 
    background: var(--card-bg); 
    backdrop-filter: blur(12px); 
    border: 1px solid var(--border); 
    padding: 70px 40px;
    border-radius: 30px; 
    cursor: pointer; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

/* Faint golden curve effect inside the cards */
.big-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(220, 160, 50, 0.05) 0%, transparent 60%);
    transition: 0.4s ease;
}

.big-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-10px); 
    background: rgba(20, 20, 20, 0.8); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 20px rgba(220, 160, 50, 0.1); 
}
.big-card:hover::before { transform: scale(1.2); }

.card-icon { font-size: 3.5rem; margin-bottom: 25px; position: relative; z-index: 1;}
.big-card h2 { font-size: 2.4rem; margin-bottom: 15px; color: #fff; position: relative; z-index: 1;}
.big-card p { color: #999; font-size: 1.15rem; margin-bottom: 35px; line-height: 1.6; max-width: 450px; margin-left: auto; margin-right: auto; position: relative; z-index: 1;}
.explore-btn { font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 5px; transition: 0.3s; position: relative; z-index: 1;}
.big-card:hover .explore-btn { color: var(--accent-light); border-color: var(--accent-light); }

/* Portfolio Viewer */
.portfolio-section { max-width: 98%; margin: 0 auto; padding: 20px; animation: slideUp 0.5s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.section-header { display: flex; align-items: center; gap: 30px; margin-bottom: 50px; border-bottom: 1px solid rgba(220, 160, 50, 0.15); padding-bottom: 20px; }
.back-btn { background: rgba(220, 160, 50, 0.05); border: 1px solid var(--border); color: var(--text-dim); padding: 12px 25px; border-radius: 12px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.back-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(220, 160, 50, 0.1); }

.bento-grid { column-count: 3; column-gap: 25px; }
.bento-item { 
    break-inside: avoid; 
    background: var(--card-bg); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border); 
    border-radius: 24px; 
    padding: 40px; 
    margin-bottom: 25px; 
    transition: 0.3s ease;
    box-shadow: var(--card-shadow);
}
.bento-item:hover {
    border-color: rgba(220, 160, 50, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 15px rgba(220, 160, 50, 0.05);
}

.bento-item h3 { font-size: 1.6rem; color: var(--accent); margin-bottom: 15px; text-transform: capitalize; }
.bento-item p { color: var(--text-dim); font-size: 1rem; line-height: 1.6; margin-bottom: 25px; }
.cta-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-top: 20px; display: inline-block; border-bottom: 1px solid #444; padding-bottom: 3px; transition: 0.3s; }
.cta-link:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* =========================================
   MOBILE & TABLET RESPONSIVENESS
   (Must remain at the bottom of style.css)
   ========================================= */

/* Tablet adjustments */
@media (max-width: 1100px) { 
    .category-selector { 
        flex-direction: column; /* Stacks the two big domain cards */
    } 
    .bento-grid { 
        column-count: 2; /* Drops portfolio to 2 columns */
    } 
}

/* Mobile phone adjustments */
@media (max-width: 768px) { 
    /* Fix the Navigation overlapping */
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        position: relative; 
        right: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .nav-links a {
        margin-left: 0; 
    }

    /* Fix the squished portfolio cards */
    .bento-grid { 
        column-count: 1; /* Drops portfolio to 1 single column */
    } 
    
    /* Give text more breathing room inside cards */
    .big-card {
        padding: 40px 20px; 
    }
    .bento-item {
        padding: 30px 20px;
    }

    /* Adjust giant hero text size for small screens */
    .hero h1 { 
        font-size: 2.8rem; 
    }
}

/* Footer */
footer { text-align: center; padding: 100px 0; color: #555; font-size: 0.75rem; letter-spacing: 2px; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-links a { color: var(--text-dim); transition: 0.3s ease; }
.social-links a:hover { color: var(--accent); transform: translateY(-3px); }
