/* ----------------------------------------------------------------------
   ROOT VARIABLES & RESET
------------------------------------------------------------------------- */
:root {
    --bg-dark: #0f1014;
    --primary: #008080;
    --primary-glow: rgba(0, 128, 128, 0.4);
    --secondary: #5865F2;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass: rgba(22, 24, 29, 0.75);
    --glass-hover: rgba(30, 33, 40, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    inset: -20px;
    background: linear-gradient(rgba(15, 16, 20, 0.92), rgba(15, 16, 20, 0.96)),
                url('https://finncrafted.com/assets//img/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    z-index: -2;
}

/* ----------------------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

p {
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.text-highlight {
    background: linear-gradient(45deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ----------------------------------------------------------------------
   BUTTONS
------------------------------------------------------------------------- */
.btn-primary-glow {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--primary-glow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--primary-glow);
    color: #fff;
    background: var(--primary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 32px;
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ----------------------------------------------------------------------
   CARDS & GLASS EFFECTS
------------------------------------------------------------------------- */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

/* ----------------------------------------------------------------------
   NAVBAR
------------------------------------------------------------------------- */
.navbar-custom {
    background: rgba(15, 16, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.navbar-brand:hover {
    color: var(--text-main);
    transform: scale(1.02);
}

.nav-link {
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding: 8px 16px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar Dropdown */
.glass-dropdown {
    background: rgba(22, 23, 28, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    padding: 0.5rem;
}

.glass-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.2s;
    color: #e0e0e0;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.hover-discord:hover {
    color: #5865F2 !important;
    transform: scale(1.1);
    transition: transform 0.2s;
}

.nav-link img {
    object-fit: cover;
}

/* ----------------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------------------- */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero .badge {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* ----------------------------------------------------------------------
   FEATURES & ICON BOXES
------------------------------------------------------------------------- */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.glass-card:hover .icon-box {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ----------------------------------------------------------------------
   PORTFOLIO / PROJECT CARDS
------------------------------------------------------------------------- */
.project-img {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.glass-card:hover .project-img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-warning {
    background-color: #fbbf24 !important;
}

/* ----------------------------------------------------------------------
   SWIPER SLIDER
------------------------------------------------------------------------- */
.swiper-slide {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.slide-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    background: #222;
}

.slide-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.swiper-slide .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------------- */
footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.hover-pink:hover {
    color: var(--primary) !important;
}

.hover-white:hover {
    color: #fff !important;
}

.transition-all {
    transition: all 0.2s ease;
}

footer a {
    transition: all 0.2s ease;
}

footer .fs-5 {
    font-size: 1.5rem;
}

/* ----------------------------------------------------------------------
   FORMS
------------------------------------------------------------------------- */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem var(--primary-glow);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ----------------------------------------------------------------------
   UTILITIES
------------------------------------------------------------------------- */
.border-start {
    border-left-width: 4px !important;
}

.border-danger {
    border-color: var(--primary) !important;
}

.rounded {
    border-radius: 8px !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* ----------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero {
        padding: 140px 0 80px;
    }

    .navbar-collapse {
        background: rgba(15, 16, 20, 0.95);
        border-radius: 8px;
        margin-top: 15px;
        padding: 20px;
        border: 1px solid var(--border);
    }

    .nav-link {
        padding: 12px 16px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .btn-primary-glow,
    .btn-glass {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* ----------------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------------
   LOADING & TRANSITIONS
------------------------------------------------------------------------- */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Selection color */
::selection {
    background-color: var(--primary);
    color: white;
}

::-moz-selection {
    background-color: var(--primary);
    color: white;
}
