/* Component Styles - Header and Footer */

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.nav {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-3xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    letter-spacing: var(--letter-spacing-normal);
}

.logo-icon {
    width: 130px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-nav.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
}

.btn-nav.btn-outline:hover {
    background: var(--color-text-primary);
    color: var(--color-background);
    transform: translateY(-1px);
}

.btn-nav.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-background);
    border: 2px solid var(--color-text-primary);
}

.btn-nav.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(2px);
    margin: 0;
    padding: 0;
}

.dropdown.active .dropdown-overlay {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
}

.dropdown-item:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.dropdown-item:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.dropdown-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.dropdown-icon i {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.dropdown-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dropdown-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.dropdown-content p {
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.4;
    margin: 0;
}

/* Footer Styles */
.footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 3rem 2rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    width: 260px;
    /* height: 50px; */
}

.footer-description {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

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

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

.footer-column ul li a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #1d1d1f;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.footer-bottom-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: #6e6e73;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1d1d1f;
}

.footer-dots {
    margin-top: 2rem;
    text-align: center;
}

#sthirnixCanvas {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    display: block;
    margin: 0 auto;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 6rem 2rem 2rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-nav-links a:hover {
    background: #f8fafc;
    text-decoration: none;
}

.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}


.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 1000px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #1d1d1f;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
}

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

.mobile-dropdown-item:hover {
    background: #e2e8f0;
    text-decoration: none;
    color: #1d1d1f;
}

.mobile-dropdown-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-dropdown-icon i {
    font-size: 1rem;
    color: var(--color-primary);
}

.mobile-dropdown-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-dropdown-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.5rem 0;
}

.mobile-dropdown-content p {
    font-size: 0.8rem;
    color: #6e6e73;
    margin: 0;
    line-height: 1.4;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-buttons .btn-nav {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Component Mobile Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        min-width: 500px;
        padding: 1rem;
    }
    
    .dropdown-grid {
        gap: 0.75rem;
    }
    
    .dropdown-item {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 100px;
        height: 35px;
    }

    .nav-buttons {
        gap: 0.5rem;
    }
    
    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        min-width: auto;
        transform: none;
        padding: 0.75rem;
    }
    
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dropdown-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    
    .dropdown-content h3 {
        font-size: 0.9rem;
    }
    
    .dropdown-content p {
        font-size: 0.75rem;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-logo .logo-icon {
        width: 200px;
    }

    .footer-column h4 {
        font-size: 1.2rem;
    }

    .footer-column ul li a {
        font-size: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 1rem;
    }

    #sthirnixCanvas {
        max-width: 90%;
        height: 120px;
    }

    .footer-dots {
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 100px;
        height: 35px;
    }

    #sthirnixCanvas {
        max-width: 95%;
        height: 100px;
    }

    .footer-dots {
        margin-top: 1rem;
    }

    .footer-right {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-logo .logo-icon {
        width: 180px;
    }

    .footer-column h4 {
        font-size: 1.3rem;
    }

    .footer-column ul li a {
        font-size: 1.1rem;
    }

    .footer-links a {
        font-size: 1.1rem;
    }
}
