/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette (Light Mode Default) */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #1D4ED8;
    --accent: #3B82F6;
    --white: #FFFFFF;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --footer-bg: #0F172A;
    --footer-text: #94A3B8;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --secondary-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --accent-gradient: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    --primary-gradient-light: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    --secondary-gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    --accent-gradient-light: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    --glow-color: rgba(37, 99, 235, 0.15);

    /* Fonts */
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(37, 99, 235, 0.08), 0 10px 10px -5px rgba(37, 99, 235, 0.03);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* Layout & Transitions */
    --max-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
}

/* ==========================================================================
   DARK THEME OVERRIDES
   ========================================================================== */
.dark-theme {
    --background: #090D16;
    --card-bg: #0F172A;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: #1E293B;
    --footer-bg: #030712;
    --footer-text: #64748B;
    --primary-light: rgba(37, 99, 235, 0.15);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.5);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glow-color: rgba(37, 99, 235, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

ul {
    list-style: none;
}

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

input, textarea, button {
    font-family: inherit;
    outline: none;
    border: none;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: var(--border-radius-full);
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   REUSABLE UTILITIES & LAYOUTS
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.bg-light {
    background-color: rgba(37, 99, 235, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.header-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto;
    border-radius: var(--border-radius-full);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    gap: 10px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Gradients text */
.highlight-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   1. NAVIGATION HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    transition: height var(--transition-normal), background var(--transition-normal);
}

.dark-theme .header {
    background: rgba(9, 13, 22, 0.7);
}

.header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(248, 250, 252, 0.85);
    box-shadow: var(--shadow-sm);
}

.dark-theme .header.scrolled {
    background: rgba(9, 13, 22, 0.85);
}

.navbar {
    height: 100%;
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.nav-link i {
    font-size: 13px;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* Actions and hamburger */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

/* Mobile Hamburger Active state */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu container */
.mobile-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-in-out;
}

.mobile-menu-container.active {
    max-height: 400px;
}

.mobile-menu {
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    font-family: var(--font-title);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    padding-left: 24px;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--border-radius-full);
    margin-bottom: 25px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary);
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    font-family: var(--font-title);
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    color: var(--primary);
    font-weight: 600;
    border-right: 2px solid var(--primary);
    padding-right: 4px;
    animation: blink 0.75s step-end infinite;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.socials-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Visuals & Illustration column */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    position: relative;
}

/* Floating elements */
.floating-shape {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 20px;
    transition: transform var(--transition-fast);
}

.shape-1 {
    width: 50px;
    height: 50px;
    top: 10%;
    left: -5%;
    color: #61DAFB; /* React Blue */
    animation: float-y 4s ease-in-out infinite;
}

.shape-2 {
    width: 45px;
    height: 45px;
    top: 50%;
    right: -5%;
    color: #3776AB; /* Python Blue */
    animation: float-y 5s ease-in-out 1s infinite;
}

.shape-3 {
    width: 50px;
    height: 50px;
    bottom: 5%;
    left: 10%;
    color: var(--primary);
    animation: float-y 4.5s ease-in-out 0.5s infinite;
}

.shape-4 {
    width: 45px;
    height: 45px;
    top: -5%;
    right: 20%;
    color: #F24E1E; /* Figma Orange */
    animation: float-y 6s ease-in-out 1.5s infinite;
}

/* Glassmorphic floating card */
.hero-glass-card {
    position: absolute;
    bottom: 20%;
    right: -10%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-glass);
    animation: float-y 5s ease-in-out 0.5s infinite;
}

.dark-theme .hero-glass-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-glass-card i {
    font-size: 24px;
}

.hero-glass-card div {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Background elements */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: var(--border-radius-full);
}

.circle-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 70%);
}

.grid-pattern {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
}

.dark-theme .grid-pattern {
    opacity: 0.15;
}

/* Scroll down indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--text-secondary);
    display: block;
    position: relative;
}

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

/* ==========================================================================
   3. ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-avatar-col {
    display: flex;
    justify-content: center;
}

.avatar-frame {
    position: relative;
    width: 320px;
    height: 320px;
}

.about-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    background-color: var(--white);
    border: 4px solid var(--card-bg);
}

.frame-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: -20px;
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

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

.about-overlay-card {
    position: absolute;
    bottom: -15px;
    right: -20px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    max-width: 180px;
}

.dark-theme .about-overlay-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
}

.overlay-number {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.overlay-text {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
}

.about-info-col {
    display: flex;
    flex-direction: column;
}

.about-heading {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-number {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-plus {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.3;
    font-weight: 500;
    text-transform: uppercase;
}

/* Personal details */
.personal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    margin-top: 10px;
}

