/* styles.css - Compact and Responsive Stylesheet */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    padding: 15px;
    color: #333;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    max-width: 1000px; /* Reduced from 1200px */
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 10px;
}

/* ========== COMPACT LOGO SECTION ========== */
.logo-container {
    margin: 10px 0 30px; /* Reduced margins */
    padding: 10px;
}


.resana-logo{
    width: 20%;
    height: 20%;
}
.company-icon {

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.company-icon i {
    font-size: 45px; /* Smaller icon */
    color: #ecf0f1;
}

.company-name {
    font-size: 1.8rem; /* Smaller font */
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 0.95rem; /* Smaller font */
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ========== COMPACT SERVICES SECTION ========== */
.services-title {
    font-size: 1.4rem; /* Smaller */
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.services-title::after {
    content: '';
    position: absolute;
    width: 60px; /* Smaller */
    height: 3px;
    background: #3498db;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 3 columns by default */
    gap: 15px; /* Reduced gap */
    margin-top: 15px;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 12px; /* Slightly smaller radius */
    padding: 20px 15px; /* Reduced padding */
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    min-height: 140px; /* Fixed height for consistency */
}

.service-btn:hover {
    transform: translateY(-5px); /* Smaller hover effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.service-logo{
    width: 50%;
    margin-bottom: 10px;
}

.service-name {
    font-size: 1.1rem; /* Smaller */
    font-weight: 600;
    margin-bottom: 0; /* Removed bottom margin */
    color: #2c3e50;
}

/* Remove service descriptions for compact design */

/* ========== BUTTON COLORS ========== */
.gitea .service-icon { background: linear-gradient(145deg, #609926, #7db543); }
.jira .service-icon { background: linear-gradient(145deg, #0052cc, #2684ff); }
.jitsi .service-icon { background: linear-gradient(145deg, #f57a00, #faa918); }
.llm-coder .service-icon { background: linear-gradient(145deg, #8e44ad, #9b59b6); }
.chat .service-icon { background: linear-gradient(145deg, #0058cc, #0072c6); }
.nextcloud .service-icon { background: linear-gradient(145deg, #0082c9, #00a8ff); }

/* ========== COMPACT FOOTER ========== */
.footer {
    margin-top: 30px; /* Reduced margin */
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
    font-size: 0.8rem; /* Smaller font */
    width: 100%;
    text-align: center;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 950px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 columns on tablet */
        gap: 12px;
    }
    
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 columns on tablet */
        gap: 12px;
    }
    
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 2 columns on mobile */
        gap: 10px;
    }
}

/* For very small screens */
@media (max-width: 350px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 column on very small screens */
        gap: 8px;
    }
}



/* OR if you want to keep the colored background but make logo fit better: */
.service-icon img.custom-icon {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain !important;
    max-width: 45px;
    max-height: 45px;
}

/* Custom icon styling for when you use images */
.service-icon img.custom-icon2 {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Custom logo styling */
.custom-logo-container {
    background: white !important; /* White background for logo */
    padding: 5px;
}

.custom-logo-container img.custom-icon {
    width: 40% !important;
    height: 40% !important;
    object-fit: contain !important;
    border-radius: 0 !important; /* Remove circle shape if logo is rectangular */
    filter: none !important; /* Keep original colors */
}
