/* Custom CSS for Dijital Yazılım Website */

:root {
    --primary-color: #2563eb;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #f59e0b;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar {
    transition: box-shadow 0.2s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.9) 0%, rgba(37, 99, 235, 0.8) 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    display: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

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

.service-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* About Section Stats */
.stat-card {
    transition: all 0.3s ease;
}

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

/* Portfolio Items */
.portfolio-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.portfolio-image {
    transition: all 0.3s ease;
}

/* Highlight Text Effect */
.highlight-animate {
    position: relative;
    display: inline-block;
    animation: glow-pulse 900ms ease-out 350ms both;
}
.highlight-animate::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.1em;
    height: 3px;
    width: 0;
    background: var(--warning-color);
    border-radius: 2px;
    animation: underline-grow 800ms ease-out 300ms forwards;
}
@keyframes underline-grow {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes glow-pulse {
    0% { text-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    60% { text-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
    100% { text-shadow: 0 0 0 rgba(245, 158, 11, 0); }
}
/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
    z-index: 999;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer social hover */
.social-links a:hover { color: #fff !important; }

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

/* Contact Form */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    min-height: 48px;
}

/* Yazı rengi sarı olsun */
.contact-form .form-control,
.contact-form textarea {
    color: var(--warning-color);
    caret-color: var(--warning-color);
}

.contact-form .form-control::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 158, 11, 0.85); /* --warning-color */
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: rgba(0,0,0,0.15);
}

.contact-form .form-select option {
    color: #333;
    background: white;
}

/* Contact section wrapper */
#iletisim {
    background: linear-gradient(135deg, rgba(37,99,235,0.95) 0%, rgba(37,99,235,0.85) 100%);
}

#iletisim .container {
    max-width: 960px;
}

.contact-form .btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #1f2937;
}

.contact-form .btn-warning:hover {
    filter: brightness(1.05);
}

/* Improve autofill contrast */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px rgba(0,0,0,0.15) inset;
    -webkit-text-fill-color: var(--warning-color);
}

/* Mobile spacing tweaks */
@media (max-width: 576px) {
    .contact-form .form-control,
    .contact-form .form-select {
        min-height: 44px;
        padding: 0.8rem 0.9rem;
    }
}

/* Button Styles */
.btn {
    border-radius: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Social Links */
.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--warning-color) !important;
    transform: translateY(-2px);
}

/* Section Logo (Services) */
.section-logo {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(13, 202, 240, 0.35));
    opacity: 0.95;
}
@media (min-width: 992px) {
    .section-logo { height: 80px; }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Cursor Glow */
.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 80ms ease, border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease, opacity 150ms ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 20px rgba(13, 202, 240, 0.35);
    opacity: 0.9;
}
.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--warning-color);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
}
.custom-cursor.active {
    transform: translate(-50%, -50%) scale(0.9);
}
@media (max-width: 768px) {
    .custom-cursor { display: none; }
}

/* Section Padding */
section {
    padding: 32px 0;
}

/* Spacing overrides to reduce overall whitespace */
.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.mb-5 { margin-bottom: 1.75rem !important; }
.g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.service-card { padding: 1rem !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 48px 0 24px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    section {
        padding: 24px 0;
    }
}

/* Inline logo next to hero text */
.inline-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(13, 202, 240, 0.35));
}
@media (min-width: 992px) {
    .inline-logo { height: 32px; }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}