/* 
====================================================================
   INSURANCE ADVISORY PREMIUM THEMING
   Theme: Midnight Slate Navy & Emerald Green with Gold Accents
   Design Pattern: Clean Glassmorphism & Trust-focused Visuals
====================================================================
*/

/* --- CSS VARIABLES & THEME TOKENS --- */
:root {
    /* Trust Palette - Deep Corporate Base */
    --bg-dark: #070b19;
    --bg-darker: #030611;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Financial & Growth Neon Accents */
    --accent-cyan: #06b6d4;     /* Security Cyan */
    --accent-blue: #3b82f6;     /* Trust Blue */
    --accent-purple: #6366f1;   /* Modern Advisory */
    --accent-pink: #f43f5e;     /* Exclusions / Pink Alert */
    --accent-orange: #f97316;   /* Performance */
    --accent-yellow: #f59e0b;   /* Gold / Wealth */
    --accent-green: #10b981;    /* Emerald Green / Growth & Health */

    /* Premium Glassmorphism Variables */
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-bg-hover: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);

    /* Gradients representing security and prosperity */
    --grad-primary: linear-gradient(135deg, #1e3a8a, #3b82f6);    /* Royal blue to sky blue */
    --grad-secondary: linear-gradient(135deg, #065f46, #10b981);  /* Dark emerald to bright emerald */
    --grad-tertiary: linear-gradient(135deg, #b45309, #f59e0b);   /* Dark gold to bright gold */
    --grad-quaternary: linear-gradient(135deg, #059669, #06b6d4); /* Mint teal to security cyan */

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;

    /* Layout & Spacing */
    --nav-height: 85px;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;

    /* Transitions */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE STYLES --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.25;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CONTAINER & SECTIONS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 7rem 0;
    position: relative;
    z-index: 5;
}

/* --- GLOBAL BACKGROUND & BLOBS --- */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-darker);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-green);
    opacity: 0.12;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: var(--accent-blue);
    opacity: 0.18;
    animation-delay: -6s;
    animation-duration: 30s;
}

.blob-3 {
    top: 35%;
    left: 50%;
    width: 450px;
    height: 450px;
    background: var(--accent-yellow);
    opacity: 0.06;
    animation-delay: -12s;
    animation-duration: 22s;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(3, 6, 17, 0.4) 100%);
    backdrop-filter: brightness(0.95);
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* --- SCROLL PROGRESS & NAVIGATION BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--grad-quaternary);
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease-out;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(7, 11, 25, 0.7);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    transition: all var(--trans-normal);
}

.navbar.scrolled {
    height: 75px;
    background: rgba(3, 6, 17, 0.85);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-quaternary);
    transition: width var(--trans-fast);
}

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

.mobile-socials {
    display: none;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    cursor: pointer;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all var(--trans-normal);
    border-radius: 2px;
}

/* --- GLASS CARD DESIGN SYSTEM --- */
.glass-panel,
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    transition: border-color var(--trans-normal), transform var(--trans-normal), box-shadow var(--trans-normal), background var(--trans-normal);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(16, 185, 129, 0.2);
}

.glass-card-inner {
    background: rgba(3, 6, 17, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    transition: all var(--trans-fast);
}

.highlight-border {
    border-left: 3px solid var(--accent-green) !important;
}

.hover-glow:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.08);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--trans-normal);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--glass-border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-whatsapp {
    background: #075e54;
    color: #fff;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128c7e;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-light);
}

.icon-only-sm {
    padding: 0;
    width: 35px;
    height: 35px;
}

/* --- TYPOGRAPHY & TEXT STYLES --- */
.gradient-text {
    background: var(--grad-quaternary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--grad-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    position: relative;
    z-index: 1;
}

.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1.15rem; }
.text-lg { font-size: 1.5rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

.badge-glowing {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    padding: 3rem;
}

.hero-title {
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.circle-decoration {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border: 1px dashed rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    animation: rotateDashed 40s linear infinite;
    z-index: 1;
}

@keyframes rotateDashed {
    100% { transform: rotate(360deg); }
}

/* --- SECTIONS --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-weight: 700;
}

/* About Section */
.about-stats {
    align-content: start;
}

.stat-card {
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-family: var(--font-secondary);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

/* Services / Projects */
.project-card {
    height: 100%;
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.project-description {
    color: var(--text-muted);
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Form Styles */
.glass-input {
    width: 100%;
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    background: rgba(3, 6, 17, 0.4);
    font-family: inherit;
    transition: all var(--trans-fast);
}

.glass-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
    background: rgba(3, 6, 17, 0.7);
}

label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--glass-border);
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 0.25rem;
}

.footer-links i {
    margin-right: 0.25rem;
    transition: transform var(--trans-fast);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.social-icons a {
    transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.social-icons a:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan) !important;
}

/* --- UTILITY & GRID SYSTEM --- */
.layout-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.layout-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.flex-col-gap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flex-col-gap-sm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flex-wrap-gap-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.gap-md {
    gap: 1.2rem;
}

.margin-top-md { margin-top: 1.5rem; }
.margin-top-lg { margin-top: 2rem; }
.margin-top-2xl { margin-top: 5rem; }
.margin-bottom-md { margin-bottom: 1.5rem; }
.margin-bottom-lg { margin-bottom: 2rem; }
.margin-top-none { margin-top: 0; }
.padding-none { padding: 0 !important; }
.padding-lg { padding: 1.5rem; }
.padding-xl { padding: 2.5rem; }
.list-none { list-style: none; }
.full-width { width: 100% !important; }

/* Responsive utility helpers */
.mt-5 { margin-top: 3rem; }
.pt-4 { padding-top: 1.5rem; }

/* Icon Gradients */
.icon-gradient-1 { background: var(--grad-primary) !important; }
.icon-gradient-2 { background: var(--grad-secondary) !important; }
.icon-gradient-4 { background: var(--grad-quaternary) !important; }

/* Hover Link */
.hover-link:hover {
    color: var(--accent-green);
}

/* Animations */
.fade-in-up {
    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);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    section {
        padding: 5rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        padding: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .layout-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .layout-3-col, 
    .layout-2-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(3, 6, 17, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: left var(--trans-normal) ease-in-out;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-socials {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 2rem;
        font-size: 1.25rem;
    }

    .mobile-socials a {
        color: var(--text-muted);
    }

    .mobile-socials a:hover {
        color: var(--accent-green);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .padding-xl {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-text {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}