/* Premium Dark Theme Variables */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(30, 30, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #7b2cbf;
    /* Vivid Purple */
    --accent-glow: rgba(123, 44, 191, 0.5);
    --gradient-1: linear-gradient(135deg, #3a0ca3, #4361ee, #4cc9f0);
    --gradient-text: linear-gradient(90deg, #f72585, #7209b7, #3a0ca3, #4361ee, #4cc9f0);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    /* Changed to Outfit for deeper impact */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-glow), 0 0 10px var(--accent);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-glow);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s;
    margin-left: 1.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Ambient Background Glows */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.btn-premium {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
    color: white;
}

/* Services */
.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(114, 9, 183, 0.5);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #4cc9f0;
}

/* Projects */
.project-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(67, 97, 238, 0.5);
}

.card-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.tech-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    margin-right: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    border-top: var(--glass-border);
    background: #020202;
    padding: 4rem 0 2rem;
    text-align: center;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 1rem;
    transition: 0.3s;
}

.social-icon:hover {
    color: #4cc9f0;
    transform: scale(1.2);
}