/* Custom Style Sheet for One Technology Pvt Ltd
 * Designing elegant, modern, high-end layouts with Glassmorphism, 
 * smooth transitions, and light/dark mode system tokens.
 */

/* Import Typography from Google Fonts API */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Design Color Tokens - Light Mode */
    --primary: #0F4C81;         /* Deep Corporate Tech Blue */
    --secondary: #5B4BFF;       /* Royal Purple Accent */
    --highlight: #18C5FF;       /* Electric Cyan */
    --bg-surface: #F8FAFC;      /* Pure Off-White */
    --bg-darker: #F1F5F9;       /* Light Neutral Gray */
    --text-main: #111827;       /* Tech Obsidian */
    --text-muted: #4B5563;      /* Muted Corporate Gray */
    --success: #16A34A;         /* Emerald Green */
    --warning: #F59E0B;         /* Vivid Amber */
    
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.05);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    /* Design Color Tokens - Dark Mode */
    --primary: #18C5FF;         /* Electric Cyan primary accent in Dark Mode */
    --secondary: #5B4BFF;       /* Royal Purple Accent */
    --highlight: #0F4C81;       /* Deep Corporate Tech Blue secondary in Dark Mode */
    --bg-surface: #0B0F19;      /* Dark Tech Obsidian Surface */
    --bg-darker: #020617;       /* Rich Deep Space Blue */
    --text-main: #F8FAFC;       /* Off-White Text */
    --text-muted: #94A3B8;      /* Slate Gray Text */
    
    --card-bg: rgba(17, 24, 39, 0.7);
    --glass-bg: rgba(11, 15, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Global Reset & Basic Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-surface);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Glassmorphism Framework Classes */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Premium Gradient Layouts */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-tech {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-darker) 100%);
}

.bg-accent-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Modern Header Navbar Styling */
header.sticky-header {
    transition: all 0.4s ease;
}

header.sticky-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Animated Tech Grid Elements */
.tech-grid-bg {
    position: relative;
    background-image: radial-gradient(var(--border-light) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Floating Actions Buttons styling */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-phone {
    background-color: var(--primary);
}

.btn-top {
    background-color: #111827;
    display: none; /* Controlled by JS scroll events */
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Custom Micro Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.95; }
}

.pulse-animation {
    animation: pulse-subtle 3s ease-in-out infinite;
}

/* Timeline Custom Styles for About Page */
.timeline-container {
    position: relative;
    border-left: 2px solid var(--border-light);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-badge {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    border: 4px solid var(--bg-surface);
    transition: background-color 0.4s ease;
}

/* Admin Dashboard Specific Layout Elements */
.admin-sidebar {
    min-height: 100vh;
    background: #0f172a;
    color: #94a3b8;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link.active, .admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Cookie Banner Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 600px;
    display: none;
}
@media (min-width: 768px) {
    #cookie-consent-banner {
        left: 30px;
        right: auto;
    }
}

/* Fix Tailwind - Bootstrap Accordion Collapse Conflict */
.collapse {
    visibility: visible !important;
}
.collapse:not(.show) {
    display: none !important;
}
