/*
  File: style.css
  Project: Finansal Uyum
  Design System: Modern, Asymmetrical Balance
  Color Scheme: Gradient
  Animation Style: Smooth Transitions
*/

/* ---------------------------------- */
/*      1. GLOBAL STYLES & VARIABLES  */
/* ---------------------------------- */

:root {
    /* Colors */
    --gradient-start: #2a2a72;
    --gradient-end: #009ffd;
    --primary-color: #3d5af1;
    --primary-color-dark: #304ffe;
    --accent-color: #ff4081;
    --background-light: #f8f9fa;
    --background-dark: #121223;
    --text-color: #333333;
    --text-color-light: #ffffff;
    --text-color-muted: #6c757d;
    --card-background: #ffffff;
    --border-color: #e0e0e0;

    /* Typography */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

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

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--text-color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings and Text */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 900;
    color: #222222;
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem;}
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

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

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.section {
    padding: 6rem 0;
}

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

.section-title {
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
    color: var(--text-color-muted);
    font-size: 1.1rem;
}

/* Columns (Bulma-like micro-framework) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: calc(-0.75 * var(--spacing-unit));
}
.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: calc(0.75 * var(--spacing-unit));
}
.is-vcentered { align-items: center; }
.is-centered { justify-content: center; }
.is-multiline { flex-wrap: wrap; }
.is-one-quarter { flex: none; width: 25%; }
.is-one-third { flex: none; width: 33.333%; }
.is-half { flex: none; width: 50%; }
.is-two-thirds { flex: none; width: 66.666%; }

/* ---------------------------------- */
/*      2. GLOBAL COMPONENTS          */
/* ---------------------------------- */

/* Buttons */
.btn, button, input[type="submit"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
    user-select: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(61, 90, 241, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(61, 90, 241, 0.6);
    color: var(--text-color-light); /* Maintain color on hover */
}

/* Cards */
.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    overflow: hidden;
    display: flex; /* for centering child */
    justify-content: center; /* for centering child */
    align-items: center; /* for centering child */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: calc(2 * var(--spacing-unit));
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Forms */
.contact-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family-body);
    background-color: var(--background-light);
    transition: border-color var(--transition-speed) ease;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color-muted);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

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

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: var(--background-light);
    padding: 0 0.25rem;
}

.btn-submit {
    width: 100%;
}


/* ---------------------------------- */
/*      3. LAYOUT & SECTIONS          */
/* ---------------------------------- */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.nav-link.contact-button {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
}

.nav-link.contact-button:hover {
    background: var(--primary-color-dark);
    color: var(--text-color-light);
}
.nav-link.contact-button:hover::after {
    width: 0; /* Remove underline effect */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all var(--transition-speed) ease-in-out;
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: var(--text-color-light);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-hero {
    transform: scale(1.1);
}

/* Instructors Section */
.instructor-card .card-image {
    padding: 1rem; /* Space around the circle */
}
.instructor-card .card-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--background-light);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.instructor-name {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.instructor-title {
    font-weight: 700;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
}
.instructor-bio {
    font-size: 0.95rem;
}

/* Innovation Section */
.innovation-title {
    font-weight: 700;
}
.innovation-text {
    font-size: 1.1rem;
    color: var(--text-color-muted);
}
.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.image-container img {
    border-radius: var(--border-radius);
}

/* Customer Stories Section */
.testimonial-card {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
    color: var(--text-color-light);
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
}
.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

/* Awards Section */
.award-logo {
    margin: 0 auto 1rem auto;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all var(--transition-speed) ease;
}
.award-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
.award-columns .column p {
    color: var(--text-color-muted);
}
.award-columns .column strong {
    color: var(--text-color);
}

/* External Resources Section */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-item {
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}
.resource-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.resource-title a {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
}
.resource-description {
    color: var(--text-color-muted);
    flex-grow: 1;
    margin-top: 1rem;
}
.resource-link {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1.5rem;
    align-self: flex-start;
}
.resource-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
}
.footer-title {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
    color: var(--text-color-light);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*      4. PAGE-SPECIFIC STYLES       */
/* ---------------------------------- */

/* For privacy.html, terms.html */
.page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
}
.page-content h1, .page-content h2 {
    text-align: left;
}

/* For success.html */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color-light);
    padding: 2rem;
}
.success-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color-light);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}
.success-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/*      5. RESPONSIVENESS             */
/* ---------------------------------- */

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .columns {
        margin: 0;
    }
    .column {
        width: 100% !important; /* Stack columns */
        padding: calc(0.75 * var(--spacing-unit)) 0;
        margin-bottom: 2rem;
    }
    .columns .column:last-child {
        margin-bottom: 0;
    }
    #innovation .columns {
        flex-direction: column;
    }
    #innovation .column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--text-color-light);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 2rem 0;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 4rem 0;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
}
html,body{
    overflow-x: hidden;
}