/* ==========================================
   HUNGERDATA - Fixed Responsive Stylesheet
   ========================================== */

/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-blue: #1a4b8e; 
    --primary-dark: #0f2c55;
    --primary-orange: #f07e13;
    --secondary-orange: #ff9f4a;
    
    --bg-light: #f4f7fb;
    --bg-white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #6c757d;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --card-shadow: 0 15px 35px rgba(26, 75, 142, 0.08);
    --hover-shadow: 0 20px 40px rgba(240, 126, 19, 0.15);
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
    position: relative;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { 
    color: var(--primary-blue); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-orange));
    transition: var(--transition);
}

.nav-links a:hover::after { 
    width: 100%; 
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 75, 142, 0.3);
    white-space: nowrap;
}

.cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(240, 126, 19, 0.4);
    color: white !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 5px;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    background: 
        radial-gradient(circle at 90% 10%, rgba(240, 126, 19, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(26, 75, 142, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-text {
    max-width: 650px;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(240, 126, 19, 0.1);
    color: var(--primary-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(240, 126, 19, 0.2);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.hero h1 span { 
    color: transparent;
    background: linear-gradient(45deg, var(--primary-orange), #ff4d4d);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    width: 45%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(180deg, rgba(26, 75, 142, 0.1) 0%, rgba(240, 126, 19, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-bounce 8s infinite alternate;
    z-index: 1;
}

.main-logo-hero {
    width: min(300px, 70%);
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes blob-bounce {
    0% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
        transform: rotate(0deg); 
    }
    100% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; 
        transform: rotate(10deg); 
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- SECTIONS COMMON --- */
section { 
    padding: clamp(3rem, 8vw, 6rem) 5%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--primary-orange);
    margin: 0.5rem auto 0;
    border-radius: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* --- STATS SECTION --- */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    background: white;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-box {
    text-align: center;
    border-right: 1px solid #eee;
    padding: 1rem 0.5rem;
}

.stat-box:last-child { 
    border-right: none; 
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-orange);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

/* --- PRODUCTS / APPS --- */
#apps { 
    background-color: var(--bg-light); 
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.product-card:hover::before { 
    opacity: 1; 
}

.product-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.product-card:hover .product-icon { 
    transform: scale(1.1); 
}

.product-card h3 { 
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.8rem; 
    color: var(--primary-blue); 
}

.product-card p { 
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    color: var(--text-light); 
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-link {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.app-link:hover { 
    gap: 8px; 
}

/* --- SERVICES SECTION --- */
.services-section {
    background: var(--primary-blue);
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.services-section .section-title { 
    color: white; 
}

.services-section .section-subtitle { 
    color: rgba(255,255,255,0.7); 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(240, 126, 19, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-orange);
}

.service-card h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.service-features i {
    color: var(--primary-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Tech Stack */
.tech-stack-section {
    margin: 4rem 0;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.tech-badge:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.tech-badge i { 
    color: var(--primary-orange); 
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Process Flow */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.process-step { 
    position: relative; 
}

.process-step::after {
    content: '\f178';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 30%;
    right: -15%;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
}

.process-step:last-child::after { 
    display: none; 
}

.p-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
    background: rgba(255,255,255,0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.process-step h4 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    opacity: 0.8;
}

.xplore-highlight {
    margin-top: 5rem;
    text-align: center;
    background: rgba(0,0,0,0.25);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- KNOWLEDGE HUB --- */
.knowledge-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.topic-list {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.topic-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.topic-item:last-child { 
    border-bottom: none; 
}

.topic-item:hover { 
    background-color: #f9fcff; 
    color: var(--primary-blue); 
}

.topic-item.active {
    background-color: var(--primary-blue);
    color: white;
    border-left: 5px solid var(--primary-orange);
}

.topic-content {
    background: white;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
    min-height: 400px;
    transition: opacity 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

.topic-content * {
    max-width: 100%;
}

.topic-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.topic-content p,
.topic-content li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.code-snippet {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    margin: 1.5rem 0;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    position: relative;
    border-left: 3px solid var(--primary-orange);
    overflow-x: auto;
    line-height: 1.6;
    max-width: 100%;
}

.technique-box {
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-blue);
    margin: 15px 0;
    border-radius: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.technique-box strong {
    color: var(--primary-blue);
}

.technique-box ul {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- ACADEMY --- */
.academy-section {
    background: linear-gradient(to bottom, #ffffff, #f0f4f8);
}

.academy-box {
    border: 2px dashed var(--primary-blue);
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    border-radius: 30px;
    margin: 0 auto;
    max-width: 900px;
    background: white;
    position: relative;
}

.academy-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-orange);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* --- FOOTER --- */
footer {
    background-color: #0b1c36;
    color: white;
    padding: clamp(3rem, 6vw, 5rem) 5% 1rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-col h4 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li { 
    margin-bottom: 1rem; 
}

.footer-col ul li a { 
    color: #8fa6c5; 
    transition: var(--transition); 
}

.footer-col ul li a:hover { 
    color: var(--primary-orange); 
    padding-left: 5px; 
}

.copyright {
    text-align: center;
    color: #5d7596;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 4%;
    }
    
    section {
        padding: clamp(2.5rem, 6vw, 4rem) 4%;
    }
    
    .hero {
        padding: 100px 4% 50px;
    }
    
    .knowledge-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Navigation */
    nav {
        padding: 1rem 4%;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 80px;
        gap: 0;
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a {
        color: var(--text-main);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    nav .cta-btn {
        margin-top: 1rem;
        color: white !important;
    }
    
    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero p {
        max-width: 100%;
    }
    
    .hero-visual {
        width: 100%;
        margin-top: 3rem;
        height: 350px;
    }
    
    .blob {
        width: 300px;
        height: 300px;
    }
    
    /* Stats */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: -30px;
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
    }
    
    .stat-box:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Tech Container */
    .tech-container {
        gap: 0.8rem;
    }
    
    .tech-badge {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Knowledge Layout */
    .knowledge-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .topic-list {
        order: -1;
        width: 100%;
    }
    
    .topic-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .topic-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .topic-content h3 {
        font-size: 1.3rem !important;
    }
    
    .topic-content p,
    .topic-content li {
        font-size: 0.9rem;
    }
    
    .code-snippet {
        padding: 1rem;
        font-size: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .technique-box {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Process Grid */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    nav {
        padding: 0.8rem 3%;
        width: 100%;
    }
    
    section {
        padding: clamp(2rem, 5vw, 3rem) 3%;
        width: 100%;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .hero {
        padding: 100px 3% 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-box {
        border-bottom: 1px solid #eee;
        padding: 1rem 0;
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .product-card,
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .blob {
        width: 250px;
        height: 250px;
    }
    
    .topic-item {
        padding: 0.9rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .topic-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    
    .topic-content {
        padding: 1.2rem;
        min-height: 300px;
    }
    
    .topic-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem;
    }
    
    .topic-content p,
    .topic-content li {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .topic-content ul {
        padding-left: 1rem;
    }
    
    .code-snippet {
        padding: 0.8rem;
        font-size: 0.7rem;
        margin: 1rem 0;
    }
    
    .technique-box {
        padding: 0.8rem;
        margin: 1rem 0;
        font-size: 0.85rem;
    }
    
    .technique-box ul {
        margin-left: 1rem;
        font-size: 0.8rem;
    }
    
    .academy-box {
        padding: 2rem 1rem;
    }
    
    .xplore-highlight {
        margin-top: 3rem;
        padding: 1.5rem 1rem;
    }
    
    .tech-badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .cta-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
    
    .tech-badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .topic-content {
        padding: 1rem;
    }
    
    .code-snippet {
        font-size: 0.65rem;
        padding: 0.7rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:active,
    .service-card:active,
    .tech-badge:active {
        transform: scale(0.98);
    }
    
    .cta-btn:active {
        transform: scale(0.95);
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 5% 40px;
    }
    
    .hero-visual {
        height: 250px;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .product-icon img,
    .main-logo-hero {
        image-rendering: -webkit-optimize-contrast;
    }
}