.detail-item {
    font-size: 14px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 5px;
}

.detail-value {
    color: var(--text-secondary);
}

/* ==========================================================================
   4. SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.skill-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.category-header i {
    font-size: 22px;
}

.category-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.category-skills {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-item {
    display: flex;
    flex-direction: column;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.skill-info span:first-child {
    color: var(--text-primary);
}

.skill-info span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.progress-line {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: var(--border-radius-full);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-full);
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* ==========================================================================
   5. TIMELINES (EDUCATION & EXPERIENCE)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 3px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 70px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-full);
    border: 4px solid var(--background);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-color: var(--primary-light);
}

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

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

.timeline-content-wrapper {
    display: flex;
    flex-direction: column;
}

.timeline-date {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 25px 30px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    position: relative;
}

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

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
    flex-wrap: wrap;
}

.education-institution, .experience-company {
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-institution i, .experience-company i {
    font-size: 16px;
}

.education-institution h3, .experience-company h3 {
    font-size: 18px;
    font-weight: 600;
}

.academic-grade, .experience-type {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--border-radius-full);
    background: var(--primary-light);
    color: var(--primary);
}

.education-degree, .experience-role {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.education-details, .experience-achievements {
    margin-top: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.education-details h5, .experience-achievements h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.details-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.details-badges .badge {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
}

.experience-achievements ul {
    list-style-type: disc;
    margin-left: 15px;
}

.experience-achievements li {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ==========================================================================
   6. PROJECTS SECTION
   ========================================================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-full);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.project-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    transition: opacity var(--transition-normal);
}

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

.overlay-links {
    display: flex;
    gap: 15px;
}

.project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--border-radius-full);
    background: var(--white);
    color: var(--text-primary);
    font-size: 18px;
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.project-link-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Custom Mock Image Gradients for portfolio */
.mock-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
    transition: transform var(--transition-slow);
}

.project-card:hover .mock-img {
    transform: scale(1.05);
}

.mock-img i {
    font-size: 32px;
}

.img-web { background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%); }
.img-church { background: linear-gradient(135deg, #065F46 0%, #10B981 100%); }
.img-ai { background: linear-gradient(135deg, #581C87 0%, #8B5CF6 100%); }
.img-portfolio { background: linear-gradient(135deg, #7C2D12 0%, #F97316 100%); }
.img-shop { background: linear-gradient(135deg, #9D174D 0%, #EC4899 100%); }
.img-inventory { background: linear-gradient(135deg, #075985 0%, #0EA5E9 100%); }

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-full);
    color: var(--primary);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.dark-theme .project-badge {
    background: rgba(15, 23, 42, 0.95);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    background: var(--background);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ==========================================================================
   7. CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-slider-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.certifications-slider {
    display: flex;
    gap: 25px;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card {
    flex: 0 0 calc(100% - 0px); /* 1 slide visible on mobile by default */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cert-card:hover {
    border-color: var(--primary);
}

.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: var(--primary-light);
    margin-bottom: 20px;
}

.cert-icon i {
    font-size: 24px;
}

.cert-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-issuer {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.cert-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cert-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Carousel dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dots .dot.active {
    background: var(--primary);
    width: 24px;
}

/* ==========================================================================
   8. ACHIEVEMENTS SECTION
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.achievement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

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

.achievement-icon i {
    font-size: 24px;
}

.achievement-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.achievement-event {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.achievement-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   9. TECH STACK SECTION
   ========================================================================== */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tech-icon-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    cursor: default;
}

.tech-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--glow-color);
    border-color: var(--primary);
}

.tech-icon-card i {
    font-size: 40px;
    transition: transform var(--transition-fast);
}

.tech-icon-card:hover i {
    transform: scale(1.1);
}

.tech-icon-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================================================
   10. CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
}

.contact-heading {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
}

.contact-detail-card i {
    font-size: 20px;
}

.detail-content h4 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-content span, .detail-content a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Large Social Channels Group */
.contact-social-channels h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.social-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-title);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--white);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-btn:hover {
    transform: translateY(-2px);
}

.github-btn {
    background: #24292E;
    box-shadow: 0 4px 10px rgba(36, 41, 46, 0.3);
}

.linkedin-btn {
    background: #0077B5;
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.3);
}

.instagram-btn {
    background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3);
}

/* Contact Form styling */
.contact-form-col {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-title);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: #EF4444;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: color var(--transition-fast);
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: var(--border-radius-md);
    background: var(--background);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14.5px;
    transition: all var(--transition-fast);
}

.text-area-wrapper {
    align-items: flex-start;
}

.text-area-wrapper i {
    top: 16px;
}

.input-wrapper textarea {
    resize: none;
}

/* Focus Animations */
.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-wrapper input:focus ~ i, .input-wrapper textarea:focus ~ i {
    color: var(--primary);
}

/* Errors & Validations */
.form-group.error .input-wrapper input, .form-group.error .input-wrapper textarea {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.02);
}

.form-group.error .input-wrapper i {
    color: #EF4444;
}

.error-msg {
    font-size: 12px;
    color: #EF4444;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

/* Form Status Box */
.form-status {
    padding: 14px 16px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    display: none;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   11. FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-top h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links, .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-info li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--primary);
    width: 14px;
}

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

.copyright {
    font-size: 13px;
}

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

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.03);
    color: var(--footer-text);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

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

@keyframes scroll-wheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0.3;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

/* Reveal classes for JavaScript Intersection Observer */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.1, 1, 0.1, 1), transform 0.8s cubic-bezier(0.1, 1, 0.1, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Ultrawide Monitor (1400px+) */
@media screen and (min-width: 1400px) {
    :root {
        --max-width: 1320px;
    }
}

/* Desktop (1200px and under) */
@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 44px;
    }
    .hero-glass-card {
        right: -5%;
    }
}

