:root {
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0; /* Much brighter, cleaner off-white/grey */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    --gradient-1: #6366f1; /* Indigo */
    --gradient-2: #8b5cf6; /* Violet */
    --gradient-3: #d946ef; /* Fuchsia */
    --gradient-4: #06b6d4; /* Cyan */
}

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

body {
    font-family: 'Outfit', sans-serif;
    /* Very dark background */
    background: #0b0f19;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Floating 3D Background Elements - Subdued colors */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glass-shape {
    position: absolute;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
    animation: float 8s ease-in-out infinite alternate;
}

/* Bright vibrant visuals floating in the dark */
.shape-1 { width: 180px; height: 180px; top: 10%; left: 12%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.3)); }
.shape-2 { width: 250px; height: 250px; top: 55%; right: 5%; border-radius: 50%; background: linear-gradient(135deg, rgba(217, 70, 239, 0.7), rgba(244, 63, 94, 0.3)); animation-delay: -2s; }
.shape-3 { width: 120px; height: 120px; top: 20%; right: 25%; transform: rotate(45deg); background: linear-gradient(135deg, rgba(6, 182, 212, 0.7), rgba(59, 130, 246, 0.3)); }
.shape-4 { width: 200px; height: 200px; bottom: 10%; left: 20%; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; background: linear-gradient(135deg, rgba(16, 185, 129, 0.7), rgba(20, 184, 166, 0.3)); animation-delay: -4s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-40px) rotate(10deg); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.brand-link {
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.logo-typography {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-main {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.logo-highlight {
    font-weight: 300;
    color: #ffffff; /* Bright white instead of dull grey */
    margin-left: 2px;
}

.logo-dot {
    color: #00f2fe;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--gradient-4);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gradient-4);
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

/* Extremely bright glowing name */
.gradient-text {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 242, 254, 0.6); /* Adds the bright neon glow */
    display: inline-block;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 500;
    line-height: 1.7;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    border: none;
}

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

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 5% 8rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

/* 3D Glass Cards - Dark Mode */
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.card-content {
    transform: translateZ(30px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 8px 16px rgba(0,0,0,0.4);
    margin-bottom: 1.5rem;
    transform: translateZ(50px);
}

.horizontal-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
}

.card-left {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-left .project-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.icon-orange { color: #ff8e53; border-color: rgba(255, 142, 83, 0.3); box-shadow: inset 0 0 20px rgba(255, 142, 83, 0.1), 0 8px 16px rgba(0,0,0,0.4); }
.icon-cyan { color: #00f2fe; border-color: rgba(0, 242, 254, 0.3); box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1), 0 8px 16px rgba(0,0,0,0.4); }
.icon-purple { color: #d57eeb; border-color: rgba(213, 126, 235, 0.3); box-shadow: inset 0 0 20px rgba(213, 126, 235, 0.1), 0 8px 16px rgba(0,0,0,0.4); }

.project-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gradient-4);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateZ(20px);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transform: translateZ(40px);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-weight: 400; /* Lighter weight for cleaner look */
    letter-spacing: 0.3px;
    transform: translateZ(20px);
}

.project-link {
    display: inline-block;
    color: var(--gradient-4);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    transform: translateZ(30px);
}

.project-link:hover {
    color: #fff;
    transform: translateZ(30px) translateX(5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-secondary);
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 5%;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 2rem;
    }
    
    /* Hero Section */
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 2.8rem; }
    .hero-desc { font-size: 1.1rem; }
    .glass-shape { display: none; } /* Hide floating elements on mobile for performance */
    
    /* Portfolio Section */
    .section-header h2 { font-size: 2.2rem; }
    .project-card { 
        padding: 1.5rem; 
        border-radius: 16px;
    }
    .horizontal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .card-left {
        flex: auto;
    }
    .card-right {
        align-items: center;
    }
    .card-right p {
        text-align: left;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}
