/* ÖZ-GE Mühendislik Web Sitesi - Custom CSS */

/* CSS Variables */
:root {
    --primary-color: #495057;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --blue-color: #007bff;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-corporate: linear-gradient(135deg, #495057 0%, #6c757d 100%);
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out;
}

.animate-slide-in-down {
    animation: slideInDown 1s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}



/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.text-primary {
    color: #2f2483 !important;
}

/* Navigation */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #2f2483 !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #abdcf7;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #abdcf7 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: #abdcf7 !important;
}

/* Hero Section */
.hero-section {
    background: #f8f9fa url('../images/hero-image.jpg') center center / cover no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    animation: fadeIn 1.5s ease-out;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52,58,64,0.55);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/logo.png') center center / 320px no-repeat;
    opacity: 0.07;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@keyframes blink {
    0%, 50% { border-color: #1e3a8a; }
    51%, 100% { border-color: transparent; }
}

.hero-section p {
    font-size: 1.3rem;
    color: #f8f9fa;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 1.2s ease-out 0.9s both;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #f0f0f0;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-corporate);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bounceIn 1s ease-out 0.5s both;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 30px rgba(73,80,87,0.4);
    animation: pulse 1s ease-in-out;
}

.service-card h4 {
    color: #2f2483;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-card .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Reference Cards */
.reference-card {
    background: #fff;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    height: 100%;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.reference-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-corporate);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-icon i {
    font-size: 1.5rem;
    color: white;
}

.reference-card:hover .reference-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(73,80,87,0.3);
}

.reference-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.reference-card h5 {
    color: #2f2483;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.reference-card h6 {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.reference-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--blue-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(73,80,87,0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,193,7,0.5);
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(73,80,87,0.25);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 700;
    color: #2f2483;
}

h1, h2, h3, h4, h5, h6 {
    color: #2f2483;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%) !important;
}

footer h5, footer h6 {
    color: #fff;
    font-weight: 600;
}

footer .text-white-50 {
    transition: color 0.3s ease;
}

footer .text-white-50:hover {
    color: #fff !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 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: var(--blue-color);
}

/* Page Header Styles */
.page-header {
    padding-top: 100px;
    background: var(--gradient-corporate);
}

/* Service Detail Cards */
.service-detail-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-5px);
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(73,80,87,0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    border-radius: Sik;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
}

.testimonial-author h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item {
    padding: 1rem;
}

/* Team Cards */
.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

/* Mission, Vision, Values Icons */
.mission-icon,
.vision-icon,
.values-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(73,80,87,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Filter Buttons */
.btn-group .btn {
    border-radius: 25px;
    margin: 0 0.25rem;
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Additional Animation Effects */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced button animations */
.btn:active {
    transform: scale(0.95);
}

/* Enhanced card animations */
.service-card:active,
.reference-card:active {
    transform: scale(0.98);
}

/* Text selection animation */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .page-header {
        padding-top: 80px;
    }
    
    .service-detail-card,
    .reference-card,
    .testimonial-card,
    .team-card {
        margin-bottom: 2rem;
    }
    
    .project-overlay {
        padding: 1rem;
    }
    
    .project-overlay h4 {
        font-size: 1.2rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    /* Disable some animations on mobile for performance */
    .hero-section {
        background-attachment: scroll;
    }
    
    .animate-float {
        animation: none;
    }
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Icons Fix */
.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(73,80,87,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Navbar Fix */
.navbar {
    z-index: 1050 !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Page Content Spacing */
body {
    padding-top: 80px !important;
}

/* Page Header Fix */
.page-header {
    margin-top: 0 !important;
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Hero Section Fix */
.hero-section {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Reference Page Specific */
.reference-section {
    max-width: 1200px;
    margin: 0 auto;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
