/* CSS Variables */
:root {
    --primary-color: #1E293B;
    --secondary-color: #EF8407;
    --accent-blue: #6366F1;
    --accent-purple: #8B5CF6;
    --accent-green: #10B981;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-light: #64748B;
    --background: #FFFFFF;
    --background-light: #F8FAFC;
    --background-gray: #F1F5F9;
    --border-color: #E2E8F0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* REMOVED: Global link styles - using inline CSS only on each page */
/* All button and link styles should be defined inline in HTML */

/* REMOVED: Common button styles - using inline CSS only on each page */
/* All button styles should be defined inline in HTML */

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Feature Cards Hover Effects */
.feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Header Styles */
header {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    transition: box-shadow 0.3s ease;
    box-shadow: none;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5px;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 80px;
    width: 100%;
    padding: 0 20px 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    z-index: 1001;
    position: relative;
}

.logo a {
    color: #000000 !important;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    display: block;
    margin-right: -40px;
}

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

.nav a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav a:hover {
    color: #EE970B;
}

.nav a.active {
    color: #634009;
    font-weight: 600;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    right: 0;
    border: 1px solid #e9ecef;
    padding: 1rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #666;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #EE970B;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Category Styles */
.dropdown-category {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.dropdown-category:last-child {
    border-bottom: none;
}

.category-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #320ee6;
    padding: 8px 12px 4px 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    margin-bottom: 4px;
    border-radius: 4px;
    margin: 0 8px 4px 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-label:hover {
    background-color: #e9ecef;
}

.category-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
    margin-left: 8px;
    object-fit: contain;
}

.dropdown-category a {
    padding-left: 20px !important;
    font-size: 0.9rem;
    color: #666;
}

.dropdown-category a:hover {
    background-color: #f8f9fa;
    color: #EE970B;
}

.category-products {
    display: none;
    padding: 0;
}

.category-products.show {
    display: block !important;
}

.category-arrow.rotated {
    transform: rotate(180deg);
}

/* Ensure desktop dropdown arrows work properly */
@media (min-width: 769px) {
    .dropdown-arrow {
        transform: none !important;
    }
    
    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg) !important;
    }
    
    /* Move Quantum Fusion slightly right in desktop view only */
    .logo {
        margin-left: 20px !important;
    }
}

/* Main Content */
main {
    margin-top: 0;
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    background: transparent;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-toggle:hover {
    background: transparent;
    border-color: transparent;
}

.mobile-menu-toggle:hover span {
    background: #333;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.92));
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.contact-item {
    text-align: left;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-secondary);
}

/* Footer Contact Item Images */
.footer .contact-item img {
    width: 20px;
    height: 20px;
    margin-right: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Contact Details */
.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Contact Labels - Bold */
.contact-label {
    font-weight: 600;
    color: #000000;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-address {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.research-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.research-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.research-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.research-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.research-link:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: #EF8407 !important;
    color: #000000 !important;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Footer section h4 moved to inline CSS in footer.php */

.footer-column p,
.footer-column a {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: #EE970B;
    text-decoration: none;
}

/* Footer styles moved to inline CSS in footer.php */

/* Removed - using inline styles in footer.php instead */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #000000 !important;
    padding: 6px;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.social-links a:hover {
    background: #6B4210;
    border-radius: 50%;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 66, 16, 0.3);
    border: 2px solid #6B4210 !important;
}

.social-links a i {
    font-size: 18px;
    color: #000000;
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: #ffffff;
}

/* Force remove any borders from social links */
.social-links a:focus,
.social-links a:active,
.social-links a:visited {
    outline: none !important;
    text-decoration: none !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #666;
    border: 1px solid #e9ecef;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(50, 14, 230, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: #000000;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom-left p {
    margin: 0;
    color: #000000;
    font-size: 0.9rem;
}

.footer-bottom-right {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-bottom-right a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: var(--primary-color);
}

/* Designer Link Specific Styling */
.designer-link {
    color: var(--text-secondary) !important;
}

.designer-link:hover {
    color: var(--text-secondary) !important;
}

.designer-link:hover .designer-name {
    color: var(--primary-color) !important;
}

.designer-name {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #228B22;
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
}

.whatsapp-float:hover {
    background-color: #228B22;
    transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed !important;
    width: 50px !important;
    height: 50px !important;
    bottom: 90px !important;
    right: 20px !important;
    background-color: #228B22 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.5) !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-to-top:hover {
    background-color: #5a6268;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Mobile Header */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Move Quantum Fusion logo left in mobile view */
    .logo {
        margin-left: -20px !important;
    }
    
    /* Move hamburger menu icon right in mobile view */
    .mobile-menu-toggle {
        margin-right: -100px !important;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        display: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav.active {
        left: 0;
        display: block !important;
    }
    
    /* Ensure dropdowns are closed by default in mobile */
    .nav .dropdown-content {
        display: none !important;
    }
    
    .nav .dropdown.active .dropdown-content {
        display: block !important;
    }
    
    .nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav ul li a {
        display: flex;
        align-items: center;
        padding: 15px 0;
        width: 100%;
        font-size: 1.1rem;
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .nav ul li a:hover {
        color: #EE970B;
    }
    
    .nav ul li a.active {
        color: #634009;
        font-weight: 600;
    }
    
    .nav .dropdown-arrow {
        margin-left: auto;
        font-size: 12px;
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .nav .dropdown.active .dropdown-arrow {
        transform: rotate(180deg) !important;
    }
    
    .nav .dropdown:not(.active) .dropdown-arrow {
        transform: rotate(0deg) !important;
    }
    
    .dropdown-content {
        position: static;
        display: none !important;
        width: 100%;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        border-top: 1px solid #eee;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }
    
    .dropdown-content a {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        color: #666;
        text-decoration: none;
        font-size: 0.95rem;
        border-bottom: 1px solid #eee;
        white-space: normal;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .dropdown-content a:hover {
        background: #e9ecef;
        color: #EE970B;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
        flex-direction: row !important;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }
    
    /* Mobile Content */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center !important;
    }
    
    .contact-info {
        align-items: center !important;
    }
    
    .contact-item {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Footer section mobile styles moved to inline CSS in footer.php */
    
    .footer-column {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .footer-column h3 {
        text-align: center !important;
    }
    
    .footer-column ul {
        text-align: center !important;
    }
    
    .footer-column li {
        text-align: center !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-float,
    .scroll-top {
        right: 20px;
    }
    
    .scroll-top {
        bottom: 100px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 90px 15px 15px;
    }
    
    .nav ul li a {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .dropdown-content a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