/* Laptop (992px and under) */
@media screen and (max-width: 992px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-badge, .hero-ctas, .hero-socials {
        align-self: center;
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 20px;
    }
    
    .illustration-wrapper {
        max-width: 380px;
    }
    
    .hero-glass-card {
        right: 0;
        bottom: 5%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-info-col {
        align-items: center;
    }
    
    .personal-details-grid {
        justify-content: center;
        text-align: left;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Tablet (768px and under) */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 16px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-dot {
        left: 5px;
    }
    
    .timeline-card {
        padding: 20px;
    }
    
    .timeline-card-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .academic-grade, .experience-type {
        align-self: flex-start;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-form-col {
        padding: 30px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (480px and under) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .avatar-frame {
        width: 250px;
        height: 250px;
    }
    
    .about-overlay-card {
        right: -10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
    }
    
    .personal-details-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .cert-card {
        padding: 20px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-btn-group {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   11. AUGMENTED REALITY SHOWCASE & OVERLAY STYLING
   ========================================================================== */
.ar-showcase-section {
    background-color: rgba(37, 99, 235, 0.01);
}

.ar-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.ar-heading {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ar-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.ar-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 35px;
}

.ar-step-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    background: var(--primary-gradient);
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-desc h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-desc p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ar-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.ar-link:hover {
    color: var(--primary-hover);
}

/* Mockup Frame Preview */
.ar-mockup-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    height: 480px;
    border-radius: 40px;
    background: #0F172A;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 30px 60px -15px rgba(15, 23, 42, 0.3);
    border: 4px solid var(--border-color);
}

.dark-theme .ar-mockup-frame {
    border-color: #1E293B;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.preview-cube-icon {
    font-size: 48px;
    color: var(--primary);
    animation: rotate-cube 8s linear infinite;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.6));
}

.preview-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
}

.mockup-camera-lens {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-full);
    background: #1E293B;
    border: 2px solid #334155;
    z-index: 10;
}

.mockup-target-box {
    position: absolute;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-target-box .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.mock-hiro-marker {
    width: 100px;
    height: 100px;
    background: #000000;
    border: 15px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transform: rotateX(45deg) rotateZ(-15deg);
    animation: bounce-marker 4s ease-in-out infinite;
}

.mock-hiro-marker span {
    color: #FFFFFF;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
}

.ar-badge-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-glass);
}

.dark-theme .ar-badge-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

/* AR.JS SCREEN OVERLAY */
.ar-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ar-overlay-container.active {
    display: flex;
}

.ar-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.6);
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius-full);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.ar-close-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    transform: scale(1.05);
}

.ar-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090D16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 500;
    z-index: 999999;
    pointer-events: auto;
}

.ar-loader-container .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#ar-scene-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99998;
    pointer-events: auto;
}

/* Hide A-Frame VR button and scanner box from AR.js overlay */
.a-enter-vr, .a-enter-ar-button {
    display: none !important;
}

/* AR.js dynamically appends a video background. Style it nicely. */
body.ar-active {
    overflow: hidden !important;
}

body.ar-active video {
    z-index: 99997 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Animation keyframes */
@keyframes rotate-cube {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes bounce-marker {
    0%, 100% { transform: rotateX(45deg) rotateZ(-15deg) translateY(0); }
    50% { transform: rotateX(45deg) rotateZ(-15deg) translateY(-8px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustment for AR Showcase */
@media screen and (max-width: 992px) {
    .ar-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .ar-steps {
        align-items: center;
    }
    
    .ar-step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ar-badge-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 220px;
    }
}

