/* Neo-Sorb Website - Main Styles */
/* Inspired by carbonclean.com design patterns */

@import url('variables.css');

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

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

body {
    font-family: var(--body-font);
    font-size: var(--font-size-body);
    line-height: var(--line-height-normal);
    color: var(--color-dark-grey);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
    color: var(--color-dark-grey);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

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

.text-white {
    color: var(--color-white);
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-lg {
    padding: var(--spacing-2xl) 0;
}

.section-grey {
    background-color: var(--color-light-grey);
}

.section-blue {
    background-color: rgba(25, 130, 110, 0.2);
}

.section-gradient {
    background: var(--gradient-hero);
    color: var(--color-white);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    transition: box-shadow var(--transition-normal);
    z-index: var(--z-header);
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 45px;
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--color-dark-grey);
    padding: var(--spacing-sm) 0;
    transition: color var(--transition-fast);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-grey);
    transition: var(--transition-fast);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: rgb(25, 130, 110);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: rgb(19, 104, 88);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-teal);
    color: var(--color-dark-grey);
}

.btn-secondary:hover {
    background-color: #9ee4d4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: rgb(25, 130, 110);
}

.btn-large {
    padding: 20px 40px;
    font-size: var(--font-size-h5);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: var(--font-size-h4);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: var(--line-height-relaxed);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-h5);
    color: var(--color-grey);
    max-width: var(--max-width-text);
    margin: 0 auto;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.two-column-reverse {
    direction: rtl;
}

.two-column-reverse > * {
    direction: ltr;
}

/* ========================================
   CARDS & GRID LAYOUTS
   ======================================== */

.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: rgba(25, 130, 110, 0.15);  /* pick any color */
    color: rgb(25, 130, 110);
}

#industries .card:hover .card-title,
#industries .card:hover .card-text {
    color: inherit;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    font-size: var(--font-size-body);
    color: var(--color-grey);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   FEATURE SECTIONS
   ======================================== */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--color-teal-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: rgb(25, 130, 110);
}

.feature-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    font-size: var(--font-size-body);
    color: var(--color-grey);
}

/* ========================================
   STATS / METRICS SECTION
   ======================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: rgb(25, 130, 110);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--font-size-body);
    color: var(--color-grey);
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.team-member {
    text-align: center;
    padding: var(--spacing-md);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    overflow: hidden;
    background-color: var(--color-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: 700;
    color: rgb(25, 130, 110);
    box-shadow: 0 18px 40px rgba(41, 51, 61, 0.25), 0 8px 18px rgba(41, 51, 61, 0.25);
}

.team-name {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-xs);
}

.team-role {
    font-size: var(--font-size-small);
    color: rgb(25, 130, 110);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.team-bio {
    font-size: var(--font-size-small);
    color: var(--color-grey);
    line-height: var(--line-height-normal);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: var(--gradient-cta);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.cta-title {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.cta-text {
    font-size: var(--font-size-h5);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    font-size: var(--font-size-h5);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-small);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 35px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-teal);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.copyright {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--font-size-small);
    border: 2px solid var(--color-light-grey);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

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

.form-inline {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.contact-wrapper {
    max-width: 950px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    font-size: var(--font-size-small);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-dark-grey);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-grey);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background-color: var(--color-white);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.contact-info p {
    font-size: var(--font-size-body);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.contact-info .email-link {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    background-color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-md);
    color: rgb(25, 130, 110);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-body);
    transition: all var(--transition-normal);
    align-self: center;
}

.contact-info .email-link:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateX(5px);
}

.contact-info .email-link::before {
    content: "✉";
    margin-right: 12px;
    font-size: 1.3rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.pt-lg { padding-top: var(--spacing-lg); }
.pb-lg { padding-bottom: var(--spacing-lg); }

.hidden {
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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