/* Base styles for the page */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fffaf0;
    /* Warm off-white */
    color: #333;
}

/* Footer styles */
footer {
    background-color: #2c3e50;
    /* Dark slate blue from reference image */
    border-top: 5px solid #f97316;
    /* Orange dividing bar */
    color: #f97316;
    padding: 8px 15px;
    text-align: center;
    margin-top: auto;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #f97316;
    padding: 10px 30px 15px 30px;
}

.contact-address {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-phone-email {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.contact-info p {
    margin: 3px 0;
    display: flex;
    align-items: center;
}

.footer-bottom {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0;
    width: 100%;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    padding-top: 5px;
    text-align: center;
}

/* Main content area */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px;
    overflow: hidden;
    position: relative;
}

@keyframes pulse-ring {
    0% {
        border-color: rgba(249, 115, 22, 0.2);
    }

    50% {
        border-color: rgba(249, 115, 22, 1);
    }

    100% {
        border-color: rgba(249, 115, 22, 0.2);
    }
}

/* Container for the circular buttons */
.circle-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px dashed #f97316;
    animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes orbit-container {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes orbit-button {
    from {
        transform: rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1)) rotate(0deg);
    }

    to {
        transform: rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1)) rotate(-360deg);
    }
}

@keyframes orbit-center {
    from {
        rotate: 0deg;
    }

    to {
        rotate: -360deg;
    }
}

.circle-container.circulate {
    animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite, orbit-container 40s linear infinite;
}

.circle-container.circulate .circle-button {
    animation: orbit-button 40s linear infinite;
}

.circle-container.circulate .center-dot {
    animation: orbit-center 40s linear infinite;
}

.circle-container.circulate:hover,
.circle-container.circulate:hover .circle-button,
.circle-container.circulate:hover .center-dot {
    animation-play-state: paused;
}

/* Marquee Animation for Courier Logos */
@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.logo-marquee-container {
    display: flex;
    width: 100%;
    /* Spans the full available width */
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-item-wrapper {
    display: flex;
    gap: 15px;
    padding-right: 15px;
    /* Matches gap for perfect loop */
    align-items: center;
    flex-shrink: 0;
    animation: marquee 6s linear infinite;
    will-change: transform;
}

.logo-item-wrapper img {
    height: 12px;
    width: auto;
    opacity: 0.8;
    flex-shrink: 0;
    display: block;
}

/* Center element - Transparent background as requested */
.center-dot {
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.center-dot:hover {
    transform: scale(1.05);
}

.center-dot:active {
    transform: scale(0.95);
}

/* Styling the links to look like buttons with border like the old center */
.circle-button {
    position: absolute;
    text-decoration: none;

    /* Changed to have a border similar to the previous center design */
    background-color: white;
    border: 2px solid #f97316;
    color: #f97316;

    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.15);

    box-sizing: border-box;
    width: 230px;
    height: 75px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0 12px;
    gap: 2px;
    /* gap between icon and title */
    transform-origin: center center;
    text-align: left;

    --angle: 0deg;
    --radius: 200px;

    top: 50%;
    left: 50%;
    margin-top: -37.5px;
    margin-left: -115px;

    transform: rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));
}

/* Default Hover effect */
.circle-button:hover {
    background-color: #f97316;
    color: white;
    scale: 1.1;
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.3);
    z-index: 10;
}

/* Active/Click effect */
.circle-button:active {
    scale: 0.95;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

/* Custom Themes */

/* Blue theme for driving */
.circle-button.theme-blue {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15);
}

