/* Pal Teknoloji - Corporate Light Styling */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Corporate Brand Color Palette (Extracted from Logo) */
    --color-bg-base: #ffffff;
    --color-bg-surface: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    --color-border-hover: #1d5ea8;
    
    --color-primary: #0a1c3a; /* Dark Navy Blue from Left Logo symbol */
    --color-primary-hover: #050d1b;
    --color-primary-rgb: 10, 28, 58;
    
    --color-accent: #1d5ea8; /* Royal Blue from Right Logo symbol */
    --color-accent-rgb: 29, 94, 168;
    
    --color-whatsapp: #25d366;
    
    --color-text-primary: #0f172a; /* Slate 900 */
    --color-text-secondary: #334155; /* Slate 700 */
    --color-text-muted: #64748b; /* Slate 500 */
    
    --gradient-hero: linear-gradient(rgba(10, 28, 58, 0.8), rgba(10, 28, 58, 0.8));
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --gradient-text: linear-gradient(135deg, #0a1c3a 0%, #1d5ea8 100%);
    --gradient-accent: linear-gradient(135deg, #0a1c3a 0%, #1d5ea8 100%);

    --shadow-premium: 0 20px 40px -15px rgba(10, 28, 58, 0.1);
    --shadow-glow: 0 0 25px rgba(29, 94, 168, 0.15);
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

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

/* Typography Helpers */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-surface);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid var(--color-bg-surface);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Grid & Layout System */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 { grid-template-columns: 1fr; }
.grid-cols-3 { grid-template-columns: 1fr; }
.grid-cols-4 { grid-template-columns: 1fr; }

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

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

/* Header Styling */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px -10px rgba(10, 28, 58, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    transition: var(--transition-base);
}

.site-header.scrolled .header-container {
    height: 4.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 2.75rem;
    width: auto;
    display: block;
    transition: var(--transition-base);
}

.site-header.scrolled .logo-img {
    height: 2.25rem;
}

.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: block;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--color-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.burger-bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: currentColor;
    transition: var(--transition-base);
}

.mobile-menu-toggle.active .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-toggle.active .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mobile-menu-overlay .nav-menu a {
    font-size: 1.5rem;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 80%;
    max-width: 300px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(29, 94, 168, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 4px 25px rgba(29, 94, 168, 0.4), var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: #fff;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    background-color: #20ba5a;
}

/* Hero Section */
.hero-section {
    padding-top: 12rem;
    padding-bottom: 10rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1.75rem;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #fff;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Service Grid Styles */
.services-section {
    background: var(--color-bg-base);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px -15px rgba(10, 28, 58, 0.04);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    transform: translateY(-5px);
}

.service-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(29, 94, 168, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    font-size: 1.5rem;
    border: 1px solid rgba(29, 94, 168, 0.15);
}

.service-card:nth-child(even) .service-icon-wrapper {
    background: rgba(10, 28, 58, 0.05);
    color: var(--color-primary);
    border-color: rgba(10, 28, 58, 0.1);
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.service-card-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
    min-height: 2.8rem;
}

.service-list {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list-item {
    display: flex;
    align-items: center;
    font-size: 0.925rem;
    color: var(--color-text-secondary);
}

.service-list-item svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.service-card:nth-child(even) .service-list-item svg {
    color: var(--color-primary);
}

/* References Section */
.references-section {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.reference-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-items: center;
}

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

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

.reference-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.25rem 0.5rem;
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-muted);
    box-shadow: 0 4px 6px -4px rgba(10, 28, 58, 0.05);
    transition: var(--transition-base);
}

.reference-card:hover {
    color: var(--color-accent);
    border-color: var(--color-border-hover);
    box-shadow: 0 10px 20px -10px rgba(29, 94, 168, 0.15);
    transform: translateY(-2px);
}

/* Neden Biz Section */
.why-us-section {
    background: var(--color-bg-base);
}

.feature-card {
    padding: 2.25rem;
    border-radius: 1.25rem;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    box-shadow: 0 4px 6px -4px rgba(10, 28, 58, 0.02);
}

.feature-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(10, 28, 58, 0.08);
}

.feature-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.feature-desc {
    font-size: 0.925rem;
    color: var(--color-text-secondary);
}

/* Hakkımızda Section */
.about-section {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    align-items: center;
    gap: 4rem;
}

.about-content {
    max-width: 550px;
}

.about-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.about-visual {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-border);
    aspect-ratio: 4/3;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* İletişim Section */
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
    z-index: -1;
}

.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -20px rgba(10, 28, 58, 0.15);
}

@media (min-width: 768px) {
    .contact-card {
        padding: 4.5rem;
    }
}

.contact-title {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem auto;
    max-width: 600px;
}

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

.contact-info-item {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-icon {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.contact-info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.contact-info-value {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
}

/* Footer Section */
.site-footer {
    background: #061124;
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col-brand {
    max-width: 350px;
}

.footer-brand-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}

.footer-brand-tagline {
    border-left: 2px solid var(--color-accent);
    padding-left: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
}

.footer-col-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact-icon {
    color: var(--color-accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
    .footer-bottom {
        flex-direction: row;
    }
}

/* Modal Popup Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 28, 58, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(10, 28, 58, 0.25);
    transform: scale(0.9);
    transition: var(--transition-base);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-base);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
    background: #e2e8f0;
}

.modal-title {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-control {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-base);
    width: 100%;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(29, 94, 168, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    display: none;
}

.form-alert-success {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #15803d;
}

.form-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

/* Animations on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Float CTA WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 98;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
