/* ==========================================================================
   Premium Design Enhancements
   ========================================================================== */

/* Import Modern Premium Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Color Palette */
    --premium-primary: #0EA5E9;
    /* Vibrant Light Blue */
    --premium-secondary: #10B981;
    /* Emerald/Teal */
    --premium-dark: #0F172A;
    /* Slate 900 */
    --premium-darker: #020617;
    /* Slate 950 */
    --premium-light: #F8FAFC;
    /* Slate 50 */
    --premium-accent: #F59E0B;
    /* Amber */

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--premium-light);
    color: #334155;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Component: Glassmorphic Navigation
   ========================================================================== */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--premium-dark);
    padding: 25px 15px;
    position: relative;
    transition: color 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--premium-primary);
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--premium-primary);
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* ==========================================================================
   Component: Premium Buttons
   ========================================================================== */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--premium-primary), #0284C7);
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    color: #fff !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #0284C7, var(--premium-primary));
}

.btn-secondary {
    background: var(--premium-secondary);
    border: none;
    color: white;
}

.btn-light {
    background: white;
    color: var(--premium-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
}

.btn-light:hover {
    box-shadow: var(--shadow-glow);
    color: var(--premium-primary);
}

/* ==========================================================================
   Hero Section Enhancements
   ========================================================================== */
.premium-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--premium-dark);
    margin-top: 0 !important;
    padding-top: 80px;
    /* Accounts for fixed nav */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    color: var(--premium-primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--premium-primary);
    position: relative;
}

/* ==========================================================================
   Component: Premium Cards & Hover Effects
   ========================================================================== */
.glass-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.icon-box-premium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--premium-light), white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: var(--premium-primary);
    font-size: 32px;
    transition: all 0.4s;
}

.glass-card:hover .icon-box-premium {
    background: var(--premium-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.section-premium {
    padding: 100px 0;
    position: relative;
}

.bg-premium-dark {
    background-color: var(--premium-dark);
    color: white;
}

.section-title-premium {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--premium-primary);
    border-radius: 2px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--premium-primary), var(--premium-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Portfolio Hover Enhancements */
.portfolio-item .portfolio-img {
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-item .portfolio-img img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-text {
    background: var(--glass-bg-dark) !important;
    backdrop-filter: blur(10px);
    border-radius: 0 0 16px 16px;
}

/* Adjust top bar */
.top-bar-premium {
    background: var(--premium-darker);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar-premium a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.top-bar-premium a:hover {
    color: var(--premium-primary);
}

/* Utility constraints */
.rounded-premium {
    border-radius: 24px !important;
}

.overflow-hidden-premium {
    overflow: hidden;
}

/* Make navbar fixed */
.navbar-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-premium {
        padding: 40px 0 !important;
    }

    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .my-5,
    .mt-5,
    .mb-5 {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    .magic-quote-text {
        font-size: 1.3rem !important;
    }

    .premium-hero {
        min-height: 80vh !important;
        height: auto;
    }
}

.magic-quote-text {
    font-size: 2.5rem;
}