/* ========================================
   UA Tech Financial Portfolio
   Custom CSS with Advanced Animations
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Primary Colors */
    --primary-color: #00a8ff;
    --secondary-color: #0066ff;
    --accent-color: #ff00ff;
    
    /* Background Colors */
    --bg-dark: #0a0e1a;
    --bg-darker: #050812;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00a8ff 0%, #0066ff 100%);
    --gradient-secondary: linear-gradient(135deg, #0066ff 0%, #ff00ff 100%);
    --gradient-card: linear-gradient(145deg, #111827 0%, #1a2332 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 168, 255, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 168, 255, 0.2);
    --shadow-lg: 0 8px 40px rgba(0, 168, 255, 0.3);
    --shadow-neon: 0 0 20px rgba(0, 168, 255, 0.5);
    
    /* Fonts */
    --font-primary: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== MOBILE FIX - BASE LAYOUT ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ========== CUSTOM CURSOR ========== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.3s ease;
    opacity: 0;
}

/* ========== PARTICLES BACKGROUND ========== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 168, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    transition: all var(--transition-normal);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img.logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.3));
    transition: all var(--transition-normal);
}

.navbar-brand:hover img.logo-image {
    filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.5));
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

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

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

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover::before {
    width: 80%;
}

.navbar-toggler {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300a8ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 2rem 0;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.6s backwards;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s backwards;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.card-1 {
    top: 10%;
    left: 5%;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 10%;
    right: 5%;
    animation: float 3.5s ease-in-out infinite;
}

.card-3 {
    bottom: 20%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.card-4 {
    bottom: 20%;
    right: 10%;
    animation: float 4.5s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease 1s backwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

.scroll-indicator span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== BUTTONS ========== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--bg-dark);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ========== SECTION HEADERS ========== */
.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
}

.about-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

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

.about-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-image i {
    font-size: 8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin: 0;
}

