/* ==========================================================================
   CSS Variables & Theming System
   ========================================================================== */
   :root {
    /* Color Palette - Light Mode Default */
    --bg-primary: #FAFAFC;
    --bg-secondary: #FFFFFF;
    --bg-alt: #F1F2F6;
    
    --text-primary: #121214;
    --text-secondary: #4A4A5A;
    
    --accent-color: #0066FF;
    --accent-gradient: linear-gradient(135deg, #0066FF, #00C6FF);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --section-spacing: 100px;
}

[data-theme="dark"] {
    --bg-primary: #0A0A0B;
    --bg-secondary: #121214;
    --bg-alt: #18181B;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1B5;
    
    --accent-color: #3B82F6;
    --accent-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 18, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

.section-padding {
    padding: var(--section-spacing) 0;
}

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

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

.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Components: Buttons & Forms
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    font-family: var(--font-heading);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--accent-color);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
    background: transparent;
}
.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}
.btn-block {
    width: 100%;
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}
.btn-icon:hover {
    background: var(--border-color);
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Layout: Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}
.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}
.hamburger:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-tagline {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* Hero Visual Art piece */
.hero-visual {
    position: relative;
    height: auto;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.glass-orb {
    position: absolute;
    z-index: 1;
    width: 450px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, rgba(0, 102, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.8;
    animation: heartbeatOrb 2.5s infinite ease-in-out;
}
[data-theme="dark"] .glass-orb {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
}
.visual-card {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(10px);
}
.visual-card .metrics {
    text-align: center;
}
.metrics .numbers {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}
.metrics .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.hero-profile-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 4px solid var(--accent-color);
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag {
    background: var(--bg-alt);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}
.uppercase-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}
.tool-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 0 8px 8px 0;
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 16px;
    position: relative;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    color: var(--text-primary);
}
.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}
.case-study-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.case-study-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.case-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.8;
}
.case-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.case-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.case-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.case-brief {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex-grow: 1;
}
.case-brief p {
    margin-bottom: 8px;
}
.highlight-result {
    color: var(--text-primary);
    background: var(--bg-alt);
    padding: 8px;
    border-radius: 6px;
    margin-top: 12px;
}
.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.case-link:hover {
    color: var(--accent-color);
}

/* Testimonial Section */
.testimonial-block {
    max-width: 800px;
    margin: 0 auto;
}
.quote-icon {
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: 24px;
}
.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 30px;
}
.testimonial-author {
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Blog Section */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}
.blog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.3);
}
.blog-card:hover .blog-image {
    transform: scale(1.05);
}
.blog-image {
    height: 220px;
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
}
.blog-content {
    padding: 30px;
}
.blog-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.blog-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.blog-title a:hover {
    color: var(--accent-color);
}
.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info {
    padding-top: 20px;
}
.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.contact-methods {
    margin-top: 40px;
}
.method {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}
.method svg {
    color: var(--accent-color);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.contact-form {
    padding: 40px;
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Footer Section */
.footer {
    background: transparent;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
/* Optional ambient glow for premium feel */
.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand {
    flex: 1 1 300px;
}
.footer-brand .logo-img {
    height: 36px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.1));
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 350px;
}
.footer-links {
    flex: 1 1 200px;
}
.footer-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
}
.footer-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}
.footer-links a:hover::after {
    width: 100%;
}
.footer-social {
    flex: 1 1 200px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icon:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Inner Pages (Blog Content, Archive)
   ========================================================================== */
.pt-top {
    padding-top: 140px;
}
.pb-bottom {
    padding-bottom: 80px;
}
.container-narrow {
    max-width: 800px;
}

/* Blog Search & Filter */
.blog-search-filter {
    margin: 40px auto;
}
.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}
.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.cat-btn:hover, .cat-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Single Blog Post Formatting */
.post-header {
    margin-bottom: 40px;
}
.post-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}
.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.blog-category.tag-link {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 12px;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-left {
    text-align: left;
}
.single-post .post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    padding: 60px;
}
.post-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}
.post-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}
.post-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}
.post-content ul, .post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-secondary);
}
.post-content li {
    margin-bottom: 10px;
}
.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
.pull-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding: 20px 0 20px 30px;
    margin: 40px 0;
    font-weight: 600;
    background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.callout-box {
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 40px 0;
    border-left: 4px solid var(--accent-color);
}
.callout-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
}
.callout-box p {
    margin-bottom: 0;
}
.content-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
}
.read-more {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: auto;
    display: inline-block;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-input {
    flex-grow: 1;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* ==========================================================================
   Interactive Glow Effect
   ========================================================================== */
.cursor-glow {
    position: fixed;
    top: -1000px; /* Hidden initially */
    left: -1000px;
    width: 150px; 
    height: 150px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.25) 0%, rgba(0, 102, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.5s ease;
    will-change: top, left, transform;
    animation: heartbeatGlow 2.5s infinite ease-in-out;
}
[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
}

@keyframes heartbeatGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    30% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    45% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

@keyframes heartbeatOrb {
    0% { transform: scale(1); opacity: 0.6; }
    15% { transform: scale(1.1); opacity: 1; }
    30% { transform: scale(1); opacity: 0.6; }
    45% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* ==========================================================================
   Testimonial Slider
   ========================================================================== */
.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.testimonial-slide.active {
    display: block;
    opacity: 1;
    animation: fadeInSlide 0.5s forwards;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-controls {
    gap: 20px;
}
.slider-btn {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-btn:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}
.slider-dots {
    display: flex;
    gap: 8px;
}
.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ==========================================================================
   Certificate Slider
   ========================================================================== */
.cert-slider-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
}
.cert-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.cert-slide.active {
    display: block;
    opacity: 1;
    animation: fadeInSlide 0.5s forwards;
}

/* ==========================================================================
   Custom Glassmorphism Neon Cursor
   ========================================================================== */

/* Hide default cursor on desktop devices with mice */
@media (pointer: fine) {
    body, a, button, input, textarea, select {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 198, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    will-change: width, height, transform, background;
}

.custom-cursor.cursor-hover {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid rgba(0, 198, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6), inset 0 0 10px rgba(0, 198, 255, 0.2);
}

@media (pointer: coarse), (hover: none), (max-width: 768px) {
    /* Completely hide the custom cursor elements on mobile touch devices */
    .custom-cursor, .cursor-glow {
        display: none !important;
        opacity: 0 !important;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    .flex-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-links ul {
        flex-direction: column;
        gap: 12px;
    }
    .flex-footer {
        flex-direction: column;
    }
    .contact-form {
        padding: 24px;
    }
    
    /* Optimize Performance: Disable expensive glass blur on mobile */
    .navbar.scrolled,
    .glass-card,
    .contact-form,
    .cert-slide,
    .certificate-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-surface) !important;
    }
}
