/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Theme Variables - Bootstrap'i sınırlamaz, özel renkleri yönetir */
:root {
    --theme-primary: #1155ed;
    --theme-secondary: #fcb12b;
    --theme-light: #ededed;
    --theme-dark: #333333;
    --theme-light-dark: #666666;
    
    /* Font */
    --theme-font: 'Space Grotesk', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--theme-font);
}

/* Theme Color Classes */
.text-theme-primary { color: var(--theme-primary) !important; }
.text-theme-secondary { color: var(--theme-secondary) !important; }
.text-theme-light { color: var(--theme-light) !important; }
.text-theme-dark { color: var(--theme-dark) !important; }

.bg-theme-primary { background-color: var(--theme-primary) !important; }
.bg-theme-secondary { background-color: var(--theme-secondary) !important; }
.bg-theme-light { background-color: var(--theme-light) !important; }
.bg-theme-dark { background-color: var(--theme-dark) !important; }

.border-theme-primary { border-color: var(--theme-primary) !important; }
.border-theme-secondary { border-color: var(--theme-secondary) !important; }

/* Custom Theme Buttons */
.btn-theme {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

.btn-theme:hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
    color: white;
}

.btn-theme-outline {
    background-color: transparent;
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.btn-theme-outline:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

.btn-secondary-theme {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: var(--theme-dark);
}

.btn-secondary-theme:hover {
    background-color: #e6a700;
    border-color: #e6a700;
    color: var(--theme-dark);
}

/* Home Section Design */
#home {
    background: linear-gradient(135deg, rgba(17, 85, 237, 0.85) 0%, rgba(30, 64, 175, 0.9) 100%), url('gallery/024.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--theme-secondary) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

#home::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--theme-light) 0%, transparent 70%);
    opacity: 0.05;
    animation: float 8s ease-in-out infinite reverse;
}

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

.home-content {
    position: relative;
    z-index: 2;
}

.home-visual {
    position: relative;
    z-index: 2;
}

.home-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border: 3px solid var(--theme-secondary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.home-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid var(--theme-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite 1.5s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* Logo styles */
.logo-navbar {
    height: 30px;
    width: auto;
}

.logo-footer {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-footer {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Social media icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--theme-primary);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background-color: var(--theme-secondary);
    color: var(--theme-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Product Info Section */
#product-info {
    position: relative;
}

#product-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
}

.product-feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, 0.3s ease;
    height: 100%;
}

.product-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Gallery Section */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* smooth scrolling for iOS */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: var(--theme-secondary);
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #e6a700;
}

.gallery-item {
    flex: 0 0 300px; /* Default sizing */
    max-width: 300px;
}

.gallery-img-container {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px; /* Increased height for better visual */
    width: 100%;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-img-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.gallery-img-container:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 85%; /* Mobile: show most of the first image */
        max-width: 85%;
    }
    
    .gallery-img-container {
        height: 250px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to {transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--theme-secondary);
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transform: translateY(-50%);
    text-decoration: none;
    z-index: 2001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--theme-secondary);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}
