/* Unique Apps Hub - Premium Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Design Tokens */
    --primary-color: #0c2340;
    --primary-rgb: 12, 35, 64;
    --accent-color: #f99d1c;
    --accent-rgb: 249, 157, 28;
    --accent-hover: #e08610;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --text-color: #1a202c;
    --text-muted: #718096;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    /* Utilities */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(249, 157, 28, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-color: #050e1a;
    --bg-alt: #0a1626;
    --text-color: #f7fafc;
    --text-muted: #a0aec0;
    --card-bg: #0a1626;
    --border-color: #1e2c3c;
    --nav-bg: rgba(5, 14, 26, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(249, 157, 28, 0.25);
}

/* Base Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: #ffffff;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent-hover);
}

/* Header & Navigation */
.navbar-custom {
    background-color: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    z-index: 1050;
}
.navbar-custom.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 52px;
    width: auto;
}

.nav-link-custom {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link-custom:hover, 
.nav-link-custom.active {
    color: var(--accent-color) !important;
    background-color: rgba(var(--accent-rgb), 0.08);
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.theme-btn:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

/* Premium Buttons */
.btn-premium {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(249, 157, 28, 0.3);
    transition: var(--transition);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 157, 28, 0.45), var(--shadow-glow);
    color: #ffffff;
}

.btn-premium-outline {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-premium-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(var(--accent-rgb), 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 9rem 0 7rem;
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%);
}
[data-theme="dark"] .hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.3) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-title span {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.img-float {
    animation: float 6s ease-in-out infinite;
}

/* Statistics Counter Section */
.stats-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.stat-title {
    font-weight: 600;
    color: var(--text-color);
}

/* Feature Cards (Services / Core items) */
.section-title-container {
    margin-bottom: 4rem;
}
.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.premium-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--accent-rgb), 0.3);
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}
.premium-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* App Card styling */
.app-card {
    border-radius: var(--radius-md);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(var(--accent-rgb), 0.5);
}
.app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.app-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.app-rating span {
    color: var(--text-color);
    font-weight: 600;
    margin-left: 0.3rem;
}

/* Testimonial slider */
.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    margin: 1rem;
    box-shadow: var(--shadow-sm);
}
.testimonial-quote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
.client-info {
    display: flex;
    align-items: center;
}
.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--accent-color);
}
.client-name {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.1rem;
}
.client-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer Section */
.footer-section {
    background-color: #050e1a;
    color: #a0aec0;
    padding: 5rem 0 2rem;
    border-top: 1px solid #1e2d3d;
}
.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 1.5rem;
}
.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}
.footer-links {
    list-style: none;
    padding-left: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #a0aec0;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #0f1c2e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: var(--transition);
}
.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Portfolio Filters */
.portfolio-filters {
    margin-bottom: 3rem;
}
.filter-btn {
    background: none;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    margin: 0.25rem;
}
.filter-btn:hover, 
.filter-btn.active {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(249, 157, 28, 0.2);
}

/* Journey Milestone / Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
@media (max-width: 768px) {
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
}
.timeline-left {
    left: 0;
    text-align: right;
}
@media (max-width: 768px) {
    .timeline-left {
        text-align: left !important;
    }
}
.timeline-right {
    left: 50%;
}
@media (max-width: 768px) {
    .timeline-right {
        left: 0%;
    }
}
.timeline-left::after {
    left: auto;
    right: -10px;
}
@media (max-width: 768px) {
    .timeline-left::after {
        left: 21px;
    }
}
.timeline-content {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Contact Info cards */
.info-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}
.info-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.info-text {
    color: var(--text-muted);
}

/* Leaflet Map Integration styling */
#map {
    height: 400px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

/* Lightbox screenshots custom CSS */
.screenshot-img {
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.screenshot-img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Custom Alert styling */
.alert-custom {
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Premium micro-animations & transitions */
.btn-premium, .btn-premium-outline, .btn-sm, .navbar-nav .nav-link-custom, .client-info, .social-icons a {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 157, 28, 0.3) !important;
}

.btn-premium-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 157, 28, 0.1) !important;
}

/* Card hover micro-animations */
.premium-card, .app-card, .testimonial-card, .card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease !important;
}

.premium-card:hover, .app-card:hover, .testimonial-card:hover, .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06) !important;
    border-color: var(--accent-color) !important;
}

/* Page fade-in transition */
main {
    animation: uahFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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