/*
Theme Name: ITcians
Theme URI: https://itcians.com
Author: ITcians
Author URI: https://itcians.com
Description: A premium software agency theme with Apple-style minimalist design, glassmorphism effects, and modern aesthetics.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itcians
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/* ===================================== */
/* CSS VARIABLES / DESIGN TOKENS */
/* ===================================== */
:root {
    /* Brand Colors */
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-accent: #0f172a;
    
    /* UI Colors */
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-border: rgba(15, 23, 42, 0.05);
    --color-glass: rgba(255, 255, 255, 0.72);
    
    /* Status Colors */
    --color-status-new: #6366f1;
    --color-status-contacted: #a855f7;
    --color-status-proposal: #ec4899;
    --color-status-closed: #10b981;
    --color-status-error: #ef4444;
    
    /* Slate Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-900: #0f172a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 8rem;
    --spacing-3xl: 12rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-2xl: 64px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Transitions */
    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 700ms;
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================== */
/* RESET & BASE STYLES */
/* ===================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-900);
    background-color: var(--color-background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal) var(--ease-standard);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================== */
/* UTILITY CLASSES */
/* ===================================== */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

.container-lg {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glass Effect */
.apple-blur {
    background: var(--color-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Node Pattern Background */
.node-pattern {
    background-image: radial-gradient(circle at 1px 1px, var(--slate-200) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Section Label */
.section-label {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1.5rem;
}

/* Section Title */
.section-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.05em;
    line-height: 0.9;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.25rem;
    color: var(--slate-400);
    line-height: 1.75;
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 900;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: all var(--transition-normal) var(--ease-standard);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
    box-shadow: var(--shadow-2xl);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--slate-900);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-500);
}

.btn-secondary:hover {
    background: var(--slate-200);
}

.btn-outline {
    border: 1px solid var(--slate-200);
    color: var(--slate-400);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Card Base */
.card {
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    transition: all var(--transition-slow) var(--ease-standard);
}

.card:hover {
    background: var(--color-background);
    border-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1rem);
    box-shadow: var(--shadow-2xl);
}

/* Tag Styles */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--slate-100);
    color: var(--slate-400);
}

/* ===================================== */
/* TYPOGRAPHY */
/* ===================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    color: var(--slate-900);
}

h1 {
    font-size: clamp(3rem, 8vw, 8rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    color: var(--slate-500);
    font-weight: 500;
}

blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.75;
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    color: var(--slate-500);
}

/* ===================================== */
/* ANIMATIONS */
/* ===================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.6s var(--ease-out) forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s var(--ease-out) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s var(--ease-out) forwards;
}

.animate-pulse {
    animation: pulse 2s var(--ease-standard) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-apple);
}

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

/* ===================================== */
/* SCREEN READER ONLY */
/* ===================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================== */
/* WORDPRESS SPECIFIC */
/* ===================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-top: 0.5rem;
}

/* Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
