/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    /* Brand Colors based on Logo */
    --om-blue: #87CEEB;       /* Light Blue from 'O' */
    --om-purple: #6B5B95;     /* Dark Purple from Text */
    --om-yellow: #FFD700;     /* Yellow Bar */
    
    /* Utility Colors */
    --om-dark: #2c3e50;
    --om-light: #f8f9fa;
    --om-white: #ffffff;
    --om-gray: #6c757d;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--om-dark);
    background-color: #fdfdfd;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--om-purple);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Helper Classes */
.text-blue { color: var(--om-blue) !important; }
.text-purple { color: var(--om-purple) !important; }
.text-yellow { color: var(--om-yellow) !important; }
.bg-purple { background-color: var(--om-purple) !important; }
.bg-blue { background-color: var(--om-blue) !important; }
.bg-light-purple { background-color: rgba(107, 91, 149, 0.1); }

/* =========================================
   2. CRYSTAL NAVBAR
   ========================================= */
.navbar-crystal {
    background: linear-gradient(90deg, 
        rgba(135, 206, 235, 0.15) 0%, 
        rgba(107, 91, 149, 0.15) 50%, 
        rgba(255, 215, 0, 0.15) 100%);
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-link {
    color: var(--om-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    margin: 0 5px;
    padding: 0 15px !important;
    transition: color 0.3s ease;
}

/* Separator Line between Nav Items */
.nav-item:not(:last-child) .nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--om-purple), transparent);
    opacity: 0.4;
}

.nav-link:hover, .nav-link.active {
    color: var(--om-purple);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--om-blue), var(--om-yellow));
    border-radius: 2px;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--om-purple), var(--om-blue));
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.3);
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 91, 149, 0.4);
    color: white;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-primary-custom {
    background-color: var(--om-purple);
    border-color: var(--om-purple);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--om-blue);
    border-color: var(--om-blue);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--om-purple);
    color: var(--om-purple);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--om-purple);
    color: white;
    transform: translateY(-2px);
}

/* =========================================
   4. CARDS & SERVICES
   ========================================= */
.service-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--om-blue), var(--om-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(107, 91, 149, 0.1);
    color: var(--om-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background-color: var(--om-purple);
    color: white;
}

/* Hover Lift Effect for Portfolio Cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* =========================================
   5. PORTFOLIO SPECIFIC STYLES
   ========================================= */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 91, 149, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.filter-btn {
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 10px;
}

.filter-btn.active {
    background-color: var(--om-purple);
    color: white;
    border-color: var(--om-purple);
}

/* Software & Infra Cards (from uploaded portfolio.php) */
.software-card, .infra-card, .project-card, .hosting-card, .migration-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.software-card:hover, .infra-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-icon, .software-icon, .infra-icon, .hosting-icon, .migration-icon {
    width: 60px;
    height: 60px;
    background: rgba(107, 91, 149, 0.1);
    color: var(--om-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.project-card h3, .software-card h3, .infra-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.project-link {
    color: var(--om-purple);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--om-blue);
}

.software-header, .infra-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.software-title, .infra-title {
    flex-grow: 1;
    margin-left: 15px;
}

.software-description, .infra-description {
    background: var(--om-light);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid var(--om-purple);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hosting-card, .migration-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.client-logos-grid, .client-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.client-tag, .tag {
    background: var(--om-light);
    color: var(--om-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.client-tag:hover, .tag:hover {
    background: var(--om-purple);
    color: white;
    transform: translateY(-2px);
}

/* CRM Popup Styles */
.crm-popup {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-popup:hover {
    color: var(--om-purple);
}

.demo-box {
    background: var(--om-light);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--om-blue);
}

.demo-box h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--om-purple);
}

.cred-row {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #555;
}

.security-note {
    background: rgba(255, 215, 0, 0.15);
    color: #856404;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* =========================================
   6. FORMS & INPUTS
   ========================================= */
.form-control, .form-select {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--om-blue);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

.captcha-box {
    background: var(--om-purple);
    color: white;
    font-family: monospace;
    font-size: 1.5rem;
    letter-spacing: 5px;
    padding: 10px 20px;
    border-radius: 8px;
    user-select: none;
    display: inline-block;
}

/* =========================================
   7. FOOTER (Crystal Light Design)
   ========================================= */
footer {
    background: linear-gradient(135deg, 
        rgba(240, 248, 255, 0.95) 0%, 
        rgba(245, 245, 250, 0.95) 50%, 
        rgba(255, 255, 240, 0.95) 100%);
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    color: var(--om-dark);
    padding-top: 80px;
    border-top: 1px solid rgba(107, 91, 149, 0.1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

footer h5.footer-heading {
    color: var(--om-purple);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
}

footer h5.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--om-blue), var(--om-yellow));
    border-radius: 2px;
}

.footer-logo-container {
    display: inline-block;
    margin-bottom: 20px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.footer-logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 91, 149, 0.15);
}

.footer-logo {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

footer p.footer-text {
    color: #555;
    line-height: 1.7;
    z-index: 1;
    position: relative;
}

footer ul.footer-links li {
    margin-bottom: 10px;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    z-index: 1;
    position: relative;
}

footer a:hover {
    color: var(--om-purple);
    transform: translateX(5px);
}

.contact-label {
    font-weight: 700;
    color: var(--om-purple);
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.contact-link {
    color: var(--om-dark);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--om-blue);
    transform: none;
}

.contact-text-small {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.footer-bottom {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(107, 91, 149, 0.1);
    z-index: 1;
    position: relative;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--om-purple);
    border: 1px solid rgba(107, 91, 149, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background: var(--om-purple);
    color: white;
    border-color: var(--om-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(107, 91, 149, 0.3);
}

/* =========================================
   8. RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active::before {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .btn-nav-cta {
        width: 100%;
        margin-top: 10px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    footer {
        text-align: center;
        padding-top: 60px;
    }
    
    footer h5.footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
        display: flex;
        margin-top: 15px;
    }
    
    footer a:hover {
        transform: none;
        color: var(--om-blue);
    }
    
    .software-header, .infra-header {
        flex-direction: column;
    }
    
    .software-title, .infra-title {
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }
    
    .software-icon, .infra-icon, .project-icon {
        margin: 0 auto 20px;
    }
}