/* ============================================
   HABIB OVE — Premium Dark Portfolio Theme
   Apple-Inspired Design + Geroz Animations
   ============================================ */

/* ---------- CSS Variables ---------- */
/* 🎨 Trending 2025-26: Warm Dark + Amber Gold Palette */
:root {
    --bg-primary: #0c0c0e;
    --bg-secondary: #111113;
    --bg-tertiary: #161618;
    --bg-card: rgba(22, 22, 26, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.07);
    --accent: #e8a838;
    --accent-light: #f0c060;
    --accent-dark: #c48a20;
    --accent-glow: rgba(232, 168, 56, 0.25);
    --accent-gradient: linear-gradient(135deg, #e8a838, #f0c060, #f5d78e);
    --accent-subtle: rgba(232, 168, 56, 0.08);
    --text-primary: #ececef;
    --text-secondary: #9a9aab;
    --text-muted: #5c5c6e;
    --white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(232, 168, 56, 0.12);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body.habibove-body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 20px;
    border: 1px solid rgba(232, 168, 56, 0.25);
    border-radius: 50px;
    background: var(--accent-subtle);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Initial hidden state — GSAP will animate these in on scroll */
.has_fade_anim {
    opacity: 0;
}
.has_text_reveal_anim {
    opacity: 0;
}

/* Stagger-animated elements — must start hidden for GSAP fromTo to work */
.highlight-card {
    opacity: 0;
}
.skill-tag {
    opacity: 0;
}
.footer-social .social-link {
    opacity: 0;
}

/* Section title animation — clip-path reveal (no SplitText) */
.has_title_anim {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    will-change: transform, opacity, clip-path;
}

.section-title .text-accent {
    color: var(--accent);
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(232, 168, 56, 0.15);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glow {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--accent-light);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(232, 168, 56, 0.35);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--white);
}

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

/* ============================================
   PRELOADER
============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}

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

.preloader-inner { text-align: center; }

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 20px auto 0;
    border-radius: 10px;
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    animation: preloaderProgress 1.5s ease-in-out forwards;
}

@keyframes preloaderProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ============================================
   CUSTOM CURSOR
============================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-width 0.3s;
    transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
    .theme-cursor { display: none; }
}

/* ============================================
   AMBIENT BACKGROUND
============================================ */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.ambient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #e8a838, transparent 70%);
    top: -10%;
    right: -5%;
    animation: ambientFloat1 20s ease-in-out infinite;
}

.ambient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #c48a20, transparent 70%);
    bottom: 10%;
    left: -10%;
    animation: ambientFloat2 25s ease-in-out infinite;
}

.ambient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f0c060, transparent 70%);
    top: 40%;
    left: 30%;
    animation: ambientFloat3 18s ease-in-out infinite;
}

.ambient-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

@keyframes ambientFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.05); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes ambientFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes ambientFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.08); }
}

#smooth-wrapper { position: relative; z-index: 1; }
#smooth-content { background: rgba(12, 12, 14, 0.93); }

