:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-hover: rgba(51, 65, 85, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Background Animations */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 30%),
                radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 30%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
    border-radius: 50%;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(150px, 100px) scale(1.3) rotate(45deg); }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 40px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links li a:hover {
    color: var(--primary-light);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 120px auto 40px auto;
    padding: 0 20px;
}

/* Glass Panels (Reusable) */
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Typography styles */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Lists inside content (exclude nav) */
.glass-panel ul {
    list-style: none;
    margin-bottom: 20px;
}

.glass-panel ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.glass-panel ul li::before {
    content: '✧';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.contact-email {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-email:hover {
    color: #fff;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .section-title { font-size: 2rem; }
    .glass-panel { padding: 30px; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* Advanced Bento UI */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
    margin-top: 50px;
    perspective: 1000px;
}

.bento-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(60px);
}

.bento-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance for Bento */
.bento-item:nth-child(1) { transition-delay: 0.1s; grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(15, 23, 42, 0.6)); }
.bento-item:nth-child(2) { transition-delay: 0.2s; grid-column: span 2; }
.bento-item:nth-child(3) { transition-delay: 0.3s; }
.bento-item:nth-child(4) { transition-delay: 0.4s; }
.bento-item:nth-child(5) { transition-delay: 0.1s; grid-column: span 2; }
.bento-item:nth-child(6) { transition-delay: 0.2s; }
.bento-item:nth-child(7) { transition-delay: 0.3s; }
.bento-item:nth-child(8) { transition-delay: 0.4s; grid-column: span 2; background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(15, 23, 42, 0.6));}
.bento-item:nth-child(9) { transition-delay: 0.1s; }
.bento-item:nth-child(10) { transition-delay: 0.2s; }
.bento-item:nth-child(11) { transition-delay: 0.3s; grid-column: span 2; }
.bento-item:nth-child(12) { transition-delay: 0.4s; }
.bento-item:nth-child(13) { transition-delay: 0.1s; }
.bento-item:nth-child(14) { transition-delay: 0.2s; grid-column: span 2; }
.bento-item:nth-child(15) { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .bento-item:nth-child(1), .bento-item:nth-child(5), .bento-item:nth-child(8), .bento-item:nth-child(11), .bento-item:nth-child(14) { grid-column: span 2; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* Spinning Glow Effect */
.bento-item::before {
    content: '';
    position: absolute;
    top: -100%; left: -100%; width: 300%; height: 300%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(99, 102, 241, 0.2) 20%, transparent 40%);
    animation: rotate-glow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate-glow {
    100% { transform: rotate(360deg); }
}

/* Glass Shine Effect */
.bento-item::after {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    pointer-events: none;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
    z-index: 10;
}

.bento-item:hover::before { opacity: 1; }
.bento-item:hover::after { left: 200%; }

.bento-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.bento-item:hover .bento-icon {
    transform: scale(1.15) translateY(-10px) rotate(5deg);
}

.bento-item h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.bento-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}
