/* ==========================================
   EUrotech San Diego - Custom Styles
   ========================================== */

/* Base Reset & Typography */
* {
    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;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Geometric Background Shapes */
.geo-shape-1 {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 116, 148, 0.08), rgba(147, 18, 55, 0.05));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    z-index: 0;
}

.geo-shape-2 {
    position: absolute;
    top: 60%;
    right: -3%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.06), rgba(255, 116, 148, 0.04));
    border-radius: 50% 50% 20% 80% / 40% 60% 40% 60%;
    animation: morph 10s ease-in-out infinite reverse;
    z-index: 0;
}

.geo-shape-3 {
    position: absolute;
    bottom: 10%;
    left: 20%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(147, 18, 55, 0.06), rgba(255, 116, 148, 0.04));
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    animation: morph 12s ease-in-out infinite;
    z-index: 0;
}

.geo-shape-4 {
    position: absolute;
    top: 40%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 116, 148, 0.03));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Navbar */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #931237, #ff7494);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #931237, #ff7494);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 16px;
}

/* Menu Animation */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #931237, #b51946);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 18, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #791231, #931237);
    box-shadow: 0 8px 25px rgba(147, 18, 55, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #931237, #ff7494);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #931237, #ff7494);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

/* Brand Badges */
.brand-badge {
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.brand-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(147, 18, 55, 0.15);
}

.brand-badge:hover span {
    color: #931237 !important;
}

/* Input Fields */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 4px rgba(147, 18, 55, 0.1);
}

/* Success Message */
.success-message {
    animation: fadeIn 0.5s ease;
}

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

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .geo-shape-1,
    .geo-shape-2,
    .geo-shape-3,
    .geo-shape-4 {
        display: none;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .brand-badge span {
        font-size: 1.25rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 3.5rem !important;
    }
}

/* Print Styles */
@media print {
    .geo-shape-1,
    .geo-shape-2,
    .geo-shape-3,
    .geo-shape-4 {
        display: none;
    }
}
