/* ================================================
   CSS Variables - Design Tokens
   ================================================ */
:root {
    /* Color Palette */
    --color-primary: #67FCF1;
    --color-secondary: #FFFFFF;
    --color-text: #FFFFFF;
    --color-accent: #67FCF1;
    --color-dark-blue: #0A2342;
    --color-black: #000000;
    --color-border-accent: #2E8B57;
    --color-gradient-start: #67FCF1;
    --color-gradient-end: #96E5AC;

    /* Typography */
    --font-family-primary: 'Hanken Grotesk', sans-serif;

    /* Font Sizes - Desktop */
    --font-size-h1: 106px;
    --font-size-h2: 31px;
    --font-size-body: 22px;
    --font-size-button: 19px;

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-heading: 1;
    --line-height-subheading: 1.1875;
    --line-height-body: 1.3333;
    --line-height-button: 1.33;

    /* Spacing */
    --spacing-section: 65px;
    --spacing-element: 30px;
    --spacing-button: 12px 15px;

    /* Breakpoints */
    --breakpoint-laptop: 1025px;
    --breakpoint-tablet: 768px;
    --breakpoint-mobile: 480px;

    /* Border Radius */
    --border-radius-button: 5px;

    /* Transitions */
    --transition-default: 0.5s ease;
}

/* ================================================
   Reset & Base Styles
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100vw;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 100vw;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
   Hero Section
   ================================================ */
.hero-section {
    min-height: 100vh;
    background-image: url('../images/hero-background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

.container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 25px 65px 35px;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

/* ================================================
   Left Column: Main Content
   ================================================ */
.content-column {
    flex: 0 0 64%;
    width: 64%;
    max-width: 64%;
    padding: 0;
    z-index: 2;
    box-sizing: border-box;
}

.logo {
    margin-bottom: 45px;
}

.logo a {
    display: inline-block;
    line-height: 0;
}

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

.main-heading {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-element);
}

.bio-text {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    max-width: 1175px;
    margin-bottom: 75px;
}

.bio-text p {
    margin-bottom: 30px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.bio-text strong {
    font-weight: var(--font-weight-bold);
}

/* ================================================
   Right Column: Links & Social
   ================================================ */
.links-column {
    flex: 0 0 36%;
    width: 36%;
    max-width: 36%;
    padding: 50px 0 0 50px;
    border-left: 1px solid var(--color-secondary);
    box-sizing: border-box;
}

/* Social Icons */
.social-icons {
    position: absolute;
    top: 30px;
    right: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    z-index: 2;
}

/* Social Icons in Links Column (About Page) */
.links-column .social-icons {
    position: static;
    width: 100%;
    max-width: 412px;
    justify-content: flex-end;
    margin-bottom: 50px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: -8px;
    min-width: 44px;
    min-height: 44px;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: var(--transition-default);
}

.social-icons a:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(84%) sepia(46%) saturate(2043%) hue-rotate(115deg) brightness(101%) contrast(98%);
    transform: scale(1.1);
}

/* Section Headings */
.section-heading {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-subheading);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-element);
}

/* Links Section */
.links-section {
    margin-bottom: 50px;
}

.links-section:first-of-type {
    margin-top: 0;
}

/* Link Buttons */
.link-button {
    display: inline-block;
    width: 100%;
    max-width: 412px;
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-button);
    color: var(--color-secondary);
    text-align: left;
    padding: 12px 10px 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border-accent);
    border-radius: var(--border-radius-button);
    background: transparent;
    transition: var(--transition-default);
    cursor: pointer;
}

.link-button:hover {
    color: var(--color-dark-blue);
    background: linear-gradient(91deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    border-color: var(--color-gradient-start);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 252, 241, 0.3);
}

.link-button:last-child {
    margin-bottom: 0;
}

/* ================================================
   Home Page Specific Styles
   ================================================ */

