:root {
    --bg-dark: #0a0a0f;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --secondary-color: #ec4899;
}

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

/* Page Transitions */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadePageIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadePageIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body.fade-out {
    animation: fadePageOut 0.2s ease forwards;
}

@keyframes fadePageOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    transition: transform 0.2s ease-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 100;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

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

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-right: -10px;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin-top: 5rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
    background: #5355e1;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Hub Section */
.hub-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hub-container {
    width: 100%;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.hub-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 250px;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.hub-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hub-card:hover::before {
    opacity: 1;
}

/* Unique Hover Colors for specific cards index styling */
.hub-card:nth-child(2):hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.hub-card:nth-child(3):hover {
    border-color: rgba(16, 185, 129, 0.4);
}

/* Green */
.hub-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
}

.hub-card:nth-child(4):hover {
    border-color: rgba(245, 158, 11, 0.4);
}

/* Orange */
.hub-card:nth-child(4)::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
}


.card-content {
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Card Background Images */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
    transition: transform 0.6s ease, opacity 0.4s ease;
    mix-blend-mode: luminosity;
}

.hub-card:hover .card-bg {
    transform: scale(1.05);
    opacity: 0.5;
    mix-blend-mode: normal;
}

/* Card Icons */
.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px currentColor);
}

.hub-card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Specific Card Category Colors */
.c-ai {
    color: var(--accent-color);
}

.c-tech {
    color: rgba(236, 72, 153, 1);
}

.c-design {
    color: rgba(16, 185, 129, 1);
}

.c-games {
    color: rgba(245, 158, 11, 1);
}

.hub-card:nth-child(1):hover .icon-wrapper {
    box-shadow: 0 0 25px var(--accent-glow);
}

.hub-card:nth-child(2):hover .icon-wrapper {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}

.hub-card:nth-child(3):hover .icon-wrapper {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.hub-card:nth-child(4):hover .icon-wrapper {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

/* Page Headers (Subpages) */
.page-content {
    padding-top: 150px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    flex: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 1rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header .card-bg {
    opacity: 0.35;
    mix-blend-mode: normal;
}

.page-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header .icon-wrapper {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .card-icon {
    width: 20px;
    height: 20px;
}

.page-header .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
    margin-top: 0.2rem;
}

.page-header .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    max-width: 950px;
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .page-header .hero-title {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }
}

/* Projects Grid (Subpages) */
.projects-section {
    margin-bottom: 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-media {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.media-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

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

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 600;
}

.tag-role {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    /* Accent color tint */
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-play:hover {
    background: #5355e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-play svg {
    width: 16px;
    height: 16px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Project Details Page */
.breadcrumb {
    margin-bottom: 0;
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 900;
    pointer-events: none;
}

.back-link {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.15);
    /* Subtle accent tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: auto;
}

.back-link:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.8);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .breadcrumb {
        bottom: 20px;
        left: 20px;
    }

    .back-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.project-hero {
    margin-bottom: 4rem;
    text-align: center;
}

.hero-video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: #000;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

.project-body {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.project-description h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.challenge-list {
    list-style: none;
    margin-left: 0;
}

.challenge-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.challenge-list li::before {
    content: 'â–¹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.challenge-list li strong {
    color: var(--text-primary);
}

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

.gallery-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
}

.gallery-item .media-placeholder {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #151520;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: none;
}

.caption {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1000;
        transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
    }
}
