/* ===== Custom Styles for Multiservice Connections ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border: 2px solid rgba(251, 191, 36, 0.08);
    border-radius: 50%;
    top: -100px;
    left: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(251, 191, 36, 0.1);
    top: 30%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(251, 191, 36, 0.06);
    top: 50%;
    left: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(251, 191, 36, 0.07);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: spin-slow 30s linear infinite reverse;
}

.geo-dots {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 25%;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots-2 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    animation: float-slow 14s ease-in-out infinite reverse;
}

/* ===== Floating Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(15, 31, 77, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1f4d;
}

::-webkit-scrollbar-thumb {
    background: #3b5bdb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c6ef5;
}

/* ===== Selection ===== */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(251, 191, 36, 0.06);
    }
}
