/* ===========================
   PROFESYONEL TESİSATÇI WEB SİTESİ
   Modern Minimalizm Tasarım Felsefesi
   =========================== */

/* Root Variables - Renk Paleti */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent: #ea580c;
    --accent-hover: #dc4c0f;
    --background: #ffffff;
    --foreground: #1f2937;
    --secondary: #f3f4f6;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    
    /* Tipografi */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(30, 64, 175, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(30, 64, 175, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(30, 64, 175, 0.1);
    
    /* Border Radius */
    --radius: 0.65rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    font-size: 16px;
}

/* Tipografi */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
}

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

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

/* ===========================
   CONTAINER & LAYOUT
   =========================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

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

.header {
    background-color: var(--background);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-cta-header {
    display: none;
    background-color: var(--accent);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-header:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 1.5rem;
    height: 0.2rem;
    background-color: var(--foreground);
    border-radius: 0.1rem;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .btn-cta-header {
        display: inline-block;
    }
}

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

.hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-text h1 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    max-width: fit-content;
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    max-width: fit-content;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    display: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background);
}

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

.section-header h2 {
    color: var(--primary);
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.service-card h3 {
    color: var(--foreground);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   WHY US SECTION
   =========================== */

.why-us {
    padding: var(--spacing-2xl) 0;
    background-color: var(--secondary);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.why-us-image {
    display: none;
}

.why-us-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.why-us-text h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

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

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature h4 {
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.feature p {
    font-size: 0.95rem;
    margin: 0;
}

@media (min-width: 768px) {
    .why-us-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-us-image {
        display: block;
    }
}

/* ===========================
   STATISTICS SECTION
   =========================== */

.statistics {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

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

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

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background-color: var(--background);
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-info {
    padding: var(--spacing-lg);
}

.project-info h3 {
    color: var(--foreground);
    margin-bottom: var(--spacing-sm);
}

.project-info p {
    font-size: 0.95rem;
    margin: 0;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.contact {
    padding: var(--spacing-2xl) 0;
    background-color: var(--secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.75rem;
    min-width: 2.5rem;
    text-align: center;
}

.contact-item h4 {
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--primary);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer {
    background-color: var(--foreground);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

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

.social-link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-cta,
    .btn-secondary {
        width: 100%;
    }
}

/* Smooth scrolling for internal links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-form {
        display: none;
    }
}