/* ============================================
   HEADER
============================================ */
.habibove-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.habibove-header.sticky {
    background: rgba(12, 12, 14, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-logo a {
    display: flex;
    align-items: center;
    overflow: visible;
}

.header-logo {
    overflow: visible;
    flex-shrink: 0;
}

.header-logo img,
.header-logo .custom-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

.desktop-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

/* Hide any and all sub-menus, mega menus, dropdowns completely */
.desktop-nav .sub-menu,
.desktop-nav ul ul,
.desktop-nav .mega-menu,
.desktop-nav .dropdown-menu,
.desktop-nav .nav-menu .sub-menu,
.desktop-nav .nav-menu ul,
.desktop-nav .menu-item-has-children > ul,
.desktop-nav li li,
.header-nav .sub-menu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

.mobile-nav-menu .sub-menu,
.mobile-nav-menu ul ul,
.mobile-menu .sub-menu {
    display: none !important;
    visibility: hidden !important;
}

.desktop-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active,
.desktop-nav .current-menu-item .nav-link {
    color: var(--white);
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after,
.desktop-nav .current-menu-item .nav-link::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(30px);
    padding: 100px 40px 40px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 105;
    border-left: 1px solid var(--border-glass);
}

.mobile-menu.open { right: 0; }

.mobile-nav-menu { display: flex; flex-direction: column; gap: 8px; }

.mobile-nav-menu li a {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.mobile-nav-menu li a:hover { color: var(--accent); padding-left: 10px; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    background: radial-gradient(ellipse at 70% 20%, rgba(232, 168, 56, 0.04) 0%, transparent 60%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 60px;
    align-items: center;
}

.hero-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-xl);
    position: relative;
    background: var(--bg-tertiary);
    min-height: 400px;
    clip-path: inset(100% 0% 0% 0%);
}

/* Ensure image is always visible by default */
.hero-img-wrapper img,
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
}

/* Hero children — hidden by CSS, animated in by GSAP timeline */
.hero-badge,
.hero-name,
.hero-titles,
.hero-description,
.hero-cta,
.hero-stats {
    opacity: 0;
}

/* Safety net: if GSAP animations haven't run, show everything */
.gsap-fallback .has_fade_anim,
.gsap-fallback .highlight-card,
.gsap-fallback .skill-tag,
.gsap-fallback .footer-social .social-link,
.gsap-fallback .has_title_anim,
.gsap-fallback .has_text_reveal_anim,
.gsap-fallback .hero-img-wrapper,
.gsap-fallback .hero-badge,
.gsap-fallback .hero-name,
.gsap-fallback .hero-titles,
.gsap-fallback .hero-description,
.gsap-fallback .hero-cta,
.gsap-fallback .hero-stats {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    visibility: visible !important;
}

/* No-JS fallback: if JavaScript is disabled, show all content */
.no-js .has_fade_anim,
.no-js .highlight-card,
.no-js .skill-tag,
.no-js .footer-social .social-link,
.no-js .has_title_anim,
.no-js .has_text_reveal_anim,
.no-js .hero-img-wrapper,
.no-js .hero-badge,
.no-js .hero-name,
.no-js .hero-titles,
.no-js .hero-description,
.no-js .hero-cta,
.no-js .hero-stats {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

/* Smooth scroll behavior (native CSS — replaces ScrollSmoother) */
html {
    scroll-behavior: smooth;
}

/* Ensure wrapper/content divs don't break layout when ScrollSmoother is off */
#smooth-wrapper,
#smooth-content {
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(232, 168, 56, 0.25);
    border-radius: 50px;
    background: var(--accent-subtle);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-titles {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2.5em;
}

.hero-title-typed {
    color: var(--accent-light);
    font-weight: 600;
}

.typed-cursor {
    color: var(--accent);
    font-weight: 300;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

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

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
    .hero-description { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; gap: 32px; }
    .stat-item { text-align: center; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 20px; }
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-light);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
}

.highlight-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.highlight-card > div:last-child {
    flex: 1;
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SKILLS SECTION
============================================ */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 500px;
}

@media (max-width: 768px) {
    .chart-container { height: 400px; }
}
@media (max-width: 640px) {
    .chart-container { height: 450px; }
}

.chart-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.skill-tag {
    padding: 8px 20px;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-subtle);
}

/* ============================================
   EXPERIENCE / TIMELINE
============================================ */
.experience-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(232,168,56,0.1));
}

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

.timeline-dot {
    position: absolute;
    left: -47px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-card {
    padding: 32px;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-list {
    list-style: disc;
    padding-left: 20px;
}

.timeline-list li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.timeline-list strong { color: var(--accent-light); }

.timeline-clients { margin-top: 20px; }

.timeline-clients h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.client-logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.client-logo-item:hover {
    border-color: rgba(232,168,56,0.25);
    background: var(--accent-subtle);
}

.client-logo-item:hover img { filter: brightness(1); }

.client-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
}

@media (max-width: 640px) {
    .client-logos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PORTFOLIO SECTION
============================================ */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Isotope overrides when active */
.portfolio-grid.filter-layout {
    display: block;
}

.portfolio-grid.filter-layout::after {
    content: '';
    display: block;
    clear: both;
}

.portfolio-grid.filter-layout .filter-item {
    width: 33.333%;
    padding: 12px;
    float: left;
}

@media (max-width: 1024px) {
    .portfolio-grid.filter-layout .filter-item { width: 50%; }
}
@media (max-width: 640px) {
    .portfolio-grid.filter-layout .filter-item { width: 100%; }
}

.portfolio-card {
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.play-icon {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.overlay-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-info {
    padding: 24px;
    flex: 1;
}

.portfolio-client {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 6px;
}

.portfolio-desc-short {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.6;
}

/* SaaS Cards */
.saas-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-subtle), rgba(232,168,56,0.03));
    position: relative;
    aspect-ratio: 16/9 !important;
    max-height: 180px;
}

.saas-icon-wrap {
    font-size: 2.2rem;
    color: var(--accent);
}

.saas-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(232,168,56,0.15);
    color: var(--accent-light);
    border: 1px solid rgba(232,168,56,0.25);
}

.portfolio-more {
    text-align: center;
    margin-top: 48px;
}

.saas-card { text-decoration: none; }

/* Portfolio Empty State */
.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}
.portfolio-empty .empty-state {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem;
}
.portfolio-empty .empty-state i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.portfolio-empty .empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.portfolio-empty .empty-state p {
    color: var(--text-secondary);
}

/* Portfolio Thumb Placeholder */
.portfolio-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: rgba(232, 168, 56, 0.05);
    color: var(--accent);
    font-size: 3rem;
}

/* Portfolio Archive Section */
.portfolio-archive-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
    text-align: center;
}
.portfolio-pagination {
    margin-top: 3rem;
    text-align: center;
}
.portfolio-back {
    margin-top: 2rem;
}

