:root {
    --bg-color: #f8fafc;
    /* Light background */
    --text-primary: #1e293b;
    /* Dark text */
    --text-secondary: #0f172a;
    /* Darker secondary text for contrast */
    --accent-color: #0284c7;
    /* Darker blue for light mode visibility */
    /* Sky blue/Cyan */
    --accent-glow: rgba(2, 132, 199, 0.2);
    --card-bg: rgba(255, 255, 255, 0.7);
    /* White with transparency */
    --glass-border: rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

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

/* 3D Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    /* Increased padding */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    /* More solid background */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    height: 100px;
    /* Fixed height for consistency */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    height: 80px;
    width: 220px;
    object-fit: contain;
    /* Ensures logo is not cropped */
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    background-color: #fff;
    padding: 2px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--accent-color);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Larger text */
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 15px var(--accent-glow);
    animation: icon-float 2s ease-in-out infinite;
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-indicator span {
    width: 4px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

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

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Products Section */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

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

.products-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.products-grid.active {
    display: grid;
}

/* Industries Carousel */
.industries-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.industry-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.industry-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form button {
    padding: 1rem;
    background: var(--accent-color);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #0284c7;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(241, 245, 249, 0.9);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation later if needed, simple hide for now */
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Collaboration Logo Glow Effects */
.collab-logo-img {
    width: 200px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid transparent;
    /* Base border */
    padding: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.collab-logo-img:hover {
    transform: scale(1.05);
}

/* 1. Cheema Boilers (Orange) */
.glow-orange {
    border-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.glow-orange:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
}

/* 2. LPU (Yellow/Gold) */
.glow-yellow {
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.glow-yellow:hover {
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.6);
}

/* 3. DesignInnova (Purple) */
.glow-purple {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.glow-purple:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* 4. Renderwise (Green) */
.glow-green {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.glow-green:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

/* 5. British Council (Pink) */
.glow-pink {
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.glow-pink:hover {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

/* 6. Ulster University (Indigo) */
.glow-indigo {
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.glow-indigo:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

/* Utility Class for Tab Navigation */
.section-hidden {
    display: none !important;
}

/* Fix content overlap with fixed navbar */
main {
    padding-top: 130px;
}
/* Enhanced About Us Styling */
.about-text h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text .feature-list li {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-mission .card {
    background: linear-gradient(145deg, #ffffff, #f3f4f6);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05), -5px -5px 15px #ffffff;
    border: none;
}

.vision-mission .card h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.future-quote {
    background: linear-gradient(to right, rgba(14, 165, 233, 0.05), rgba(79, 70, 229, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.future-quote h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* --- Mobile Optimization & Refactored Styles --- */

/* 1. New Classes from Refactor */
.about-grid {
    margin-bottom: 3rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.future-quote {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

.corporate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.collaborations-section {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.collaborations-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.collab-item {
    text-align: center;
    max-width: 300px;
}

/* 2. Mobile Media Queries */
@media (max-width: 768px) {
    /* Navbar Adjustment */
    .navbar {
        height: 70px;
        padding: 1rem 5%;
    }
    
    main {
        padding-top: 80px; /* Adjust for smaller navbar */
    }

    /* Typography Scaling */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Grids to Stacks */
    .vision-mission,
    .corporate-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Collaborations Grid - Reduce gap */
    .collaborations-grid {
        gap: 2rem;
    }
}

/* Fixed Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(255, 255, 255, 0.98); /* Bright theme background */
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text-primary);
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
