/**
 * Developed by: Muratcan Çetinkaya
 * GitHub: github.com/muratcetinkaya
 */

/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6b35;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #2c3e50;
    color: white;
}

.lang-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Beautiful gradient background */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.8) 0%, rgba(118,75,162,0.8) 50%, rgba(240,147,251,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    height: 400px;
    width: auto;
    animation: heartbeat 2s ease-in-out infinite;
    transform-origin: center;
    transition: all 0.3s ease;
}

/* Loading state for logo - keep it simple during loading */
body:not(.loaded) .hero-logo img {
    opacity: 0.8;
}

/* Page loaded state - heartbeat animation */
body.loaded .hero-logo img {
    animation: heartbeat 2s ease-in-out infinite;
}

/* Heartbeat animation for logo */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: #555;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* Products Section */
.products {
    background: white;
    padding: 3rem 0;
}

.products .container {
    padding: 0 60px;
}

.products-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.nav-btn {
    background: #ff6b35;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-btn:hover {
    background: #e55b2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.products-grid {
    display: flex;
    margin-top: 3rem;
    position: relative;
    justify-content: center;
    align-items: stretch;
}

.product-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
}

.product-card.active {
    display: grid;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.product-card:not(.featured) {
    background: white;
    color: #333;
    border: 2px solid #f8f9fa;
}

.product-card:not(.featured) .product-icon {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.product-card:not(.featured) .product-icon i {
    color: #667eea;
}

.product-card:not(.featured) .product-content h3,
.product-card:not(.featured) .product-features h4 {
    color: #2c3e50;
}

.product-card:not(.featured) .product-subtitle {
    color: #666;
}

.product-card:not(.featured) .product-content > p {
    color: #555;
}

.product-card:not(.featured) .product-features li {
    color: #555;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.product-icon i {
    font-size: 3rem;
    color: white;
}

.product-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.product-content {
    height: auto;
}

.product-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-content > p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.product-features h4 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.product-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.product-features li i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 1rem;
}

.product-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.product-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.product-actions .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.product-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* References Section */
.references {
    background: #f8f9fa;
    padding: 4rem 0;
}

.references-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.references-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
}

.references-slider.is-animated .references-track {
    animation: slide var(--animation-duration, 40s) linear infinite;
}

.reference-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 200px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reference-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.reference-item:hover .reference-logo img {
    filter: grayscale(0%) opacity(1);
}

/* Slider Animation */
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--track-width)));
    }
}

/* Pause animation on hover */
.references-slider:hover .references-track {
    animation-play-state: paused;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item div {
    flex: 1;
    min-width: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    max-width: 100%;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}
/* Hero background image overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/automation-bg.jpg') center/cover no-repeat;
    opacity: 0.5; /* Adjust to desired transparency */
    filter: blur(4px);   /* Blur effect */
    z-index: 1;
}
/* Color tint overlay above image */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.6) 0%, rgba(118,75,162,0.6) 100%);
    z-index: 2;
}
/* Ensure hero content is above overlays */
.hero-content {
    position: relative;
    z-index: 3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    word-break: break-word;
}

.footer-section i {
    margin-right: 8px;
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #bbb;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }

    .hero-content .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* Mobilde hero logoyu küçült ve alta taşı */
    .hero-visual {
        order: 2;
        margin-top: 1rem;
    }

    .hero-logo img {
        height: 150px;
        animation: none; /* Mobilde animasyonu kapat */
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .contact-item div {
        min-width: 280px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .product-content h3 {
        font-size: 1.8rem;
    }

    .product-icon {
        padding: 1.5rem;
    }

    .product-icon i {
        font-size: 2.5rem;
    }

    .products .container {
        padding: 0 20px;
    }

    .products-navigation {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .product-actions {
        justify-content: center;
        gap: 0.8rem;
    }

    .product-actions .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile references slider */
    .references-track {
        gap: 2rem;
    }
    
    .reference-item {
        min-width: 180px;
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .reference-logo {
        height: 60px;
    }
    
    .reference-logo img {
        max-height: 60px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    /* Çok küçük ekranlarda logoyu tamamen gizle */
    .hero-visual {
        display: none;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations will be handled by JavaScript */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