/* Single Portfolio */
.single-portfolio-section {
    padding-top: 140px;
}
.portfolio-single-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.portfolio-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.portfolio-client-badge,
.portfolio-type-badge,
.portfolio-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(232, 168, 56, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(232, 168, 56, 0.15);
}
.portfolio-status-badge {
    background: rgba(232, 168, 56, 0.2);
    color: var(--accent);
}
.portfolio-single-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    line-height: 1.15;
}
.portfolio-single-video {
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}
.portfolio-single-thumb {
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
}
.portfolio-single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.portfolio-single-content {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}
.portfolio-single-content p {
    margin-bottom: 1.25rem;
}
.portfolio-single-content h2,
.portfolio-single-content h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.portfolio-single-cta {
    text-align: center;
    margin-bottom: 2.5rem;
}
.portfolio-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.portfolio-single-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-single-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.portfolio-single-nav a:hover {
    color: var(--accent);
}
.post-nav-center {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .portfolio-single-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BLOG SECTION
============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    display: block;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-meta i { margin-right: 4px; color: var(--accent); }

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a:hover { color: var(--accent-light); }

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
    margin-top: 16px;
    transition: var(--transition);
}

.blog-read-more:hover { color: var(--white); gap: 10px; }

.blog-empty { text-align: center; color: var(--text-muted); padding: 80px 0; }

.blog-more, .blog-pagination { text-align: center; margin-top: 48px; }

.blog-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-sidebar .habibove-widget {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .blog-grid, .blog-grid-2col { grid-template-columns: 1fr; }
}

/* ============================================
   SINGLE POST
============================================ */
.single-post-article {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header { margin-bottom: 40px; }

.single-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-post-meta i { margin-right: 6px; color: var(--accent); }

.single-post-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.single-post-thumbnail {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

.single-post-thumbnail img { width: 100%; border-radius: var(--radius-lg); }

.single-post-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.single-post-content h2, .single-post-content h3, .single-post-content h4 {
    margin: 40px 0 16px;
}

.single-post-content p { margin-bottom: 20px; }

.single-post-content a { color: var(--accent-light); text-decoration: underline; }

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

.single-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    margin: 24px 0;
    background: var(--bg-glass);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}

.single-post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.tags-label { font-weight: 600; font-size: 14px; }

.tags-list a {
    padding: 4px 14px;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
    margin-right: 8px;
}

.tags-list a:hover { border-color: var(--accent); color: var(--accent); }

.single-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.single-post-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.single-post-nav a:hover { color: var(--accent-light); }

/* ============================================
   EDUCATION SECTION
============================================ */
.education-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    padding: 36px;
    text-align: center;
}

.edu-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--accent);
}

.edu-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.edu-detail {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.edu-institution {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .education-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
============================================ */
.habibove-footer { background: var(--bg-primary); }

.footer-cta-section {
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.footer-cta-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-cta-text {
    max-width: 500px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.footer-bottom {
    padding: 32px 0;
}

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

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

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-menu-list {
    display: flex;
    gap: 24px;
}

.footer-menu-list li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-menu-list li a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-bottom-inner { justify-content: center; text-align: center; flex-direction: column; }
}

/* ============================================
   MODAL
============================================ */
.habibove-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.habibove-modal.active { display: flex; }

.habibove-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.modal-close:hover { color: var(--white); }

.modal-media {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.modal-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-info { padding: 32px; }

.modal-title { font-size: 1.5rem; margin-bottom: 4px; }
.modal-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.modal-body-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

.modal-ai-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.ai-output-box {
    margin-top: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}

.ai-output-box.show { display: block; }

/* ============================================
   SCROLL UP
============================================ */
.scroll-up {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    z-index: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-up.active-scroll {
    opacity: 1;
    visibility: visible;
}

.scroll-circle {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.scroll-circle path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
}

.scroll-up i {
    color: var(--accent);
    font-size: 16px;
    position: relative;
    z-index: 2;
}

/* ============================================
   404 PAGE
============================================ */
.error-404-section { min-height: 80vh; display: flex; align-items: center; }

.error-404-content { text-align: center; }

.error-number {
    font-size: clamp(6rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.error-title { font-size: 2rem; margin-bottom: 16px; }
.error-text { color: var(--text-muted); margin-bottom: 36px; font-size: 17px; }

/* ============================================
   COMMENTS
============================================ */
.comments-area { margin-top: 60px; }

.comments-title { font-size: 1.5rem; margin-bottom: 32px; }

.habibove-comment .comment-body {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: var(--bg-glass);
}

.comment-avatar img { border-radius: 50%; }

.comment-author { font-size: 1rem; font-weight: 600; }
.comment-date { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 8px; }

.habibove-comment-form input,
.habibove-comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
    margin-bottom: 16px;
}

.habibove-comment-form input:focus,
.habibove-comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.habibove-comment-form .submit {
    padding: 12px 32px;
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.habibove-comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============================================
   PAGINATION
============================================ */
.habibove-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.habibove-pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.habibove-pagination .page-numbers.current,
.habibove-pagination .page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ============================================
   RESPONSIVE UTILITIES
============================================ */
@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }
    .footer-cta-section { padding: 80px 0; }
}
