/* ============================================
   ABC ALTERATIONS — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a1628;
    color: #ffffff;
    overflow-x: hidden;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(45, 212, 191, 0.08);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(45, 212, 191, 0.04);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(45, 212, 191, 0.1);
    border-radius: 50%;
    top: 40%;
    left: 15%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.04);
    top: 60%;
    right: 10%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(45, 212, 191, 0.08);
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

.geo-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    top: 0;
    left: 0;
    opacity: 0.5;
}

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

/* 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;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Navigation */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2dd4bf;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #2dd4bf !important;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-link {
    display: block;
    padding: 8px 0;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.02) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery */
.gallery-item {
    position: relative;
    cursor: pointer;
}

/* Testimonials */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 120px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: rgba(45, 212, 191, 0.04);
    line-height: 1;
    pointer-events: none;
}

/* Contact Cards */
.contact-card {
    cursor: pointer;
    text-decoration: none;
}

/* Back to Top */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Success Message */
.success-message {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.5);
}

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .geo-shape {
        opacity: 0.2;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
