/**
 * BILPP - Custom Styles
 * Tailwind CDN is loaded in layout, these are additional custom styles
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-accent-purple: #8b5cf6;
    --color-accent-pink: #ec4899;
    --color-accent-yellow: #fbbf24;
    --color-dark-900: #0a0a0f;
    --color-dark-800: #0f0f17;
    --color-dark-700: #161621;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ============================================
   Navigation Styles
   ============================================ */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(203, 213, 225, 1); /* slate-300 */
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link-active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #ffffff;
}

/* Header scroll effect */
.header-scrolled {
    background-color: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(24px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-primary:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: none;
    ring: 2px solid #3b82f6;
    ring-offset: 2px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Light theme secondary button */
.bg-slate-50 .btn-secondary,
.bg-white .btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.bg-slate-50 .btn-secondary:hover,
.bg-white .btn-secondary:hover {
    background-color: #e2e8f0;
}

/* ============================================
   Card Styles
   ============================================ */
.service-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(100, 116, 139, 0.1), 0 4px 6px -2px rgba(100, 116, 139, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.5s ease;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(100, 116, 139, 0.15), 0 10px 10px -5px rgba(100, 116, 139, 0.04);
    transform: translateY(-8px);
}

/* ============================================
   Form Styles
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Select dropdown styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ============================================
   Social Link Styles
   ============================================ */
.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(1);
}

.social-link:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    transform: scale(1.1);
}

/* ============================================
   Animation Utilities
   ============================================ */

/* Staggered animations for children */
.stagger-children > * {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e2d;
}

::-webkit-scrollbar-thumb {
    background: #3b3b4f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a5e;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b3b4f #1e1e2d;
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Dark Mode Specific (if needed in future)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Can add dark mode overrides here if needed */
}

