/*
 * Career Upgrade Landing Page
 * Theme: Career Growth Blog
 * Color Scheme: Deep Forest & Neon Lime
 * Font: Manrope
 */

:root {
    /* Color Palette */
    --primary: #1A3C34;
    /* Deep Forest Green */
    --primary-light: #2A5C50;
    --secondary: #CCFF00;
    /* Neon Lime */
    --secondary-dark: #AADD00;
    --bg: #F4F4F0;
    /* Off-White Paper */
    --text: #111111;
    /* Charcoal */
    --text-muted: #666666;
    --white: #FFFFFF;
    --error: #E63946;
    --success: #2A9D8F;

    /* Spacing & Radius */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --radius-2xl: 24px;
    --radius-xl: 16px;
    --radius-md: 8px;
    --shadow-soft: 0 10px 30px rgba(26, 60, 52, 0.08);
    --shadow-hover: 0 20px 40px rgba(26, 60, 52, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn--primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 60, 52, 0.2);
}

.btn--secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn--secondary:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn--outline {
    border: 1px solid var(--text-muted);
    background: transparent;
}

.btn--full {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(244, 244, 240, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo__icon {
    transform: rotate(5deg) scale(1.1);
    transition: var(--transition);
}

.logo__dot {
    color: var(--secondary);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    color: var(--primary);
    position: relative;
    padding-bottom: 4px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-light);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 8px 16px;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-md);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger__line {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Mobile Nav State */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav.is-open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav__link {
        color: var(--white);
        font-size: 1.5rem;
    }

    /* Burger Animation */
    .burger[aria-expanded="true"] .burger__line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background-color: var(--secondary);
    }

    .burger[aria-expanded="true"] .burger__line:nth-child(2) {
        opacity: 0;
    }

    .burger[aria-expanded="true"] .burger__line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background-color: var(--secondary);
    }
}

/* Hero Section */
.hero {
    padding-top: 140px;
    /* Header Offset */
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #E0E7FF;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: visible;
    /* For wrapper floating elements */
}

.hero__img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    background: #fff;
    padding: 20px;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-2xl);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(204, 255, 0, 0.15);
    border-color: var(--secondary);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Services Masonry */
.services__masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 30px;
}

.service-card {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 60, 52, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.service-card--large {
    grid-row: span 2;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.service-card--wide {
    grid-column: span 2;
    background: var(--secondary);
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.text-link {
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    .services__masonry {
        grid-template-columns: 1fr;
    }

    .service-card--wide {
        grid-column: span 1;
    }
}

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--secondary);
    background-color: var(--bg);
}

.review-text {
    font-style: italic;
    margin: 20px 0;
    font-size: 1.1rem;
}

.review-stars {
    color: #FFB703;
}

.review-id {
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Contact CTA Section */
.contact-cta {
    background-color: var(--primary);
    padding: 100px 0;
}

.cta-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 40px;
    border-radius: var(--radius-2xl);
    text-align: center;
    color: var(--white);
}

.cta-card__title {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--secondary);
}

.cta-card__text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* Contact Section (Used in separate page) */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
}

.contact__info {
    padding-right: 40px;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact__list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.1rem;
}

.contact__list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact__list a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #E5E5E5;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 5px;
    height: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.logo--footer {
    color: var(--white);
}

.footer__col h4 {
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    width: 300px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: var(--radius-2xl);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.is-visible .modal {
    transform: translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        margin: 0 auto 30px;
    }

    .hero__actions {
        justify-content: center;
    }

    .contact__container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact__info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .floating-card {
        display: none;
    }

    /* Simplify on very small screens */
}

/* Loader Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.loader {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}