/* Home page background */
.hero-home {
    background-image: url('../images/home-background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
}

.home-content {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

/* Positioned background image */
.positioned-image {
    position: absolute;
    right: 0;
    top: 50px;
    z-index: 1;
    width: auto;
    max-width: 50%;
    height: auto;
    max-height: none;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
}

.positioned-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
    object-fit: contain;
}

/* Home main column */
.home-main-column {
    position: relative;
    z-index: 2;
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
}

/* Home page heading - Teal color */
.home-heading {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* Subtitle */
.subtitle {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

/* Tagline */
.tagline {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    margin-bottom: 30px;
}

/* Services Section - CSS Grid */
.services-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* Service Column */
.service-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Button alignment - push to bottom */
.service-column .cta-button {
    margin-top: auto;
}

.service-title {
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    line-height: 0.95;
    color: var(--color-primary);
    margin: 0;
}

.service-description {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    margin: 0 0 25px 0;
    max-width: 407px;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 59px;
    max-width: 242px;
    width: 100%;
    padding: 12px 24px;
    font-family: var(--font-family-primary);
    font-size: 19px;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark-blue);
    background: linear-gradient(91deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    border: none;
    border-radius: var(--border-radius-button);
    text-align: center;
    text-transform: uppercase;
    transition: all 0.9s ease;
    cursor: pointer;
}

.cta-button:hover {
    color: var(--color-primary);
    background: linear-gradient(91deg, var(--color-dark-blue) 0%, var(--color-dark-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 252, 241, 0.3);
}

/* Divider */
.divider {
    width: 100%;
    max-width: 767px;
    height: 1px;
    background-color: var(--color-secondary);
    margin: 35px 0 30px 0;
}

/* Home Social Icons */
.home-social {
    position: static;
    justify-content: flex-start;
    margin-bottom: 0;
    margin-top: 15px;
}

/* Learn More Container */
.learn-more-container {
    position: absolute;
    top: 30px;
    right: 25px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 2;
}

.learn-more-btn {
    width: 242px;
    text-transform: uppercase;
}

/* ================================================
   Responsive Design - Laptop (< 1025px)
   ================================================ */
@media screen and (max-width: 1024px) {
    :root {
        --font-size-h1: 80px;
        --font-size-h2: 28px;
    }

    .container {
        padding: 45px 30px 55px 35px;
    }

    /* Home page laptop styles */
    .home-content {
        padding: 0;
    }

    .positioned-image {
        right: 0;
        max-width: 55%;
        top: 45px;
    }

    .home-main-column {
        width: 55%;
        max-width: 55%;
        flex: 0 0 55%;
    }

    .service-title {
        font-size: 35px;
    }

    .learn-more-container {
        top: 30px;
        right: 30px;
    }

    .social-icons {
        top: 30px;
        right: 30px;
    }
}

/* ================================================
   Responsive Design - Small Laptop/Large Tablet (< 900px)
   ================================================ */
@media screen and (max-width: 900px) {
    :root {
        --font-size-h1: 70px;
        --font-size-h2: 26px;
    }

    .container {
        padding: 40px 25px 50px 30px;
    }

    /* About page - switch to single column */
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .content-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .links-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 30px 0 0 0;
        border-left: none;
    }

    .links-column .social-icons {
        max-width: 100%;
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .link-button {
        max-width: 500px;
    }

    /* Home page adjustments */
    .positioned-image {
        right: 0;
        max-width: 45%;
        top: 40px;
    }

    .home-main-column {
        width: 65%;
        max-width: 65%;
        flex: 0 0 65%;
    }

    .service-title {
        font-size: 32px;
    }

    .cta-button {
        max-width: 220px;
        font-size: 18px;
    }

    .learn-more-container {
        position: static;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 25px;
    }

    .learn-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ================================================
   Responsive Design - Tablet (< 768px)
   ================================================ */
@media screen and (max-width: 767px) {
    :root {
        --font-size-h1: 55px;
        --font-size-h2: 24px;
        --font-size-button: 17px;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        padding: 35px 20px 40px 25px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .content-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .links-column {
        position: static;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 25px 0 0 0;
        border-left: none;
    }

    .links-column .social-icons {
        max-width: 100%;
        justify-content: flex-start;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .main-heading {
        text-align: left;
    }

    .bio-text {
        text-align: left;
    }

    .section-heading {
        text-align: left;
    }

    .link-button {
        text-align: left;
        max-width: 100%;
    }

    /* Home page tablet styles */
    .home-content {
        padding: 0;
    }

    .positioned-image {
        max-width: 38%;
        top: 35px;
        right: 0;
        opacity: 0.9;
    }

    .home-main-column {
        width: 75%;
        max-width: 75%;
        flex: 0 0 75%;
    }

    .home-social {
        justify-content: flex-start;
    }

    .service-title {
        font-size: 28px;
    }

    .services-section {
        gap: 15px;
    }

    .service-column {
        gap: 12px;
    }

    .service-column .cta-button {
        min-height: 50px;
        font-size: 17px;
    }

    .divider {
        max-width: 100%;
    }
}

/* ================================================
   Responsive Design - Large Phones (< 600px)
   ================================================ */
@media screen and (max-width: 599px) {
    :root {
        --font-size-h1: 45px;
        --font-size-h2: 22px;
        --font-size-body: 20px;
        --font-size-button: 16px;
    }

    .container {
        padding: 30px 20px 35px 20px;
    }

    .logo {
        margin-bottom: 35px;
    }

    .main-heading {
        margin-bottom: 20px;
    }

    .bio-text {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .links-column {
        padding: 20px 0 0 0;
    }

    .links-column .social-icons {
        gap: 20px;
        margin-bottom: 30px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .link-button {
        font-size: 16px;
        padding: 14px 12px;
        min-height: 48px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    /* Home page large phone styles */
    .positioned-image {
        max-width: 28%;
        top: 30px;
        right: 0;
        opacity: 0.7;
    }

    .home-main-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .service-title {
        font-size: 24px;
    }

    .service-description {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .services-section {
        gap: 12px;
    }

    .service-column {
        gap: 12px;
    }

    .service-column .cta-button {
        min-height: 48px;
        font-size: 15px;
        padding: 14px 16px;
    }

    .learn-more-btn {
        max-width: 100%;
    }

    .divider {
        margin: 25px 0 20px 0;
    }

    .home-social {
        gap: 25px;
    }
}

/* ================================================
   Responsive Design - Mobile (< 480px)
   ================================================ */
@media screen and (max-width: 479px) {
    :root {
        --font-size-h1: 38px;
        --font-size-h2: 20px;
        --font-size-body: 18px;
        --font-size-button: 16px;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        padding: 25px 18px 30px 18px;
    }

    .logo {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo img {
        max-width: 200px;
        margin: 0 auto;
    }

    .main-heading {
        text-align: center;
        margin-bottom: 18px;
        line-height: 1.1;
    }

    .bio-text {
        text-align: center;
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 40px;
    }

    .bio-text p {
        margin-bottom: 18px;
    }

    .links-column {
        position: static;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 20px 0 0 0;
        border-left: none;
    }

    .links-column .social-icons {
        justify-content: center;
        gap: 18px;
        margin-bottom: 25px;
    }

    .social-icons {
        justify-content: center;
        gap: 20px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .section-heading {
        text-align: center;
        margin-bottom: 18px;
    }

    .link-button {
        text-align: center;
        max-width: 100%;
        width: 100%;
        min-height: 50px;
        padding: 15px 12px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .links-section {
        margin-bottom: 35px;
    }

    /* Home page mobile styles */
    .home-content {
        padding: 0;
    }

    .positioned-image {
        max-width: 22%;
        top: 25px;
        right: 0;
        opacity: 0.5;
    }

    .home-main-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .subtitle {
        text-align: center;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .tagline {
        text-align: center;
        font-size: 16px;
        margin-bottom: 25px;
    }

    .services-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-column {
        gap: 15px;
    }

    .service-title {
        font-size: 24px;
        text-align: center;
    }

    .service-description {
        font-size: 15px;
        text-align: center;
        margin-bottom: 12px;
    }

    .service-column .cta-button {
        min-height: 50px;
        font-size: 15px;
        padding: 15px 16px;
    }

    .divider {
        margin: 30px auto 25px;
        max-width: 100%;
    }

    .home-social {
        justify-content: center;
        gap: 20px;
        margin-top: 18px;
    }

    .learn-more-container {
        position: static;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding-top: 25px;
    }

    .learn-more-btn {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
    }
}

/* ================================================
   Responsive Design - Small Mobile (< 380px)
   ================================================ */
@media screen and (max-width: 379px) {
    :root {
        --font-size-h1: 32px;
        --font-size-h2: 18px;
        --font-size-body: 16px;
    }

    .container {
        padding: 20px 15px 25px 15px;
    }

    .logo img {
        max-width: 180px;
    }

    .main-heading {
        line-height: 1.2;
    }

    .bio-text {
        font-size: 15px;
    }

    .services-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-column {
        gap: 12px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-description {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .service-column .cta-button {
        font-size: 14px;
        padding: 14px 12px;
        min-height: 48px;
    }

    .subtitle {
        font-size: 18px;
    }

    .tagline {
        font-size: 15px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .link-button {
        font-size: 15px;
        padding: 14px 10px;
    }

    /* Home page small mobile styles */
    .positioned-image {
        display: none;
    }
}

/* ================================================
   Accessibility
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .link-button {
        border-width: 2px;
    }
}
