/* ============================================
   BASE & GENERAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.main-content {
    flex: 1;
    width: 100%;
}

/* ============================================
   COLOR SCHEME
   ============================================ */
:root {
    --avitech-blue: #0066CC;
    --avitech-dark-blue: #004999;
    --avitech-orange: #FF9900;
    --avitech-green: #00AA44;
    --avitech-light-bg: #F8F9FA;
}

/* ============================================
   NAVBAR TOP & BOTTOM BARS
   ============================================ */
.navbar-top-bar {
    height: 5px;
    background: linear-gradient(90deg, #000000 0%, #000000 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #0066CC 66.66%, #0066CC 100%);
    animation: slideInTop 0.8s ease-out;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.navbar-bottom-bar {
    height: 5px;
    background: linear-gradient(90deg, #000000 0%, #000000 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #0066CC 66.66%, #0066CC 100%);
    animation: slideInBottom 0.8s ease-out 0.2s both;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Shimmer Effect on Top Bar */
.navbar-top-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shimmerEffect 2.5s infinite ease-in-out;
    pointer-events: none;
}

/* Shimmer Effect on Bottom Bar */
.navbar-bottom-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shimmerEffect 2.5s infinite ease-in-out;
    pointer-events: none;
}

/* Animations */
@keyframes slideInTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmerEffect {
    0% {
        left: -100%;
    }

    50% {
        left: 50%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================
   MAIN NAVBAR STYLING
   ============================================ */
.avitech-navbar {
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    transition: all 0.3s ease;
    width: 100%;
}

    .avitech-navbar:hover {
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    }

    .avitech-navbar .navbar-nav {
        gap: 5px;
    }

    .avitech-navbar .nav-link {
        color: #333333 !important;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        padding: 8px 16px !important;
        border-radius: 4px;
        position: relative;
        white-space: nowrap;
    }

        .avitech-navbar .nav-link:hover {
            color: var(--avitech-blue) !important;
            background-color: rgba(0, 102, 204, 0.05);
            transform: translateY(-2px);
        }

        .avitech-navbar .nav-link.active {
            color: var(--avitech-blue) !important;
            border-bottom: 3px solid var(--avitech-blue);
            background-color: rgba(0, 102, 204, 0.03);
        }

/* ============================================
   NAVBAR BRAND WITH 3D ANIMATION
   ============================================ */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--avitech-dark-blue) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: fit-content;
}

    .navbar-brand:hover {
        color: var(--avitech-blue) !important;
        transform: scale(1.02);
    }

/* ============================================
   LOGO WITH 3D ROTATION
   ============================================ */
.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 55px;
    object-fit: contain;
    flex-shrink: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: spin-3d 4s infinite linear;
    transition: none !important;
    will-change: transform;
}

@keyframes spin-3d {
    0% {
        transform: rotateY(0deg);
    }

    25% {
        transform: rotateY(90deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    75% {
        transform: rotateY(270deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* ============================================
   BRAND TEXT CONTAINER
   ============================================ */
.brand-text {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    min-width: fit-content;
    flex-shrink: 0;
}

/* ============================================
   ANIMATED BRAND TITLE WITH SPLIT EFFECT
   ============================================ */
.brand-title-animated {
    position: relative;
    font-size: 1.6rem;
    color: transparent;
    font-weight: 900;
    line-height: 1.2;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    height: 1.35em;
    margin: 0;
    padding: 0;
    font-family: serif;
    white-space: nowrap;
}

    /* Top Half Split Animation */
    .brand-title-animated span.split-top {
        position: absolute;
        top: 0;
        left: 0;
        color: var(--avitech-blue);
        transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
        overflow: hidden;
        white-space: nowrap;
        transform: translateY(0);
    }

    .brand-title-animated.animate span.split-top {
        transform: translateY(-20px);
        color: var(--avitech-blue);
    }

    /* Bottom Half Split Animation */
    .brand-title-animated span.split-bottom {
        position: absolute;
        top: 0;
        left: 0;
        color: var(--avitech-blue);
        transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
        overflow: hidden;
        white-space: nowrap;
        transform: translateY(0);
    }

    .brand-title-animated.animate span.split-bottom {
        transform: translateY(20px);
        color: var(--avitech-blue);
    }

    /* Middle Subtitle Overlay Animation */
    .brand-title-animated span.subtitle-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scaleY(0);
        width: auto;
        color: #000000;
        font-size: 0.60em;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-align: center;
        padding: 0;
        margin: 0;
        white-space: nowrap;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .brand-title-animated.animate span.subtitle-overlay {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

/* ============================================
   GENERAL LINK STYLING
   ============================================ */
a {
    color: var(--avitech-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--avitech-dark-blue);
    }

/* ============================================
   NAVBAR TOGGLER (MOBILE)
   ============================================ */
.navbar-toggler {
    border: none;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
        outline: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23004999' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* ============================================
   FOOTER STYLING
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #e6f4fd 0%, #cfeaf9 100%);
    color: #0B3D91;
    padding: 60px 20px 0;
    width: 100%;
    border-top: 1px solid #bfe0f5;
    margin-top: 40px;
}

/* Footer Grid */
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding-bottom: 40px;
    padding: 0 15px 40px 15px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* FOOTER ABOUT SECTION */
.footer-about {
    grid-column: 1;
}

.footer-logo {
    width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(11, 61, 145, 0.12);
}

.footer-about p {
    color: rgba(11, 61, 145, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-address {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: rgba(11, 61, 145, 0.9);
    line-height: 1.5;
}

    .footer-address i {
        color: #0B3D91;
        margin-top: 3px;
        flex-shrink: 0;
    }

/* FOOTER LINKS SECTION */
.footer-links-col {
    grid-column: 2;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0B3D91;
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 14px;
    }

    .footer-links a {
        color: rgba(11, 61, 145, 0.8);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: #06b6d4;
            padding-left: 6px;
        }

/* FOOTER CONTACT SECTION */
.footer-contact {
    grid-column: 3;
}

    .footer-contact p {
        color: rgba(11, 61, 145, 0.85);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 22px;
    }

/* FOOTER CONTACT DETAILS */
.footer-contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .footer-contact-details li {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .footer-contact-details i {
        color: #0B3D91;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .footer-contact-details a {
        color: rgba(11, 61, 145, 0.85);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        word-break: break-word;
    }

        .footer-contact-details a:hover {
            color: #06b6d4;
            text-decoration: underline;
        }

/* FOOTER SOCIAL ICONS */
.footer-socials {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

    .footer-socials li {
        list-style: none;
    }

.footer-social-icon {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 2px solid rgba(11, 61, 145, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(11, 61, 145, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .footer-social-icon .icon {
        position: relative;
        color: #0B3D91;
        font-size: 1rem;
        transition: 0.5s;
        z-index: 3;
    }

    .footer-social-icon:hover .icon {
        color: #fff;
        transform: rotateY(360deg);
    }

    .footer-social-icon::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        transition: 0.5s;
        z-index: 2;
    }

    .footer-social-icon:hover::before {
        top: 0;
    }

/* BRAND COLORS FOR SOCIAL ICONS */
.footer-socials li:nth-child(1) .footer-social-icon::before {
    background: #3b5999;
}

.footer-socials li:nth-child(2) .footer-social-icon::before {
    background: #0077b5;
}

.footer-socials li:nth-child(3) .footer-social-icon::before {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-socials li:nth-child(4) .footer-social-icon::before {
    background: #C41E3A;
    ;
}

/* FOOTER MAP SECTION */
.footer-map {
    grid-column: 4;
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.15);
    border: 2px solid #fff;
}

    .map-container iframe {
        width: 100%;
        height: 180px;
        display: block;
    }

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(11, 61, 145, 0.2);
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(11, 61, 145, 0.7);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets: 1024px and below */
@media (max-width: 1024px) {
    .navbar-brand {
        margin-right: 20px;
    }

    .brand-title-animated {
        font-size: 1.4rem;
    }

    .avitech-navbar .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-links-col {
        grid-column: 1;
    }

    .footer-contact {
        grid-column: 2;
    }

    .footer-map {
        grid-column: 1 / -1;
    }
}

/* Tablets: 768px to 991px */
@media (max-width: 991px) {
    .navbar-brand {
        margin-right: auto;
    }

    .navbar-collapse {
        border-top: 2px solid var(--avitech-orange);
        padding-top: 15px;
        margin-top: 15px;
    }

    .avitech-navbar .navbar-nav {
        gap: 10px;
    }

    .brand-title-animated {
        font-size: 1.2rem;
    }
}

/* Small Tablets & Large Mobile: 576px to 767px */
@media (max-width: 767px) {
    .navbar-logo {
        height: 40px;
    }

    .navbar-brand {
        gap: 8px;
    }

    .brand-text {
        margin-left: 6px;
    }

    .brand-title-animated {
        font-size: 0.9rem;
    }

    .avitech-navbar .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px !important;
    }

    .navbar-top-bar,
    .navbar-bottom-bar {
        height: 4px;
    }

    .site-footer {
        padding: 40px 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px 30px 10px;
    }

    .footer-about {
        grid-column: 1;
    }

    .footer-links-col {
        grid-column: 1;
    }

    .footer-contact {
        grid-column: 1;
    }

    .footer-map {
        grid-column: 1;
    }

    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-about p {
        font-size: 0.9rem;
    }

    .footer-contact-details li {
        font-size: 0.85rem;
    }

    .map-container iframe {
        height: 150px;
    }

    .footer-logo {
        width: 80px;
    }
}

/* Mobile: 576px and below */
@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
    }

    .navbar-brand {
        gap: 6px;
    }

    .brand-text {
        margin-left: 4px;
    }

    .brand-title-animated {
        font-size: 0.8rem;
    }

    .avitech-navbar .nav-link {
        font-size: 0.8rem;
        padding: 5px 8px !important;
    }

    .navbar-top-bar,
    .navbar-bottom-bar {
        height: 3px;
    }

    .site-footer {
        padding: 30px 15px 0;
    }

    .footer-grid {
        padding: 0 5px 20px 5px;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-about p {
        font-size: 0.85rem;
    }

    .footer-contact-details {
        margin-bottom: 15px;
    }

        .footer-contact-details li {
            font-size: 0.8rem;
        }

        .footer-contact-details a {
            font-size: 0.8rem;
        }

    .footer-address {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .map-container iframe {
        height: 120px;
    }

    .footer-logo {
        width: 70px;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding: 15px 10px;
    }

    .footer-socials {
        gap: 10px;
    }

    .footer-social-icon {
        width: 38px;
        height: 38px;
    }

        .footer-social-icon .icon {
            font-size: 0.85rem;
        }
}

/* Extra Small Mobile: 375px and below */
@media (max-width: 375px) {
    .navbar-logo {
        height: 32px;
    }

    .brand-title-animated {
        font-size: 0.7rem;
    }

    .brand-text {
        margin-left: 2px;
    }

    .navbar-brand {
        gap: 4px;
    }

    .avitech-navbar .nav-link {
        font-size: 0.75rem;
        padding: 4px 6px !important;
    }

    .site-footer {
        padding: 20px 10px 0;
    }

    .footer-grid {
        padding: 0 2px 15px 2px;
    }

    .footer-about {
        padding: 0 5px;
    }

    .footer-heading {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .footer-about p {
        font-size: 0.8rem;
    }

    .footer-contact-details a {
        font-size: 0.75rem;
    }

    .footer-address {
        font-size: 0.75rem;
    }

    .map-container iframe {
        height: 100px;
    }

    .footer-logo {
        width: 60px;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-social-icon {
        width: 35px;
        height: 35px;
    }

        .footer-social-icon .icon {
            font-size: 0.75rem;
        }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(0, 102, 204, 0.5);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .navbar-logo {
        animation: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
    }
}
