/**
 * HadjiGroup Theme Styles
 * 
 * Extracted from Figma High-Fidelity Design
 * @package HadjiGroup
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --color-background: #0a0a0a;
    --color-panel: #1a1a1a;
    /* Purple + Emerald theme */
    --color-primary: #10B981; /* Emerald Green */
    --color-primary-dark: #059669; /* Darker Emerald */
    --color-primary-light: #34D399; /* Lighter Emerald */
    --color-secondary: #9333EA; /* Purple */
    --color-secondary-dark: #7C3AED; /* Darker Purple (Violet) */
    --color-secondary-light: #A855F7; /* Lighter Purple */
    --color-accent: #8B5CF6; /* Violet */
    --color-white: #ffffff;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.4);
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;
    
    /* Container */
    --container-max-width: 1280px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4); /* Emerald glow */
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    min-height: 100vh;
    padding-top: 5rem; /* Space for fixed header */
}

body.home {
    padding-top: 0;
}

.home .hadjigroup-header,
.home .hadjigroup-header.scrolled {
    border-bottom: none;
    box-shadow: none;
}

/* Smooth scrolling with offset for fixed header */
html {
    scroll-padding-top: 120px;
}

/* Ensure sections have proper scroll margin */
section[id],
div[id] {
    scroll-margin-top: 120px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
}

h1 {
    font-size: var(--font-size-2xl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-4);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    opacity: 0.8;
}

/* ===== Container ===== */
.container, 
.max-w-7xl {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(57, 255, 20, 0.6);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.btn-lg {
    padding: var(--spacing-6) var(--spacing-8);
}

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: var(--spacing-8);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 769px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== Flex Utilities ===== */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

/* ===== Spacing Utilities ===== */
.py-6 { padding-top: var(--spacing-6); padding-bottom: var(--spacing-6); }
.py-12 { padding-top: var(--spacing-12); padding-bottom: var(--spacing-12); }
.py-16 { padding-top: var(--spacing-16); padding-bottom: var(--spacing-16); }
.py-24 { padding-top: var(--spacing-24); padding-bottom: var(--spacing-24); }

.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }
.px-8 { padding-left: var(--spacing-8); padding-right: var(--spacing-8); }

.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mb-12 { margin-bottom: var(--spacing-12); }
.mb-16 { margin-bottom: var(--spacing-16); }

/* ===== Background Utilities ===== */
.bg-black {
    background-color: var(--color-background);
}

.bg-panel {
    background-color: var(--color-panel);
}

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

/* ===== Text Utilities ===== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-primary-color {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

.text-2xl {
    font-size: var(--font-size-2xl);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ===== Border & Radius ===== */
.border {
    border: 1px solid var(--color-border);
}

.border-primary {
    border-color: rgba(57, 255, 20, 0.4);
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-3xl {
    border-radius: var(--radius-3xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* ===== Animations & Transitions ===== */
.transition-all {
    transition: var(--transition-base);
}

.transition-fast {
    transition: var(--transition-fast);
}

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Gradients ===== */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* ===== Responsive Utilities ===== */
@media (max-width: 640px) {
    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: var(--spacing-8);
        padding-right: var(--spacing-8);
    }
}

/* ===== Utility Classes ===== */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.blur-3xl {
    filter: blur(64px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Header Block Styles ===== */
.hadjigroup-header {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.hadjigroup-header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hadjigroup-header .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hadjigroup-header .site-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hadjigroup-header .site-logo span {
    color: var(--color-primary);
}

.hadjigroup-header .desktop-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.hadjigroup-header .desktop-nav a:hover {
    color: var(--color-white);
}

.hadjigroup-header .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.hadjigroup-header .desktop-nav a:hover::after {
    width: 100%;
}

.hadjigroup-header .mobile-menu-item:hover {
    color: var(--color-white);
    padding-left: 0.5rem;
}

/* Container responsive adjustments */
@media (max-width: 768px) {
    .hadjigroup-header .container {
        padding: 0 1rem;
    }
}

/* ===== Iconography Helpers ===== */
.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--wp--preset--color--text-primary, #ffffff);
}

.hero-feature--ab {
    color: var(--wp--preset--color--primary-light, #34D399);
}

.hero-feature--ux {
    color: var(--wp--preset--color--primary, #10B981);
}

.hero-feature--data {
    color: var(--wp--preset--color--secondary, #9333EA);
}

.hero-feature .feature-icon,
.portfolio-badge .badge-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.35));
}

.gradient-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 9999px;
    background: linear-gradient(
        135deg,
        var(--wp--preset--color--primary, #10B981),
        var(--wp--preset--color--secondary, #9333EA)
    );
}

