:root {
    --bg-color: #0B0E14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-1: #3B82F6;
    --accent-2: #8B5CF6;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

h2.section-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    background: rgba(11, 14, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: var(--font-heading);
    color: var(--accent-1);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Grid Layouts for Detailed Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Individual Project Detail Architecture */
.project-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2.5rem;
}

@media(max-width: 900px) {
    .project-card { grid-template-columns: 1fr; }
}

.project-visuals {
    display: flex;
    flex-direction: column;
}

.project-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: 0.3s ease;
}
.project-thumbnail:hover {
    border-color: var(--accent-1);
    transform: scale(1.02);
}

.project-data {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-purpose {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-subhead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.25rem;
    display: inline-block;
}

.project-list {
    list-style-type: none;
    margin-bottom: 2rem;
}

.project-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
    font-weight: 500;
}
.tag.frontend { border-color: rgba(59, 130, 246, 0.3); color: #93C5FD; }
.tag.backend { border-color: rgba(139, 92, 246, 0.3); color: #C4B5FD; }
.tag.database { border-color: rgba(16, 185, 129, 0.3); color: #6EE7B7; }

/* Apps Section */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);color: var(--text-secondary);
    font-weight: 500;
}
.badge.play-store {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
}
.badge.apkpure {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
}
.badge.appbrain {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
}

/* Seminars */
.seminars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Blog */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}
.close-modal:hover { color: var(--accent-1); }

.nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    background: rgba(255,255,255,0.05); /* subtle */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    user-select: none;
    backdrop-filter: blur(5px);
}
.next-btn { right: 20px; }
.prev-btn { left: 20px; }

.nav-btn:hover { background: rgba(59, 130, 246, 0.4); border-color: rgba(59, 130, 246, 0.8); }

.image-counter {
    position: absolute;
    top: 25px;
    left: 35px;
    color: var(--text-secondary);
    font-size: 16px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Animations */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

.orb-1 { top: 20%; left: 10%; width: 400px; height: 400px; background: var(--accent-1); }
.orb-2 { bottom: -10%; right: 10%; width: 500px; height: 500px; background: var(--accent-2); }

.bounce-in { animation: bounceIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
