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

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --text-gray: #94a3b8;
    --border: #334155;
    --success: #22c55e;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

body.light-mode {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --bg-dark: #ffffff;
    --bg-darker: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 60px 0;
    width: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.big-b {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--secondary);
    margin: 15px 0;
}

.simple-text {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

.btn.small {
    padding: 6px 15px;
    font-size: 0.85rem;
}

.btn.large {
    padding: 12px 30px;
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* ===== 3D CUBE ===== */
.floating-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    margin: 0 auto;
    touch-action: none;
    animation: rotate 20s infinite linear;
}

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

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ===== LIVE STATS ===== */
.live-stats {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 15px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.experience-badge .years {
    font-size: 1.8rem;
    font-weight: 800;
}

.experience-badge .text {
    font-size: 0.7rem;
}

/* ===== DO GRID ===== */
.what-i-do h4 {
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.do-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.do-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
}

.do-item i {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 3px;
}

.do-item span {
    font-size: 0.8rem;
    display: block;
    font-weight: 600;
}

.do-item small {
    font-size: 0.65rem;
    color: var(--text-gray);
    display: block;
}

/* ===== DEVICE DETECTIVE ===== */
.interactive-zone {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.zone-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.zone-tab {
    padding: 6px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-gray);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.zone-tab.active {
    background: var(--primary);
    color: white;
}

.zone-content {
    display: none;
}

.zone-content.active {
    display: block;
}

.zone-content h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-stats {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.device-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 0.85rem;
}

.device-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
}

.device-value {
    color: var(--secondary);
    font-weight: 600;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
    min-width: 0;
}

.skill-name {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1.5s ease;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    margin: 15px 0;
    text-align: left;
}

.service-features li {
    padding: 5px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features i {
    color: var(--success);
    font-size: 0.8rem;
}

/* ===== DASHBOARDS (SCROLLABLE) ===== */
.projects-dashboard,
.teaching-dashboard,
.pricing-dashboard,
.video-dashboard {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.projects-dashboard::-webkit-scrollbar,
.teaching-dashboard::-webkit-scrollbar,
.pricing-dashboard::-webkit-scrollbar,
.video-dashboard::-webkit-scrollbar {
    height: 6px;
}

.projects-dashboard::-webkit-scrollbar-track,
.teaching-dashboard::-webkit-scrollbar-track,
.pricing-dashboard::-webkit-scrollbar-track,
.video-dashboard::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.projects-dashboard::-webkit-scrollbar-thumb,
.teaching-dashboard::-webkit-scrollbar-thumb,
.pricing-dashboard::-webkit-scrollbar-thumb,
.video-dashboard::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.projects-dashboard .project-card,
.teaching-dashboard .teaching-card,
.pricing-dashboard .pricing-card,
.video-dashboard .video-card {
    flex: 0 0 280px;
}

.projects-dashboard-controls,
.video-dashboard-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.projects-scroll-btn,
.video-scroll-btn {
    width: 35px;
    height: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.projects-scroll-btn:hover,
.video-scroll-btn:hover {
    background: var(--secondary);
    color: white;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.project-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
}

.project-content {
    padding: 15px;
}

.project-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.project-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.tech-tag {
    padding: 3px 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    border-radius: 15px;
    font-size: 0.7rem;
    color: var(--secondary);
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.project-actions .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* ===== TEACHING PRICING SECTION ===== */
.teaching-pricing {
    background: var(--bg-darker);
}

/* ===== PRICING CARDS ===== */
.pricing-card,
.teaching-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.pricing-card.featured,
.teaching-card.featured {
    border: 2px solid var(--secondary);
    transform: translateY(-5px);
}

.featured-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3,
.teaching-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.price small {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.pricing-features,
.teaching-features {
    list-style: none;
    margin: 15px 0;
}

.pricing-features li,
.teaching-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.pricing-features i,
.teaching-features i {
    color: var(--success);
    font-size: 0.8rem;
}

.pricing-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricing-btn:hover {
    background: var(--secondary);
    color: white;
}

/* ===== PRICING TABS ===== */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pricing-tab {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-gray);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pricing-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.pricing-section {
    display: none;
}

.pricing-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* ===== TECH COMPARISON ===== */
.tech-comparison {
    background: var(--bg-dark);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px 20px;
    position: relative;
}

.comparison-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.comparison-badge {
    position: absolute;
    top: -10px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.comparison-card h4 {
    font-size: 1.1rem;
    margin: 10px 0;
    color: var(--secondary);
}

.tech-icons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 1.5rem;
}

.tech-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 10px 0;
}

.tech-features {
    list-style: none;
    margin: 15px 0;
}

.tech-features li {
    padding: 5px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-features i {
    color: var(--success);
    font-size: 0.8rem;
}

.choose-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.choose-stack:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--bg-darker);
}

.testimonials-carousel-container {
    position: relative;
    padding: 10px 0;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.testimonial-control {
    width: 35px;
    height: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-control:hover {
    background: var(--secondary);
    color: white;
}

.testimonial-card-typing {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary);
}

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

.testimonial-name {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 3px;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.testimonial-text-typing {
    font-size: 0.95rem;
    min-height: 60px;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
}

.testimonial-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* ===== VIDEO CARDS ===== */
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.video-thumbnail {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.video-info {
    padding: 10px;
}

.video-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: var(--secondary);
}

.video-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.video-modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

#modalVideo {
    width: 100%;
    border-radius: 8px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.contact-details {
    margin: 25px 0;
}

.contact-details p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-details i {
    color: var(--primary);
}

.contact-cta {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
}

.contact-cta .btn {
    margin-bottom: 15px;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ===== NETWORK STATUS ===== */
.network-status {
    position: fixed;
    top: 80px;
    right: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 15px;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    min-width: 160px;
}

.network-status.minimized {
    min-width: auto;
    padding: 8px 12px;
}

.network-status.minimized .network-details,
.network-status.minimized .network-strength {
    display: none;
}

.network-status.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 1001;
}

.network-info {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.network-info i {
    color: var(--primary);
    font-size: 1rem;
}

.network-text {
    font-weight: 600;
    font-size: 0.85rem;
}

.network-strength {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 15px;
    margin-left: auto;
}

.network-strength.excellent { background: rgba(34,197,94,0.2); color: #22c55e; }
.network-strength.good { background: rgba(59,130,246,0.2); color: #3b82f6; }
.network-strength.fair { background: rgba(245,158,11,0.2); color: #f59e0b; }
.network-strength.poor { background: rgba(239,68,68,0.2); color: #ef4444; }

.network-details {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.network-status.expanded .network-details {
    display: block;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin: 4px 0;
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
    position: fixed;
    top: 80px;
    left: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    z-index: 100;
    border-left: 3px solid var(--primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1001;
}

/* ===== POPOUT NOTIFICATION ===== */
.popout-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.popout-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popout-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

/* ===== LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 280px;
}

.loader-logo {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.loader-logo i {
    filter: drop-shadow(0 0 20px var(--primary));
}

.loader-name span {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: letterFade 1.5s infinite;
}

.loader-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.loader-text {
    color: var(--text-gray);
    font-size: 0.8rem;
}

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

/* ===== FADE UP ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    width: 100%;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-social a {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== ADMIN MODAL ===== */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.admin-modal.show {
    display: flex;
}

.admin-modal-content {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 15px;
    max-width: 350px;
    width: 90%;
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.admin-modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
}

.admin-login-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59,130,246,0.3);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 80px;
    right: 10px;
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    margin-left: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .live-stats {
        justify-content: center;
    }
    
    .about-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 80px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .do-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        padding: 10px;
        right: -5px;
    }
    
    .experience-badge .years {
        font-size: 1.2rem;
    }
    
    .floating-cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }
    
    .cube-face.front { transform: translateZ(75px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(75px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(75px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
    
    .network-status {
        top: 70px;
        right: 5px;
        min-width: 140px;
    }
    
    .visitor-counter {
        top: 70px;
        left: 5px;
        padding: 4px 10px;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
    
    .projects-dashboard .project-card,
    .teaching-dashboard .teaching-card,
    .pricing-dashboard .pricing-card,
    .video-dashboard .video-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }
    
    .big-b {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .simple-text {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .stat-bubble {
        width: 100%;
        justify-content: center;
    }
    
    .do-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .do-item {
        padding: 8px 3px;
    }
    
    .do-item i {
        font-size: 1rem;
    }
    
    .do-item span {
        font-size: 0.7rem;
    }
    
    .do-item small {
        font-size: 0.6rem;
    }
    
    .stats-grid {
        gap: 5px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .device-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .pricing-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .network-status {
        min-width: 120px;
        padding: 6px 10px;
        top: 65px;
    }
    
    .network-text {
        font-size: 0.75rem;
    }
    
    .close-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }
    
    .testimonial-card-typing {
        padding: 15px;
    }
    
    .testimonial-text-typing {
        font-size: 0.85rem;
    }
    
    .admin-modal-content {
        padding: 20px 15px;
    }
    
    .contact-cta {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}