/* ==========================================================================
   TOME TECH - MASTER STYLESHEET (RE-RESTORED ORIGINAL DESIGN)
   ========================================================================== */

:root {
    --primary: #FF0000;
    --dark: #000000;
    --dark-grey: #1a1a1a;
    --light: #ffffff;
    --gray: #f8f9fa;
    --border: #e0e0e0;
    --transition: all 0.3s ease-in-out;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Global Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Buttons --- */
.btn-red {
    display: inline-block; background: var(--primary); color: var(--light);
    padding: 12px 30px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; border: none; cursor: pointer;
    border-radius: 2px; transition: var(--transition);
}
.btn-red:hover { background: var(--dark); color: var(--light); }

/* --- Header & Navigation --- */
.main-header {
    background: var(--light); 
    border-bottom: 1px solid var(--border);
    position: relative; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 20px 5%; }

/* Desktop Menu Styling */
.nav-menu ul { display: flex; align-items: center; gap: 35px; }
.nav-menu ul li a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dark); }
.nav-menu ul li a:hover { color: var(--primary); }

/* Hamburger Icon Design - ADDED CLICK FIX */
.hamburger { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 6px; 
    z-index: 2000; /* CRITICAL: High z-index to stay above the menu */
    position: relative; 
    width: 40px;
    height: 40px;
}
.hamburger .bar { width: 30px; height: 3px; background-color: var(--dark); transition: 0.4s ease-in-out; pointer-events: none; }

/* Hamburger to X Transformation */
.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--primary); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--primary); }

/* --- Hero Section --- */
.hero-slider {
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    height: 80vh;
}
.hero-content { z-index: 10; padding: 0 5%; }
.hero-content h1 { font-size: 4rem; font-weight: 900; text-transform: uppercase; margin-bottom: 20px; }
.hero-content p { font-size: 1.5rem; margin-bottom: 40px; color: #ccc; max-width: 800px; margin: 0 auto; }

/* --- Layout Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 30px; position: relative; color: var(--dark); }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin-top: 15px; }

/* --- Footer --- */
.main-footer { background: var(--dark); color: var(--light); padding: 80px 5% 20px; }
.footer-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1400px; margin: 0 auto; }

/* --- Mobile Responsiveness (RESTORED ORIGINAL DESIGN) --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed; 
        top: 80px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 80px);
        background: var(--light); 
        transition: 0.4s ease-in-out; 
        z-index: 1500; /* Below the hamburger */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-menu ul { 
        flex-direction: column; 
        width: 100%; 
        padding: 40px 0; 
        gap: 0; 
    }
    
    .nav-menu ul li { width: 100%; text-align: left; }
    
    .nav-menu ul li a { 
        display: block; 
        padding: 20px 10%; 
        font-size: 14px; 
        font-weight: 700; 
        text-transform: uppercase; 
        letter-spacing: 1px;
        border-bottom: 1px solid var(--border);
        color: var(--dark);
    }

    /* FIX: Mobile Stack Order & Professional Padding for Portfolio */
    .grid-2 { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 40px !important; 
    }
    .info-sidebar { 
        order: 1 !important; 
        width: 100% !important; 
        padding: 0 5% !important; 
    }
    .main-content { 
        order: 2 !important; 
        width: 100% !important; 
        padding: 0 5% !important; 
    }
    
    .grid-3, .footer-container { grid-template-columns: 1fr; }
    
    .hero-slider { height: auto !important; min-height: 90vh; padding: 140px 5% 80px !important; }
    .hero-content h1 { font-size: 2.5rem !important; }
}

/* --- Infinite Slider --- */
.slider-container { width: 100%; overflow: hidden; padding: 40px 0; position: relative; background: #fff; }
.slider-track { display: flex; width: calc(250px * 20); animation: scroll 40s linear infinite; gap: 80px; align-items: center; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 10)); } }

/* --- Header Hybrid Logo Styles --- */
.logo-wrapper { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.header-icon { height: 40px; width: auto; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; }

/* --- Footer Branding Fixes --- */
.branding-block { display: flex; flex-direction: column; align-items: flex-start; }
.footer-icon-wrap { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-bottom: 15px; 
    max-width: 250px; 
}
.footer-brand-icon { height: 80px; width: auto; display: block; }
.footer-brand-text { color: #fff; margin: 0 0 20px 0; font-weight: 900; font-size: 1.4rem; text-transform: uppercase; text-align: left; }
.footer-description { color: #aaa; font-size: 0.95rem; line-height: 1.8; text-align: left; max-width: 280px; }
.footer-heading { color: var(--light); font-size: 1.1rem; margin-bottom: 25px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; text-align: left; }

/* --- STRICT 36px SOCIAL ICONS --- */
.footer-socials { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 15px; }
.footer-socials img { 
    width: 36px !important; 
    height: 36px !important; 
    object-fit: contain; 
    display: block;
}