/* CSS Variables & Reset */
:root {
    /* Brand Colors */
    --color-primary: #59d600;
    --color-primary-dark: #4ab300;
    --color-secondary: #b73d3d;
    --color-accent: #233452;

    /* Neutral Colors */
    --color-bg-dark: #0f172a;
    /* Slate 900 */
    --color-bg-darker: #020617;
    /* Slate 950 */
    --color-surface: #1e293b;
    /* Slate 800 */
    --color-text-main: #f8fafc;
    /* Slate 50 */
    --color-text-muted: #94a3b8;
    /* Slate 400 */
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), #3da800);
    --gradient-hero: linear-gradient(to bottom, rgba(2, 6, 23, 0.3), var(--color-bg-darker));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-section: 4rem;

    /* Effects */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(89, 214, 0, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Base Components */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(89, 214, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 214, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Ensures vertical alignment of all items including the button */
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--color-bg-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav .btn {
    padding: 8px 25px;
    /* Reduced and balanced padding */
    margin-top: 0;
    /* Ensures no extra margin affects alignment */
    font-size: 0.9rem;
    /* Slightly smaller text for better fit */
}

.main-nav ul li a:hover {
    color: var(--color-primary);
}

/* Sections */
section {
    padding: var(--spacing-section) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--color-text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Intro Grid System */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid .intro-image {
        order: -1;
        /* Image appears above text on mobile */
        margin-bottom: 20px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 91px;
        /* Height of header roughly */
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        padding: 20px;
        transform: translateY(-100%);
        /* Hidden by default */
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Animations & Visuals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

img {
    border-radius: 12px;
}

.hero-small {
    position: relative;
    overflow: hidden;
}

.hero-small::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Better text readability */
    z-index: 1;
}

.hero-small .container {
    position: relative;
    z-index: 2;
}

/* Hover Animations */
.hover-zoom {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.hover-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(89, 214, 0, 0.2);
}

.service-card,
.pension-card,
.price-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.pension-card:hover,
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(89, 214, 0, 0.15);
    border-color: var(--color-primary);

}

/* Info Card Hover Scale */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(89, 214, 0, 0.15);
}

/* Animated Title - Fade In Slide Animation */
.animated-title {
    display: inline-block;
    animation: titleFadeIn 1s ease-out forwards;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 8px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

/* Hover Scale Animation */
.hover-scale {
    transition: transform 0.3s ease;
    display: inline-block;
}

.hover-scale:hover {
    transform: scale(1.05);
    /* Zoom effect */
}