/* ========================================
   ServerSide - Professional Styling
   ======================================== */

/* Smoother page feel */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Header / Brand
   ======================================== */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(var(--bs-body-bg-rgb), 0.9) !important;
    padding: 1rem 0;
}

.logo-img {
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e3a5f;
}

.lead {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Technologies Section
   ======================================== */
#technologies {
    position: relative;
}

#technologies h2 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

/* Tech cards - jaw-dropping styling */
.tech-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    position: relative;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.2);
    border-color: transparent;
}

[data-bs-theme="dark"] .tech-card:hover {
    box-shadow: 0 20px 40px -12px rgba(96, 165, 250, 0.25);
}

/* Tech icons */
.tech-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover .tech-icon {
    transform: scale(1.15) rotate(-3deg);
}

/* Card titles - inherit color for links */
.tech-card h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    transition: color 0.2s ease;
}

.tech-card:hover h3 {
    color: var(--bs-primary);
}

/* Card body */
.tech-card .card-body {
    padding: 1.25rem;
}

/* ========================================
   Approach Section
   ======================================== */
#approach {
    background: linear-gradient(180deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
}

#approach h2 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

#approach .bg-primary {
    transition: all 0.3s ease;
}

#approach .d-flex:hover .bg-primary {
    transform: scale(1.1);
    box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.4);
}

#approach h3 {
    font-weight: 600;
}

/* ========================================
   Contact Section
   ======================================== */
#contact .container {
    max-width: 900px;
}

#contact h2 {
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

#contact .row {
    justify-content: center;
}

#contact .col-lg-6 {
    text-align: center;
}

#contact .d-flex {
    justify-content: center;
}

/* Contact buttons */
#contact .btn {
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--bs-body-bg);
}

footer p {
    text-align: center;
}

/* ========================================
   Theme Toggle
   ======================================== */
#themeToggle {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] .icon-sun {
    display: none;
}

[data-bs-theme="dark"] .icon-moon {
    display: inline-block !important;
}

[data-bs-theme="light"] .icon-moon {
    display: none;
}

/* ========================================
   Subtle Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Typography refinements */
.text-body-secondary {
    opacity: 0.8;
}

/* Smooth transitions for theme switching */
body, .card, .navbar, footer, section {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