.experience-badge p {
    color: var(--bg-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.about-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 168, 255, 0.05);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    background: rgba(0, 168, 255, 0.1);
    transform: translateX(5px);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.highlight-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 5rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

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

.service-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon i {
    color: var(--bg-dark);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
    transform: translateY(-2px);
}

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

.portfolio-item {
    transition: all var(--transition-normal);
}

.portfolio-item.hide {
    display: none;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.portfolio-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.portfolio-link {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.portfolio-link:hover {
    transform: scale(1.1) rotate(10deg);
}

.portfolio-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-category .badge {
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-tech span {
    background: rgba(0, 102, 255, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.portfolio-btn:hover {
    color: var(--primary-color);
    gap: 1rem;
}

.portfolio-btn i {
    transition: all var(--transition-normal);
}

/* ========== SKILLS SECTION ========== */
.skills-section {
    padding: 5rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 1;
}

.skills-category-title {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-category-title i {
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skill-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.skill-bar {
    height: 10px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(10px);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Technology Icons */
.tech-icons {
    margin-top: 4rem;
}

.tech-icons h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 15px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tech-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.tech-icon:hover i {
    transform: rotateY(360deg);
    color: var(--secondary-color);
}

.tech-icon span {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.contact-link:hover {
    color: var(--primary-color);
    gap: 1rem;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-control {
    background: var(--bg-darker);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.form-control:focus {
    background: var(--bg-darker);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
    color: var(--text-primary);
}

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

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 168, 255, 0.1);
    padding: 2rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo img.logo-image {
    height: 35px;
    width: auto;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.3));
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.0rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 101;
    cursor: pointer;
    pointer-events: auto;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image-wrapper {
        height: 400px;
        margin-bottom: 3rem;
    }
    
    .about-image {
        width: 250px;
        height: 250px;
    }
    
    .about-image i {
        font-size: 6rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ========== MOBILE RESPONSIVE (767px and below) ========== */
@media (max-width: 767px) {
    /* Fix horizontal overflow */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding-top: 80px !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-tag {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .stat-item {
        width: 100% !important;
        text-align: center !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Hero Visual - Floating Cards Mobile Fix */
    .hero-visual {
        height: auto !important;
        min-height: 200px !important;
        margin-top: 2rem !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 1rem !important;
        position: relative !important;
    }
    
    .floating-card {
        position: relative !important;
        transform: none !important;
        animation: none !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: calc(50% - 0.5rem) !important;
        min-width: 140px !important;
        box-shadow: 0 4px 15px rgba(0, 168, 255, 0.2) !important;
    }
    
    .floating-card i {
        font-size: 1.5rem !important;
        margin: 0 !important;
    }
    
    .floating-card span {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    
    /* Remove individual card positioning */
    .card-1, .card-2, .card-3, .card-4 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Section Spacing */
    section {
        padding: 3rem 0 !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .section-tag {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.8rem !important;
    }
    
    .section-description {
        font-size: 0.95rem !important;
    }
    
    /* About Section */
    .about-image-wrapper {
        height: 300px !important;
        margin-bottom: 2rem !important;
    }
    
    .about-image {
        width: 180px !important;
        height: 180px !important;
    }
    
    .about-image img {
        max-width: 150px !important;
    }
    
    .experience-badge {
        bottom: 10px !important;
        right: 10px !important;
        padding: 1rem !important;
    }
    
    .experience-badge h3 {
        font-size: 2rem !important;
    }
    
    .about-content h3 {
        font-size: 1.5rem !important;
    }
    
    .about-highlights {
        grid-template-columns: 1fr !important;
    }
    
    /* Services Section */
    .service-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .service-icon i {
        font-size: 2rem !important;
    }
    
    .service-title {
        font-size: 1.3rem !important;
    }
    
    /* Portfolio Filter */
    .portfolio-filter {
        padding: 0 0.5rem !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        margin: 0.25rem !important;
        flex: 0 0 auto;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .portfolio-item {
        width: 100% !important;
    }
    
    .portfolio-card {
        margin-bottom: 1rem !important;
    }
    
    .portfolio-description {
        font-size: 0.95rem !important;
    }
    
    /* Skills Section */
    .skills-category-title {
        font-size: 1.3rem !important;
    }
    
    .skill-name {
        font-size: 1rem !important;
    }
    
    .skill-percentage {
        font-size: 1rem !important;
    }
    
    /* Tech Grid */
    .tech-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    
    .tech-icon {
        padding: 1rem !important;
    }
    
    .tech-icon i {
        font-size: 2rem !important;
    }
    
    .tech-icon span {
        font-size: 0.8rem !important;
    }
    
    /* Contact Section */
    .contact-card {
        margin-bottom: 1rem !important;
        padding: 1.5rem !important;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
    
    .form-control {
        font-size: 1rem !important;
    }
    
    /* Footer */
    .footer {
        text-align: center !important;
    }
    
    .footer-logo {
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-logo img.logo-image {
        height: 25px !important;
    }
    
    .footer-text {
        font-size: 0.85rem !important;
    }
    
    .social-links {
        justify-content: center !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand img.logo-image {
        height: 30px !important;
    }
    
    .navbar-collapse {
        background: var(--bg-darker);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
    }
    
    /* Scroll to top button */
    .scroll-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Particles */
    #particles-js {
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0;
        left: 0;
    }
    
    /* Cursor effects - hide on mobile */
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        display: none !important;
    }
}

/* ========== EXTRA SMALL MOBILE (575px and below) ========== */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .floating-card {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    .portfolio-filter {
        padding: 0 0.5rem !important;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        margin: 0.2rem !important;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-brand img.logo-image {
        height: 25px !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-section {
        padding-top: 70px !important;
    }
}
/* ========== UTILITY CLASSES ========== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.glow {
    box-shadow: var(--shadow-neon);
}

/* ========================================
   CZA TRADING ACADEMY — ADDITIONS
   ======================================== */

/* Hero centre logo */
.hero-logo {
    width: 340px;
    max-width: 80%;
    filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.45));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Course pricing inside service cards */
.course-price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 0.25rem;
}
.course-price small {
    font-size: 1rem;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
}
.course-level {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.service-card .btn { margin-top: 1.25rem; width: 100%; }

/* Success stories / testimonials */
.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 168, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all var(--transition-normal);
}
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.4;
    margin-bottom: 1rem;
}
.testimonial-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-dark);
    flex-shrink: 0;
}
.testimonial-author h4 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--text-primary);
}
.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.testimonial-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* Enroll & Payment steps */
.enroll-step {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 168, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    position: relative;
    transition: all var(--transition-normal);
}
.enroll-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}
.enroll-step-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}
.enroll-step i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}
.enroll-step h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.enroll-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}
.payment-note {
    background: rgba(0, 168, 255, 0.06);
    border: 1px solid rgba(0, 168, 255, 0.25);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.payment-note i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}
.payment-note p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.05rem;
}
.enroll-plan-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Method (8 modules) grid numbers */
.method-module .tech-icon span { white-space: normal; }

@media (max-width: 768px) {
    .hero-logo { width: 240px; margin-bottom: 1rem; }
}

/* ========================================
   CZA v2 — HEADER & HERO REFINEMENTS
   ======================================== */

/* Header: bigger logo, smaller title — focus on the logo */
.navbar-brand img.logo-image {
    height: 58px;
    filter: drop-shadow(0 0 14px rgba(0, 168, 255, 0.4));
}
.navbar-brand {
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.navbar.scrolled .navbar-brand img.logo-image {
    height: 46px;
}

/* Hero visual: logo centered & on top, cards pushed to corners */
.hero-visual {
    height: 560px;
}
.hero-logo {
    width: 400px;
    z-index: 2;
}
.hero-visual .floating-card {
    z-index: 1;
}
.card-1 { top: 0; left: 0; }
.card-2 { top: 0; right: 0; }
.card-3 { bottom: 2%; left: 0; }
.card-4 { bottom: 2%; right: 0; }

/* Tablet: smaller logo so corner cards keep clearance */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-visual { height: 460px; }
    .hero-logo { width: 280px; }
}

/* Mobile: navbar logo still prominent, title smaller */
@media (max-width: 768px) {
    .navbar-brand { font-size: 0.85rem !important; }
    .navbar-brand img.logo-image { height: 46px !important; }
    .hero-logo { width: 230px; margin-bottom: 0.5rem; }
}
@media (max-width: 576px) {
    .navbar-brand { font-size: 0.78rem !important; }
    .navbar-brand img.logo-image { height: 42px !important; }
}

/* ========================================
   CZA v3 — LOGO-ONLY HEADER/FOOTER + HERO SPACING
   ======================================== */

/* Header: logo only, big */
.navbar-brand img.logo-image {
    height: 68px;
    filter: drop-shadow(0 0 14px rgba(0, 168, 255, 0.4));
}
.navbar.scrolled .navbar-brand img.logo-image {
    height: 52px;
}

/* Footer: logo only, big */
.footer-logo img.logo-image {
    height: 90px !important;
    width: auto !important;
    filter: drop-shadow(0 0 14px rgba(0, 168, 255, 0.35));
}

/* Hero: guaranteed clearance between corner cards and logo */
.hero-visual {
    height: 640px;
}
.hero-logo {
    width: 350px;
    z-index: 2;
}
.card-1 { top: 0; left: 0; }
.card-2 { top: 0; right: 0; }
.card-3 { bottom: 0; left: 0; top: auto; }
.card-4 { bottom: 0; right: 0; top: auto; }

@media (max-width: 991px) and (min-width: 769px) {
    .hero-visual { height: 540px; }
    .hero-logo { width: 250px; }
}

@media (max-width: 768px) {
    .navbar-brand img.logo-image { height: 54px !important; }
    .footer-logo img.logo-image { height: 70px !important; }
}
@media (max-width: 576px) {
    .navbar-brand img.logo-image { height: 48px !important; }
}

/* ========================================
   CZA v4 — BIG LOGO, COMPACT HEADER
   (logo overflows the bar instead of growing it)
   ======================================== */
.navbar { padding: 0.6rem 0; }
.navbar-brand { padding: 0; margin: 0; }
.navbar-brand img.logo-image {
    height: 96px;
    margin: -10px 0 -30px;   /* overflow out of the bar, don't grow it */
}
.navbar.scrolled { padding: 0.35rem 0; }
.navbar.scrolled .navbar-brand img.logo-image {
    height: 72px;
    margin: -8px 0 -20px;
}

@media (max-width: 768px) {
    .navbar-brand img.logo-image {
        height: 68px !important;
        margin: -6px 0 -16px !important;
    }
}
@media (max-width: 576px) {
    .navbar-brand img.logo-image {
        height: 60px !important;
        margin: -5px 0 -13px !important;
    }
}

/* ========================================
   CZA v5 — TRANSPARENT HEADER
   ======================================== */
.navbar {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none;
    box-shadow: none;
}
/* On scroll: solid bar returns, logo contained inside it */
.navbar.scrolled {
    background: rgba(10, 14, 26, 0.97) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 168, 255, 0.12) !important;
    box-shadow: var(--shadow-md);
}
.navbar.scrolled .navbar-brand img.logo-image {
    height: 56px;
    margin: -4px 0;
}

/* Mobile: open menu needs its own dark panel (already styled),
   keep toggler visible on transparent bar */
.navbar-toggler {
    background: rgba(10, 14, 26, 0.6);
}

/* ========================================
   CZA v6 — LOGO POSITION/SIZE TUNE + MOBILE POLISH
   ======================================== */
/* Slightly smaller, sits a little lower from the top edge */
.navbar-brand img.logo-image {
    height: 84px;
    margin: 8px 0 -24px;
}
.navbar.scrolled .navbar-brand img.logo-image {
    height: 54px;
    margin: -2px 0;
}

/* Mobile: full logo visible, comfortable size, nothing cut */
@media (max-width: 768px) {
    .navbar-brand img.logo-image {
        height: 64px !important;
        margin: 6px 0 -14px !important;
    }
    .navbar.scrolled .navbar-brand img.logo-image {
        height: 48px !important;
        margin: 0 !important;
    }
    /* hero logo prominent & centered on mobile */
    .hero-logo {
        width: 260px !important;
        margin: 0 auto 0.75rem !important;
        display: block !important;
        order: -1;
    }
    .hero-content { text-align: center; }
    .hero-tag { margin-top: 1rem; }
}
@media (max-width: 576px) {
    .navbar-brand img.logo-image {
        height: 56px !important;
        margin: 5px 0 -12px !important;
    }
    .hero-logo { width: 220px !important; }
    .hero-title { font-size: 1.9rem !important; }
    .hero-stats { justify-content: center !important; }
    .hero-buttons { justify-content: center !important; }
}

/* ========================================
   CZA v7 — MOBILE LOGO CLIP FIX
   (mobile .container{overflow-x:hidden} was clipping the
    hanging logo; contain it fully inside the bar on mobile)
   ======================================== */
@media (max-width: 768px) {
    .navbar > .container {
        overflow: visible !important;
    }
    .navbar-brand img.logo-image {
        height: 62px !important;
        margin: 4px 0 !important;      /* no negative margins — nothing to clip */
    }
    .navbar.scrolled .navbar-brand img.logo-image {
        height: 48px !important;
        margin: 0 !important;
    }
}
@media (max-width: 576px) {
    .navbar-brand img.logo-image {
        height: 56px !important;
        margin: 4px 0 !important;
    }
}

/* ========================================
   CZA v8 — MOBILE: BIGGER LOGO, BALANCED HAMBURGER
   ======================================== */
@media (max-width: 768px) {
    .navbar-brand img.logo-image {
        height: 80px !important;
        margin: 5px 0 !important;
    }
    .navbar.scrolled .navbar-brand img.logo-image {
        height: 58px !important;
        margin: 2px 0 !important;
    }
    .navbar-toggler {
        padding: 0.35rem 0.6rem;
        font-size: 1.05rem;
    }
}
@media (max-width: 576px) {
    .navbar-brand img.logo-image {
        height: 74px !important;
        margin: 5px 0 !important;
    }
    .navbar.scrolled .navbar-brand img.logo-image {
        height: 54px !important;
    }
}
