/* ==========================================
   VK Tech - Custom Styles
   ========================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================
   CSS Variables - Light Theme (Default)
   ========================================== */
:root {
    --background: hsl(220, 20%, 97%);
    --foreground: hsl(220, 20%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 20%, 10%);
    --primary: hsl(199, 89%, 48%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 14%, 96%);
    --secondary-foreground: hsl(220, 20%, 10%);
    --muted: hsl(220, 14%, 96%);
    --muted-foreground: hsl(220, 10%, 46%);
    --accent: hsl(280, 85%, 65%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(220, 13%, 91%);
    --input: hsl(220, 13%, 91%);
    --ring: hsl(199, 89%, 48%);
}

/* ==========================================
   CSS Variables - Dark Theme
   ========================================== */
.dark {
    --background: hsl(220, 25%, 8%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 25%, 12%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(199, 89%, 48%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 20%, 18%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(220, 20%, 18%);
    --muted-foreground: hsl(220, 15%, 65%);
    --accent: hsl(280, 85%, 65%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(220, 20%, 20%);
    --input: hsl(220, 20%, 20%);
    --ring: hsl(199, 89%, 48%);
}

/* ==========================================
   Base Styles
   ========================================== */
html {
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

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

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, hsl(199, 89%, 48%) 0%, hsl(280, 85%, 65%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, hsl(199, 89%, 48%) 0%, hsl(280, 85%, 65%) 100%);
}

/* Glass Effect - Light Theme */
.glass {
    background: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsla(220, 13%, 91%, 0.5);
}

/* Glass Effect - Dark Theme */
.dark .glass {
    background: hsla(220, 25%, 12%, 0.8);
    border: 1px solid hsla(220, 20%, 20%, 0.5);
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 40px -10px hsla(199, 89%, 48%, 0.3);
}

.dark .glow {
    box-shadow: 0 0 40px -10px hsla(199, 89%, 48%, 0.5);
}

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 50px -10px hsla(199, 89%, 48%, 0.4);
}

.dark .hover-glow:hover {
    box-shadow: 0 0 50px -10px hsla(199, 89%, 48%, 0.6);
}

/* Theme Transition for all elements */
*, *::before, *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.15s ease;
}

/* ==========================================
   Button Styles
   ========================================== */

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, hsl(199, 89%, 48%) 0%, hsl(199, 89%, 42%) 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, hsl(199, 89%, 42%) 0%, hsl(199, 89%, 36%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px -4px hsla(199, 89%, 48%, 0.5);
}

/* Outline Button - Light Theme */
.btn-outline {
    background: transparent;
    border: 1px solid hsl(220, 13%, 85%);
    color: hsl(220, 20%, 10%);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: hsla(220, 14%, 96%, 0.5);
    border-color: hsl(199, 89%, 48%);
}

/* Outline Button - Dark Theme */
.dark .btn-outline {
    border: 1px solid hsl(220, 20%, 20%);
    color: hsl(210, 40%, 98%);
}

.dark .btn-outline:hover {
    background: hsla(220, 20%, 20%, 0.5);
}

/* Ghost Button - Light Theme */
.btn-ghost {
    background: transparent;
    color: hsl(220, 10%, 46%);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: hsla(220, 14%, 96%, 0.8);
    color: hsl(199, 89%, 48%);
}

/* Ghost Button - Dark Theme */
.dark .btn-ghost {
    color: hsl(220, 15%, 65%);
}

.dark .btn-ghost:hover {
    background: hsla(220, 20%, 18%, 0.5);
}

/* Small Button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================
   Line Clamp Utilities
   ========================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

/* ==========================================
   Prose Styles for Blog Content - Light Theme
   ========================================== */
.prose {
    max-width: 65ch;
    color: hsl(220, 10%, 46%);
    line-height: 1.75;
}

.prose h2 {
    color: hsl(220, 20%, 10%);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: hsl(220, 20%, 10%);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose strong {
    color: hsl(220, 20%, 10%);
}

.prose ul,
.prose ol {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose li::marker {
    color: hsl(199, 89%, 48%);
}

/* Prose Styles - Dark Theme */
.dark .prose {
    color: hsl(220, 15%, 65%);
}

.dark .prose h2,
.dark .prose h3,
.dark .prose strong {
    color: hsl(210, 40%, 98%);
}

/* ==========================================
   Scrollbar Styles - Light Theme
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(220, 20%, 97%);
}

::-webkit-scrollbar-thumb {
    background: hsl(220, 13%, 80%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(220, 13%, 70%);
}

/* Scrollbar Styles - Dark Theme */
.dark::-webkit-scrollbar-track {
    background: hsl(220, 25%, 8%);
}

.dark::-webkit-scrollbar-thumb {
    background: hsl(220, 20%, 20%);
}

.dark::-webkit-scrollbar-thumb:hover {
    background: hsl(220, 20%, 30%);
}

/* ==========================================
   Selection Styles
   ========================================== */
::selection {
    background: hsla(199, 89%, 48%, 0.3);
    color: hsl(210, 40%, 98%);
}

/* ==========================================
   Animation Classes
   ========================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==========================================
   Image Slider Styles
   ========================================== */
.thumbnail-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-btn:hover {
    transform: scale(1.02);
}

.thumbnail-btn img {
    transition: transform 0.3s ease;
}

.thumbnail-btn:hover img {
    transform: scale(1.05);
}

/* Slider arrows hover effect */
#slider-prev:hover,
#slider-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================
   Notification Toast Styles
   ========================================== */
.notification-toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   Form Focus Styles
   ========================================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsla(199, 89%, 48%, 0.2);
}

/* ==========================================
   Image Constraints
   ========================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Prevent Horizontal Overflow
   ========================================== */
section {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure floating decorative elements don't cause overflow */
.absolute.inset-0 {
    max-width: 100%;
}

/* Ensure large floating circles are constrained on mobile */
@media (max-width: 768px) {
    .absolute.w-72,
    .absolute.w-96 {
        max-width: 80vw;
    }
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Smaller slider arrows on mobile */
    #slider-prev,
    #slider-next {
        width: 2rem;
        height: 2rem;
    }
    
    #slider-prev svg,
    #slider-next svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Notification on mobile */
    .notification-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

/* ==========================================
   Side Gradient Background Effect
   ========================================== */

/* Base side gradients class */
.bg-side-gradients {
    position: relative;
    overflow-x: hidden;
}

.bg-side-gradients::before,
.bg-side-gradients::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 350px;
    max-width: 100vw;
    pointer-events: none;
    z-index: 0;
}

/* Left side gradient - Primary (cyan) color */
.bg-side-gradients::before {
    left: 0;
    background: linear-gradient(to right, 
        hsla(199, 89%, 48%, 0.18) 0%, 
        hsla(199, 89%, 48%, 0.08) 40%, 
        transparent 100%);
}

/* Right side gradient - Accent (purple) color */
.bg-side-gradients::after {
    right: 0;
    background: linear-gradient(to left, 
        hsla(280, 85%, 65%, 0.18) 0%, 
        hsla(280, 85%, 65%, 0.08) 40%, 
        transparent 100%);
}

/* Dark mode - slightly adjusted opacity */
.dark .bg-side-gradients::before {
    background: linear-gradient(to right, 
        hsla(199, 89%, 48%, 0.15) 0%, 
        hsla(199, 89%, 48%, 0.05) 40%, 
        transparent 100%);
}

.dark .bg-side-gradients::after {
    background: linear-gradient(to left, 
        hsla(280, 85%, 65%, 0.15) 0%, 
        hsla(280, 85%, 65%, 0.05) 40%, 
        transparent 100%);
}

/* Responsive - narrower gradients on mobile */
@media (max-width: 768px) {
    .bg-side-gradients::before,
    .bg-side-gradients::after {
        width: 150px;
        max-width: 50vw;
    }
}

/* ==========================================
   Page Header Background Effect
   ========================================== */

/* Base page header background class */
.page-header-bg {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

/* Gradient overlay for page headers */
.page-header-bg .header-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-header-bg .header-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        hsla(199, 89%, 48%, 0.08) 0%, 
        hsla(280, 85%, 65%, 0.08) 100%);
}

/* Dark mode adjustments for header */
.dark .page-header-bg .header-bg-image {
    opacity: 0.08;
}

/* Floating decorative elements for headers */
.header-float-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.header-float-left {
    top: -50px;
    left: -100px;
    width: 300px;
    height: 300px;
    max-width: 50vw;
    background: hsla(199, 89%, 48%, 0.15);
}

.header-float-right {
    bottom: -50px;
    right: -100px;
    width: 250px;
    height: 250px;
    max-width: 50vw;
    background: hsla(280, 85%, 65%, 0.15);
}

.dark .header-float-left {
    background: hsla(199, 89%, 48%, 0.1);
}

.dark .header-float-right {
    background: hsla(280, 85%, 65%, 0.1);
}

/* ==========================================
   Section Background Effect
   ========================================== */

/* Base section background class */
.section-bg {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.section-bg .section-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: -2;
}

.dark .section-bg .section-bg-image {
    opacity: 0.035;
}

/* Floating decorative elements for sections */
.section-float-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

/* Slight mobile blur to reduce noise */
@media (max-width: 768px) {
    .section-bg .section-bg-image {
        filter: blur(2px);
    }
}

