/* All 7 IT - Premium Business Theme Styles */

/* ============================================
   CSS Variables & Custom Properties
   ============================================ */
:root {
    --primary-color: #1A237E;
    --primary-dark: #0D1255;
    --primary-light: #3949AB;
    --secondary-color: #0066FF;
    --secondary-dark: #0047B3;
    --secondary-light: #3388FF;
    --accent-color: #00D4AA;
    --accent-dark: #00A886;
    --accent-light: #33DEBB;
    --dark-color: #0A0E27;
    --dark-light: #151A3D;
    --dark-lighter: #1E2554;
    --text-color: #1A1A2E;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg-color: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0A0E27;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --body-font-size: 16px;
    --body-line-height: 1.7;
    --container-width: 1200px;
    --container-padding: 20px;
    --header-height: 80px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--dark-color);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.0625rem;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--dark-color);
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item i {
    color: var(--secondary-color);
    font-size: 0.75rem;
}

.top-bar-item a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
}

.top-bar-item a:hover {
    color: var(--secondary-color);
}

.top-bar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.top-bar-social:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* ============================================
   Site Header
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.site-logo:hover {
    opacity: 0.85;
}
.site-logo img {
    max-height: 50px;
    width: auto;
    transition: all var(--transition-base);
}

.site-logo img:hover {
    opacity: 0.9;
}

.has-custom-logo .site-title-wrap {
    display: none;
}
    transition: transform var(--transition-fast);
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo a:hover img {
    transform: scale(1.02);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.primary-menu li {
    position: relative;
    margin: 0;
}

.primary-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.primary-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.primary-menu > li > a:hover::before,
.primary-menu > .current-menu-item > a::before,
.primary-menu > .current_page_item > a::before {
    transform: translateX(-50%) scaleX(1);
}

.primary-menu a:hover {
    color: var(--primary-color);
    background: rgba(0,102,255,0.05);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--primary-color);
}

/* Submenu */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 100;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 10px 24px;
    font-size: 0.875rem;
    border-radius: 0;
}

.primary-menu .sub-menu a:hover {
    background: var(--bg-light);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.header-cta {
    margin-left: 10px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--dark-color);
    background-image: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 50%, var(--dark-lighter) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0,102,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,212,170,0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(0,102,255,0.05) 0%, transparent 30%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0,212,170,0.15);
    border: 1px solid rgba(0,212,170,0.3);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,102,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    left: -10%;
    animation-delay: 2s;
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0,212,170,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.floating-card-text {
    color: #fff;
}

.floating-card-text strong {
    display: block;
    font-size: 0.9375rem;
}

.floating-card-text span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0,212,170,0.4);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.hero-particle:nth-child(1) { top: 20%; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 15%; animation-duration: 22s; animation-delay: 2s; }
.hero-particle:nth-child(3) { top: 30%; left: 85%; animation-duration: 20s; animation-delay: 4s; }
.hero-particle:nth-child(4) { top: 70%; left: 80%; animation-duration: 25s; animation-delay: 1s; }
.hero-particle:nth-child(5) { top: 40%; left: 50%; animation-duration: 19s; animation-delay: 3s; }
.hero-particle:nth-child(6) { top: 80%; left: 20%; animation-duration: 23s; animation-delay: 5s; }
.hero-particle:nth-child(7) { top: 15%; left: 70%; animation-duration: 21s; animation-delay: 7s; }
.hero-particle:nth-child(8) { top: 50%; left: 30%; animation-duration: 17s; animation-delay: 2s; }

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-header-left {
    text-align: left;
    margin-left: 0;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,102,255,0.08);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.section-bg-light {
    background: var(--bg-light);
}

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

.section-bg-dark .section-title {
    color: #fff;
}

.section-bg-dark .section-desc {
    color: rgba(255,255,255,0.7);
}

.section-bg-gradient {
    background: linear-gradient(135deg, var(--dark-color), var(--dark-light));
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,212,170,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.about-experience-badge .label {
    font-size: 0.8125rem;
    opacity: 0.9;
}

.about-content .section-tag {
    margin-bottom: 8px;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
}

.about-feature i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* ============================================
   Stats Counter
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255,255,255,0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ============================================
   Portfolio / Case Studies
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    group: true;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,39,0.95) 0%, rgba(10,14,39,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.portfolio-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.portfolio-link:hover {
    color: #fff;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,212,170,0.15) 0%, transparent 40%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog-card .post-content {
    padding: 28px;
}

.blog-card .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin-bottom: 12px;
}

.blog-card .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card .post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card .post-title a {
    color: var(--dark-color);
}

.blog-card .post-title a:hover {
    color: var(--primary-color);
}

.blog-card .post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card .read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card .read-more:hover {
    gap: 10px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,212,170,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.contact-info-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-wrap .form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
    background: #fff;
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.8);
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-menu a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services-list li {
    margin-bottom: 10px;
}

.footer-services-list a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-services-list a i {
    font-size: 0.625rem;
    color: var(--primary-color);
}

.footer-services-list a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 4px;
    min-width: 16px;
}

.contact-item a {
    color: rgba(255,255,255,0.6);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.copyright strong {
    color: rgba(255,255,255,0.8);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    background: var(--bg-light);
    padding: 16px 0;
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.breadcrumbs a {
    color: var(--text-lighter);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: var(--border-color);
}

/* ============================================
   Page Header
   ============================================ */
.page-header-section {
    background: var(--dark-color);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0,102,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0,212,170,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.page-header-inner {
    position: relative;
    z-index: 2;
}

.page-header-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.page-header-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ============================================
   Widgets
   ============================================ */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* ============================================
   Page Content
   ============================================ */
.site-main {
    padding: 80px 0;
}

.page-content,
.post-content-area {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2,
.post-content-area h2 {
    margin-top: 1.5em;
}

.page-content img,
.post-content-area img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 36px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image-wrapper {
        display: none;
    }
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper {
        order: -1;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .section {
        padding: 60px 0;
    }
    .top-bar {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .primary-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 0;
    }
    .primary-menu.active {
        display: flex;
    }
    .primary-menu a {
        padding: 14px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    .primary-menu > li > a::before {
        display: none;
    }
    .primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
    }
    .primary-menu li.active > .sub-menu {
        display: block;
    }
    .header-cta {
        display: none;
    }
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .about-experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: 24px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }
}
