:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --light-bg: #fefce8;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ddd6fe 100%) !important;
    background-attachment: fixed;
    color: var(--text-dark) !important;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Text Colors */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark) !important;
    font-weight: 700;
}

p,
span,
div,
label {
    color: var(--text-dark) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-light {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-dark) !important;
}

.opacity-75 {
    opacity: 0.8 !important;
}

/* Glassmorphism - Light Version */
.glass-effect {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(99, 102, 241, 0.1) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 0 0 3px rgba(236, 72, 153, 0.1) !important;
    border-color: rgba(236, 72, 153, 0.3) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    position: relative;
}

.absolute-bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--text-dark) !important;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 800;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0.75rem 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
    color: white !important;
}

.btn-outline-light {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: white !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
}

/* Forms */
.form-control {
    background: white !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-control:focus {
    background: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15) !important;
    color: var(--text-dark) !important;
}

.form-label {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    background: white !important;
    border: 2px solid rgba(99, 102, 241, 0.1) !important;
    border-radius: 1.5rem;
}

.card-title {
    color: var(--text-dark) !important;
}

.card-text {
    color: var(--text-muted) !important;
}

/* Icons */
.icon-box {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

.hover-lift:hover .icon-box {
    transform: scale(1.15) rotate(5deg);
}

/* Tech Stack Strip */
.bg-black {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
}

.bg-black * {
    color: white !important;
}

/* Utilities */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.z-1 {
    z-index: 1;
}

/* Alerts */
.alert {
    border-radius: 1rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534 !important;
    border: 2px solid #86efac;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b !important;
    border: 2px solid #fca5a5;
}

/* Background Sections */
.bg-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

.bg-primary * {
    color: white !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    color: white !important;
}

footer * {
    color: white !important;
}

footer a:hover {
    color: #fbbf24 !important;
}

/* Links */
a:not(.btn):not(.nav-link) {
    color: var(--primary-color) !important;
    font-weight: 500;
}

a:not(.btn):not(.nav-link):hover {
    color: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fef3c7;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #db2777);
}

/* Selection */
::selection {
    background: #fbbf24;
    color: #1f2937;
}

/* Decorative Elements */
.code-block {
    background: rgba(99, 102, 241, 0.05);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Project Images */
.project-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .project-image {
    transform: scale(1.08);
}

/* Partners Section */
.partner-logo-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.glass-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}