.circle-button.theme-blue:hover {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

/* Magenta theme for printing */
.circle-button.theme-magenta {
    border-color: #d946ef;
    color: #d946ef;
    box-shadow: 0 4px 6px rgba(217, 70, 239, 0.15);
}

.circle-button.theme-magenta:hover {
    background-color: #d946ef;
    border-color: #d946ef;
    color: white;
    box-shadow: 0 8px 15px rgba(217, 70, 239, 0.3);
}

/* Yellow theme for tutoring */
.circle-button.theme-yellow {
    border-color: #eab308;
    color: #b45309;
    box-shadow: 0 4px 6px rgba(234, 179, 8, 0.15);
}

.circle-button.theme-yellow:hover {
    background-color: #eab308;
    color: white;
    box-shadow: 0 8px 15px rgba(234, 179, 8, 0.3);
}

/* Green theme for digital */
.circle-button.theme-green {
    border-color: #10b981;
    color: #047857;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.15);
}

.circle-button.theme-green:hover {
    background-color: #10b981;
    color: white;
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

/* Orange theme */
.circle-button.theme-orange {
    border-color: #f97316;
    color: #c2410c;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.15);
}

.circle-button.theme-orange:hover {
    background-color: #f97316;
    color: white;
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.3);
}

/* Dark theme */
.circle-button.theme-dark {
    border-color: #475569;
    color: #334155;
    box-shadow: 0 4px 6px rgba(71, 85, 105, 0.15);
}

.circle-button.theme-dark:hover {
    background-color: #475569;
    color: white;
    box-shadow: 0 8px 15px rgba(71, 85, 105, 0.3);
}

/* Set specific angles for 6 buttons (360 / 6 = 60 degrees apart) */
.circle-button:nth-child(2) {
    --angle: 60deg;
}

.circle-button:nth-child(3) {
    --angle: 300deg;
}

.circle-button:nth-child(4) {
    --angle: 120deg;
}

.circle-button:nth-child(5) {
    --angle: 240deg;
}

.circle-button:nth-child(6) {
    --angle: 180deg;
}

.circle-button:nth-child(7) {
    --angle: 0deg;
}

/* Standalone Header Layout */
header {
    background-color: #2c3e50;
    /* Dark slate blue from reference image */
    border-bottom: 5px solid #f97316;
    /* Orange dividing bar */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
}

.logo {
    text-align: center;
    color: #f97316;
    font-weight: bold;
}

.logo a {
    color: #f97316;
    display: inline-block;
    font-size: 2.3rem;
    line-height: 1.0;
    text-decoration: none;
}

.logo a:hover {
    text-decoration: underline;
}

.logo .sub-text {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 4px;
}

.logo .sub-text a {
    font-size: 1rem;
    text-decoration: underline;
}

/* Header Navigation */
.header-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2c3e50;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    gap: 10px;
    min-width: 150px;
    border-top: 2px solid #f97316;
}

.header-nav.active {
    display: flex;
}

.header-nav a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.header-nav a:hover {
    background-color: #f97316;
    color: white;
}

.menu-toggle {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

/* Responsive adjustments */

@media (max-width: 600px) {
    .circle-container {
        width: 100%;
        height: auto;
        border: none;
        flex-direction: column;
        padding: 10px 0 30px 0;
        gap: 15px;
    }

    .center-dot {
        margin-bottom: 25px;
    }

    .circle-button {
        position: relative;
        width: 260px;
        height: 75px;
        top: auto;
        left: auto;
        margin-top: 0;
        margin-left: 0;
        transform: none !important;
        /* Kept !important because animation runs later */
        animation: none !important;
    }

    .circle-button:hover {
        scale: 1.03 !important;
    }

    .circle-button:active {
        scale: 0.97 !important;
    }

    header {
        padding: 1rem 1rem;
    }

    .logo>a {
        font-size: 1.5rem;
    }

    .logo .sub-text {
        font-size: 0.75rem;
    }

    .logo .sub-text a {
        font-size: inherit;
    }

    /* Footer Mobile Layout */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 15px 10px;
    }

    .contact-address,
    .contact-phone-email {
        text-align: center !important;
        align-items: center;
    }

    .contact-address p,
    .contact-phone-email p {
        justify-content: center !important;
    }

    .contact-address p:last-child {
        padding-left: 0 !important;
    }
}