﻿/* =========================================================
   SAN ROBOTICS
   MAIN WEBSITE STYLE
   ========================================================= */


/* ================================
   ROOT VARIABLES
================================ */

:root {

    --navy: #061A3A;
    --navy-dark: #031126;

    --blue: #087ED1;
    --blue-bright: #129BEF;

    --cyan: #45D9FF;
    --cyan-light: #8DEBFF;

    --white: #FFFFFF;
    --light: #F5FAFF;

    --text: #26364A;
    --text-light: #64748B;

    --border: rgba(8, 126, 209, 0.15);

    --shadow:
        0 10px 35px rgba(3, 17, 38, 0.12);

    --transition: all 0.35s ease;

}


/* ================================
   RESET
================================ */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: 'Inter', sans-serif;

    color: var(--text);

    background: var(--white);

    overflow-x: hidden;

}


a {

    text-decoration: none;

    color: inherit;

}


ul {

    list-style: none;

}


img {

    max-width: 100%;

    display: block;

}


/* ================================
   TOP BAR
================================ */

.top-bar {

    height: 38px;

    background: var(--navy-dark);

    color: rgba(255,255,255,0.85);

    font-size: 12px;

}


.top-container {

    max-width: 1450px;

    height: 100%;

    margin: auto;

    padding: 0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.top-left {

    display: flex;

    gap: 25px;

}


.top-left span {

    display: flex;

    align-items: center;

    gap: 7px;

}


.top-left i {

    color: var(--cyan);

}


.top-right {

    display: flex;

    gap: 15px;

}


.top-right a {

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    transition: var(--transition);

}


.top-right a:hover {

    color: var(--cyan);

    transform: translateY(-2px);

}


/* ================================
   MAIN HEADER
================================ */

.main-header {

    width: 100%;

    height: 88px;

    background: rgba(255,255,255,0.97);

    border-bottom: 1px solid rgba(8,126,209,0.10);

    position: relative;

    z-index: 1000;

    box-shadow:
        0 4px 20px rgba(3,17,38,0.05);

}


.nav-container {

    max-width: 1450px;

    height: 100%;

    margin: auto;

    padding: 0 30px;

    display: flex;

    align-items: center;

    gap: 30px;

}


/* ================================
   LOGO
================================ */

.brand-logo {

    width: 190px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

}


.brand-logo img {

    width: 100%;

    height: auto;

    object-fit: contain;

}


/* ================================
   NAVIGATION
================================ */

.main-nav {

    margin-left: auto;

}


.main-nav > ul {

    display: flex;

    align-items: center;

    gap: 4px;

}


.main-nav > ul > li {

    position: relative;

}


.main-nav > ul > li > a {

    position: relative;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 34px 10px;

    font-size: 13px;

    font-weight: 600;

    color: var(--navy);

    white-space: nowrap;

    transition: var(--transition);

}


/* Bottom animated line */

.main-nav > ul > li > a::after {

    content: "";

    position: absolute;

    bottom: 21px;

    left: 13px;

    width: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--cyan)
    );

    border-radius: 10px;

    transition: width 0.35s ease;

}


.main-nav > ul > li > a:hover {

    color: var(--blue);

}


.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {

    width: calc(100% - 26px);

}


/* Arrow */

.main-nav > ul > li > a i {

    font-size: 9px;

    transition: transform 0.3s ease;

}


.has-dropdown:hover > a i {

    transform: rotate(180deg);

}


/* ================================
   DROPDOWN
================================ */

.dropdown {

    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    min-width: 245px;

    padding: 10px;

    background: rgba(255,255,255,0.98);

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 20px 50px rgba(3,17,38,0.15);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(12px)
        scale(0.98);

    transform-origin: top center;

    transition:
        opacity 0.25s ease,
        transform 0.3s ease,
        visibility 0.25s ease;

    z-index: 9999;

}


/* Dropdown top glow */

.dropdown::before {

    content: "";

    position: absolute;

    top: -1px;

    left: 15px;

    right: 15px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );

    border-radius: 10px;

}


/* Show dropdown */

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

}


/* Dropdown items */

.dropdown li {

    position: relative;

}


.dropdown li a {

    display: flex;

    align-items: center;

    padding: 11px 14px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 500;

    color: var(--text);

    transition: var(--transition);

}


.dropdown li a::before {

    content: "";

    width: 0;

    height: 2px;

    background: var(--cyan);

    margin-right: 0;

    transition: var(--transition);

}


.dropdown li a:hover {

    color: var(--blue);

    background:
        linear-gradient(
            90deg,
            rgba(8,126,209,0.08),
            rgba(69,217,255,0.04)
        );

    padding-left: 18px;

}


.dropdown li a:hover::before {

    width: 7px;

    margin-right: 8px;

}


/* ================================
   DEMO BUTTON
================================ */

