* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: relative;
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('resources/hb.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

.rain-overlay::after {
    content: "HBMEDYAM BİLİŞİM\AHİZMETLERİ VE TEKNOLOJİLERİ";
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: pre-line;
    opacity: 0.95;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rain-drops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px, 70px 70px;
    animation: rain 2s linear infinite;
    opacity: 0.3;
}

@keyframes rain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.logo-section {
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    opacity: 0.9;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.services {
    font-size: 1.1rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Category Section */
.category-section {
    background: #fafafa;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.category-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
    -ms-overflow-style: auto;
}

.category-scroll::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.category-scroll::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 2px;
    margin: 0 20px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 10px;
    border-radius: 12px;
}

.category-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.category-item.active {
    background-color: #e9ecef;
}

.category-icon {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-item:hover .category-icon {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-icon i {
    font-size: 1.5rem;
    color: #6c757d;
}

.category-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    text-align: center;
    line-height: 1.2;
}

/* Menu Section */
.menu-section {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 0;
}

.menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.menu-items {
    display: grid;
    gap: 20px;
}

.menu-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.menu-item-image {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.menu-item-image i {
    font-size: 2rem;
    color: #6c757d;
}

.menu-item-content {
    flex: 1;
}

.menu-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.menu-item-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
}

.menu-item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .logo p {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .rain-overlay::after {
        font-size: 14px;
        bottom: 20px;
        left: 20px;
        letter-spacing: 0.5px;
    }
    
    .category-container {
        padding: 0 20px;
    }
    
    .category-scroll {
        padding: 10px 0 25px 0;
    }
    
    .category-scroll::-webkit-scrollbar {
        height: 10px;
    }
    
    .category-scroll::-webkit-scrollbar-track {
        margin: 0 10px;
    }
    
    .category-item {
        min-width: 70px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .category-icon i {
        font-size: 1.2rem;
    }
    
    .menu-container {
        padding: 0 20px;
    }
    
    .menu-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .menu-item-image {
        width: 100px;
        height: 100px;
    }
    
    .menu-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .menu-item-image i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .rain-overlay::after {
        font-size: 11px;
        bottom: 15px;
        left: 15px;
        letter-spacing: 0.3px;
    }
    
    .category-container {
        padding: 0 15px;
    }
    
    .category-scroll {
        gap: 15px;
        padding: 10px 0 30px 0;
    }
    
    .category-scroll::-webkit-scrollbar {
        height: 12px;
    }
    
    .category-scroll::-webkit-scrollbar-track {
        margin: 0 5px;
        background: #e9ecef;
    }
    
    .category-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #28a745, #20c997);
    }
    
    .category-item {
        min-width: 60px;
        padding: 8px 4px;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
    }
    
    .category-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .category-icon i {
        font-size: 1rem;
    }
    
    .category-item span {
        font-size: 0.8rem;
    }
    
    .menu-container {
        padding: 0 15px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 20px;
    text-align: center;
}

.modal-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-info span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-content img {
        height: 300px;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .modal-info h3 {
        font-size: 1.3rem;
    }
    
    .modal-info p {
        font-size: 0.9rem;
    }
    
    .modal-info span {
        font-size: 1.2rem;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        width: 98%;
    }
    
    .modal-content img {
        height: 250px;
    }
    
    .modal-info {
        padding: 12px;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-info p {
        font-size: 0.85rem;
    }
    
    .modal-info span {
        font-size: 1.1rem;
    }
}
