/*
================================================
|                                              |
|   style.css for Türkiye Araç Kiralama        |
|   Design: Neumorphism & Hyperrealistic       |
|   Color Scheme: Monochrome                   |
|                                              |
================================================
*/

/* ------------------------------------------------
   1. CSS Variables & Root Styles
   ------------------------------------------------ */
:root {
    /* Color Palette (Monochrome) */
    --primary-bg: #E0E5EC;
    --text-color: #333745;
    --text-color-light: #FFFFFF;
    --accent-color: #0062E6; 
    --success-color: #28a745;
    --shadow-color-dark: #a3b1c6;
    --shadow-color-light: #ffffff;
    --header-bg: rgba(224, 229, 236, 0.9);

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

    /* Neumorphism Shadows */
    --neumorphic-shadow-outset: 10px 10px 20px var(--shadow-color-dark), -10px -10px 20px var(--shadow-color-light);
    --neumorphic-shadow-inset: inset 7px 7px 15px var(--shadow-color-dark), inset -7px -7px 15px var(--shadow-color-light);
    --neumorphic-shadow-hover: 12px 12px 24px var(--shadow-color-dark), -12px -12px 24px var(--shadow-color-light);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ------------------------------------------------
   2. Base & Global Styles
   ------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 50px auto;
    font-size: 1.1rem;
    color: #555;
}

/* ------------------------------------------------
   3. Generic Components (Buttons, Inputs, Cards)
   ------------------------------------------------ */

/* --- Global Button Style --- */
.neumorphic-button, button[type="submit"] {
    display: inline-block;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    background: var(--primary-bg);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--neumorphic-shadow-outset);
    transition: var(--transition-smooth);
}

.neumorphic-button:hover, button[type="submit"]:hover {
    box-shadow: var(--neumorphic-shadow-hover);
    transform: translateY(-2px);
    color: #0056b3;
}

.neumorphic-button:active, button[type="submit"]:active {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: translateY(2px);
    color: var(--accent-color);
}


/* --- Input Field Style --- */
.neumorphic-input {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 15px;
    background: var(--primary-bg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: var(--neumorphic-shadow-inset);
    transition: var(--transition-smooth);
}

.neumorphic-input::placeholder {
    color: #888;
}

.neumorphic-input:focus {
    outline: none;
    box-shadow: inset 9px 9px 18px var(--shadow-color-dark), 
                inset -9px -9px 18px var(--shadow-color-light);
}

/* --- Card Style --- */
.card, .neumorphic-card {
    background: var(--primary-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--neumorphic-shadow-outset);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover, .neumorphic-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 15px;
}


/* ------------------------------------------------
   4. Header & Navigation
   ------------------------------------------------ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

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

.navbar-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

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

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

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}


/* ------------------------------------------------
   5. Section Specific Styles
   ------------------------------------------------ */

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    color: var(--text-color-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-color-light);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .neumorphic-button {
    background: var(--accent-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0, 98, 230, 0.4);
}

/* --- Vision & Projects Section --- */
.vision-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- Methodology Section --- */
.methodology-section {
    background: linear-gradient(to bottom, #d1d9e6, #f2f5f8);
}
.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.step-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neumorphic-shadow-outset);
}

.step-icon span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
}

/* --- Workshops (Toggle/Accordion) Section --- */
.toggle-container {
    max-width: 800px;
    margin: 0 auto;
}

.toggle-item {
    margin-bottom: 15px;
    border-radius: 15px;
    background: var(--primary-bg);
    box-shadow: var(--neumorphic-shadow-outset);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
}

.toggle-header h4 {
    margin: 0;
    font-size: 1.25rem;
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.toggle-content p {
    padding: 0 25px 20px 25px;
}
.toggle-item.active .toggle-content {
    max-height: 300px; /* Adjust as needed */
}

.toggle-item.active .toggle-icon {
    transform: rotate(45deg);
}

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

.resource-card {
    display: block;
    background: var(--primary-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow-outset);
    transition: var(--transition-smooth);
}

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

.resource-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.resource-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.resource-url {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.6;
}


/* --- Contact Section --- */
.contact-section {
    background-size: cover;
    background-position: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    background: var(--primary-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow-outset);
}

.contact-info h3 {
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 30px;
}

.info-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.info-list li strong {
    margin-right: 10px;
}

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


/* ------------------------------------------------
   6. Footer
   ------------------------------------------------ */
.main-footer {
    background: #cacfd6;
    padding: 60px 0 20px;
    color: #444;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p, .footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--text-color);
    font-weight: 700;
}
.footer-col a:hover {
    color: var(--accent-color);
}

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


/* ------------------------------------------------
   7. Other Pages (Success, Privacy, Terms)
   ------------------------------------------------ */
.success-page, .privacy-page, .terms-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.success-content, .privacy-content, .terms-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-box, .static-page-box {
    text-align: center;
    max-width: 700px;
    background: var(--primary-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow-outset);
    margin: 40px 20px;
}

.success-box h1 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.static-page-box {
    text-align: left;
}
.static-page-box h1 {
    text-align: center;
    margin-bottom: 30px;
}
.static-page-box h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-content, .terms-content {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 40px;
    align-items: flex-start;
}


/* ------------------------------------------------
   8. Responsive Media Queries
   ------------------------------------------------ */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.3rem; }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        top: 70px; /* Header height */
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--header-bg);
        text-align: center;
        gap: 0;
        transition: left 0.4s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        border-bottom: 1px solid var(--shadow-color-dark);
    }

    .nav-link {
        display: block;
        padding: 20px;
    }
    
    .nav-link:hover::after, .nav-link.active::after {
        width: 0;
    }

    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }

    .step {
        flex-direction: column;
        text-align: center;
    }
}