/* ============================================
   Adroit Wealth Management — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    background-color: #0a0f1e;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.shape-circle-1 {
    top: 15%;
    right: -8%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 160, 0.06);
    background: radial-gradient(circle, rgba(45, 212, 160, 0.04) 0%, transparent 70%);
}

.shape-circle-2 {
    bottom: 20%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 160, 0.05);
    background: radial-gradient(circle, rgba(45, 212, 160, 0.03) 0%, transparent 70%);
}

.shape-square-1 {
    top: 40%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: rgba(45, 212, 160, 0.04);
    border: 1px solid rgba(45, 212, 160, 0.08);
    transform: rotate(45deg);
}

.shape-triangle-1 {
    top: 60%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 160, 0.03);
    filter: drop-shadow(0 0 20px rgba(45, 212, 160, 0.05));
}

.shape-ring-1 {
    top: 25%;
    left: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 160, 0.05);
    background: transparent;
}

.shape-dots {
    top: 70%;
    right: 20%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(45, 212, 160, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
}

/* --- Navbar --- */
.nav-header {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(10, 15, 30, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #2dd4a0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0fb885 0%, #2dd4a0 100%);
    color: #0a0f1e;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(15, 184, 133, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 184, 133, 0.4);
    background: linear-gradient(135deg, #0fb885 0%, #2dd4a0 100%);
    color: #0a0f1e;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: rgba(45, 212, 160, 0.5);
    color: #2dd4a0;
    background: rgba(45, 212, 160, 0.05);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

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

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(45, 212, 160, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Styles --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2dd4a0;
    margin-bottom: 16px;
}

.accent-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #2dd4a0, transparent);
    border-radius: 2px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0fb885, #2dd4a0);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(45, 212, 160, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(45, 212, 160, 0.05);
}

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

.service-card-accent {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 160, 0.06) 0%, transparent 70%);
    transition: all 0.4s ease;
    opacity: 0;
}

.service-card:hover .service-card-accent {
    opacity: 1;
    top: -30%;
    right: -30%;
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(45, 212, 160, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4a0;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(45, 212, 160, 0.15);
    border-color: rgba(45, 212, 160, 0.3);
    transform: scale(1.05);
}

.service-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2dd4a0;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 10px;
}

/* --- Stats --- */
.stats-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Approach Steps --- */
.approach-steps {
    display: grid;
    gap: 2px;
}

.approach-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.approach-step:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(45, 212, 160, 0.15);
    transform: translateX(8px);
}

.approach-step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(45, 212, 160, 0.2);
    line-height: 1;
}

.approach-step-content {
    max-width: 600px;
}

.approach-step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.approach-step-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.approach-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(45, 212, 160, 0.08);
    border: 1px solid rgba(45, 212, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4a0;
    transition: all 0.4s ease;
}

.approach-step:hover .approach-step-icon {
    background: rgba(45, 212, 160, 0.12);
    transform: rotate(5deg) scale(1.05);
}

/* --- Contact Section --- */
.contact-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 8px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(45, 212, 160, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4a0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    background: rgba(45, 212, 160, 0.15);
    border-color: rgba(45, 212, 160, 0.3);
}

.contact-item-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.contact-item-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

.contact-item:hover .contact-item-value {
    color: #2dd4a0;
}

/* --- Contact Form --- */
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-form-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: rgba(45, 212, 160, 0.5);
    background: rgba(45, 212, 160, 0.05);
    box-shadow: 0 0 0 3px rgba(45, 212, 160, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-select option {
    background: #13203d;
    color: #ffffff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-trust {
        opacity: 1;
        animation: none;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}

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

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

/* --- Responsive --- */
@media (max-width: 767px) {
    .approach-step {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px;
    }
    
    .approach-step-number {
        font-size: 1.5rem;
    }
    
    .approach-step-visual {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        gap: 24px;
    }
    
    .contact-form-card {
        padding: 28px;
    }
    
    .geo-shape {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4a0;
    outline-offset: 2px;
    border-radius: 4px;
}

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