/* ===== Base Variables ===== */
:root {
    --bg-color: #0d0d0d;
    --bg-darker: #050505;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    
    /* Brand Colors based on provided logo */
    --accent: #E61D2B; /* Deep vibrant Red */
    --accent-glow: rgba(230, 29, 43, 0.4);
    --accent-hover: #b51522;
    --glass-bg: rgba(25, 25, 25, 0.7);
    --glass-border: rgba(230, 29, 43, 0.2);
    
    /* Styling */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition: 0.3s ease-in-out;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent);
}

.link-accent {
    color: var(--accent);
    font-weight: 500;
}

.link-accent:hover {
    color: var(--text-main);
}

/* ===== Typography & Utilities ===== */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.underline.center {
    margin: 0 auto;
}

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

.text-center p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}

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

.w-100 {
    width: 100%;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: #fff;
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px; /* Increased for the square logo visibility */
    object-fit: contain;
    border-radius: 8px; /* Added subtle corner rounding */
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 90px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links li a:not(.btn):hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,0.9));
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(230, 29, 43, 0.4);
    box-shadow: 0 10px 40px rgba(230, 29, 43, 0.1);
    transform: translateY(-5px);
}

.tech-card {
    text-align: center;
    border-top: 4px solid var(--accent);
}

.tech-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.tech-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
    filter: brightness(0.8) contrast(1.2);
}

.service-card:hover .service-img {
    transform: scale(1.1);
    filter: brightness(1) sepia(0.3) hue-rotate(-20deg) saturate(1.5);
}

.service-content {
    padding: 30px;
    flex: 1;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Shop Section ===== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.shop-item {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, #111, #080808);
    border-radius: var(--border-radius);
    border: 1px solid #222;
    transition: var(--transition);
}

.shop-item:hover {
    border-color: var(--accent);
    background: linear-gradient(145deg, #150505, #080808);
}

.shop-item i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    transition: var(--transition);
}

.shop-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.shop-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.shop-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(230, 29, 43, 0.2);
}

/* ===== Footer ===== */
.footer {
    background-color: #000;
    padding-top: 60px;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
}

.footer-logo {
    height: 120px;
    border-radius: 8px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #111;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #111;
    color: #555;
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ===== Custom Services Grid & Alt Cards ===== */
.large-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.alt-card {
    padding: 25px;
    align-items: flex-start;
}

.alt-card .service-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.alt-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.alt-card p {
    font-size: 0.95rem;
}

/* ===== Tabs Container ===== */
.tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.tab-btn:hover, .tab-btn.active {
    border-color: var(--accent);
    color: #fff;
    background: rgba(230, 29, 43, 0.1);
}

.en-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    direction: ltr;
    display: block;
}

.not-found-cta p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-grid, .contact-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0a0a0a;
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
}
