/* ========================================
   Vanguard Search Partners - Custom Styles
   ======================================== */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d9488;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d9488, #10b981);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.3);
}

/* Mobile Menu */
.mobile-nav-link {
    color: rgba(226, 232, 240, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    color: #0d9488;
    transform: translateX(10px);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Menu Toggle Animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #0d9488, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0d9488, #10b981);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10b981, #0d9488);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary svg,
.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(30, 58, 95, 0.5);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.1);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

.animate-slide-up {
    animation: slide-up 0.8s ease forwards;
}

.animate-fade-in {
    animation: fade-in 1s ease forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

/* Hero Visual */
.hero-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-stat {
    animation: float 6s ease-in-out infinite;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(18, 31, 54, 0.8), rgba(10, 22, 40, 0.8));
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.5);
}

.expertise-card .card-inner {
    position: relative;
    z-index: 1;
}

.expertise-card .card-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(13, 148, 136, 0.2);
    color: #0d9488;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.expertise-card:hover .card-icon {
    transform: scale(1.1);
}

.expertise-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(13, 148, 136, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expertise-card:hover .card-glow {
    opacity: 1;
}

/* Partner Tags */
.partner-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.partner-tag:hover {
    background: rgba(13, 148, 136, 0.2);
    transform: translateY(-2px);
}

.partner-tag.emerald {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.partner-tag.emerald:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Stats Section */
.stat-card {
    position: relative;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(18, 31, 54, 0.6), rgba(10, 22, 40, 0.6));
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.5);
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #0d9488;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0d9488;
    display: inline;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.6);
    margin-bottom: 1rem;
}

.stat-bar {
    height: 4px;
    background: rgba(30, 58, 95, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0d9488, #10b981);
    border-radius: 2px;
    transition: width 1.5s ease;
}

.stat-bar-fill.emerald {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.stat-bar-fill.cyan {
    background: linear-gradient(90deg, #06b6d4, #0d9488);
}

.stat-card.animated .stat-bar-fill {
    width: var(--fill-width);
}

/* Solutions Cards */
.solution-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(18, 31, 54, 0.6), rgba(10, 22, 40, 0.6));
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateX(10px);
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(18, 31, 54, 0.8), rgba(10, 22, 40, 0.8));
}

.solution-number {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.3);
    transition: color 0.3s ease;
}

.solution-card:hover .solution-number {
    color: #f59e0b;
}

.solution-content {
    flex: 1;
}

.solution-arrow {
    color: rgba(226, 232, 240, 0.3);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-arrow {
    color: #f59e0b;
    transform: translateX(5px);
}

/* Contact Section */
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(18, 31, 54, 0.5);
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: rgba(13, 148, 136, 0.5);
    transform: translateX(5px);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form */
.contact-form-container {
    background: linear-gradient(135deg, rgba(18, 31, 54, 0.8), rgba(10, 22, 40, 0.8));
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid rgba(30, 58, 95, 0.5);
    border-radius: 0.75rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(226, 232, 240, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Asymmetric Card */
.asymmetric-card {
    position: relative;
}

.asymmetric-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.3), transparent, rgba(16, 185, 129, 0.3));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asymmetric-card:hover::before {
    opacity: 1;
}

/* Value Items */
.value-item {
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(5px);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Particles Canvas */
#particles-canvas {
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-visual {
        height: 350px;
    }
    
    .sticky-text {
        font-size: 8rem !important;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-stat {
        padding: 0.75rem;
    }
    
    .floating-stat span {
        font-size: 1.5rem;
    }
    
    .floating-stat p {
        font-size: 0.625rem;
    }
    
    .sticky-text {
        display: none;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        flex-wrap: wrap;
    }
    
    .solution-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    #particles-canvas,
    #nav,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