.demo-button {

    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 19px;

    border-radius: 50px;

    color: var(--white);

    font-size: 12px;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #0565B4
        );

    box-shadow:
        0 7px 20px rgba(8,126,209,0.25);

    transition: var(--transition);

}


.demo-button i {

    font-size: 11px;

    transition: transform 0.3s ease;

}


.demo-button:hover {

    color: var(--white);

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(8,126,209,0.35);

}


.demo-button:hover i {

    transform: translateX(4px);

}


/* ================================
   MOBILE MENU
================================ */

.menu-toggle {

    display: none;

}


.menu-icon {

    display: none;

    width: 42px;

    height: 42px;

    border-radius: 9px;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    background: rgba(8,126,209,0.08);

}


.menu-icon span {

    width: 20px;

    height: 2px;

    background: var(--navy);

    border-radius: 5px;

    transition: var(--transition);

}


/* ================================
   FOOTER
================================ */

.main-footer {

    background: var(--navy-dark);

    color: rgba(255,255,255,0.8);

    padding-top: 65px;

}


.footer-container {

    max-width: 1450px;

    margin: auto;

    padding: 0 30px 50px;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1.5fr;

    gap: 50px;

}


.footer-brand img {

    width: 210px;

    margin-bottom: 20px;

}


.footer-brand p {

    max-width: 350px;

    font-size: 14px;

    line-height: 1.8;

    color: rgba(255,255,255,0.6);

}


.footer-links h4,
.footer-contact h4 {

    color: var(--white);

    font-family: 'Space Grotesk', sans-serif;

    font-size: 16px;

    margin-bottom: 20px;

}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.footer-links a {

    width: fit-content;

    font-size: 13px;

    color: rgba(255,255,255,0.6);

    transition: var(--transition);

}


.footer-links a:hover {

    color: var(--cyan);

    transform: translateX(5px);

}


.footer-contact p {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 13px;

    font-size: 13px;

    color: rgba(255,255,255,0.6);

}


.footer-contact i {

    color: var(--cyan);

}


/* ================================
   FOOTER BOTTOM
================================ */

.footer-bottom {

    border-top:
        1px solid rgba(255,255,255,0.08);

    max-width: 1450px;

    margin: auto;

    padding: 20px 30px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 12px;

    color: rgba(255,255,255,0.45);

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .main-nav > ul > li > a {

        padding-left: 8px;
        padding-right: 8px;

        font-size: 12px;

    }

    .brand-logo {

        width: 165px;

    }

    .nav-container {

        gap: 15px;

    }

    .demo-button {

        padding: 11px 14px;

    }

}


@media (max-width: 1100px) {

    .main-nav {

        position: absolute;

        top: 88px;

        left: 0;

        width: 100%;

        background: var(--white);

        border-top:
            1px solid var(--border);

        box-shadow:
            0 20px 30px rgba(3,17,38,0.12);

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        transition:
            max-height 0.5s ease,
            opacity 0.35s ease;

    }


    .main-nav > ul {

        flex-direction: column;

        align-items: stretch;

        padding: 15px 25px 25px;

    }


    .main-nav > ul > li > a {

        padding: 14px 10px;

    }


    .main-nav > ul > li > a::after {

        display: none;

    }


    .menu-icon {

        display: flex;

        margin-left: auto;

    }


    .demo-button {

        display: none;

    }


    .menu-toggle:checked ~ .main-nav {

        max-height: 700px;

        opacity: 1;

        overflow-y: auto;

    }


    /* Hamburger animation */

    .menu-toggle:checked + .menu-icon span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);

    }


    .menu-toggle:checked + .menu-icon span:nth-child(2) {

        opacity: 0;

    }


    .menu-toggle:checked + .menu-icon span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);

    }


    /* Mobile dropdown */

    .dropdown {

        position: static;

        min-width: 100%;

        box-shadow: none;

        border: 0;

        border-radius: 8px;

        background: var(--light);

        padding: 5px;

        margin-bottom: 5px;

        opacity: 1;

        visibility: visible;

        transform: none;

        display: none;

    }


    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown {

        display: block;

    }


    .dropdown::before {

        display: none;

    }


    .dropdown li a {

        padding: 10px 15px;

    }

}


@media (max-width: 768px) {

    .top-bar {

        display: none;

    }


    .main-header {

        height: 75px;

    }


    .nav-container {

        padding: 0 18px;

    }


    .brand-logo {

        width: 155px;

    }


    .main-nav {

        top: 75px;

    }


    .footer-container {

        grid-template-columns: 1fr 1fr;

        gap: 35px;

    }


    .footer-bottom {

        flex-direction: column;

        text-align: center;

    }

}


@media (max-width: 480px) {

    .brand-logo {

        width: 120px;

    }


    .footer-container {

        grid-template-columns: 1fr;

    }

}

