/*
 * RGS TECHNOLOGY PTE LTD - Premium Corporate Website Stylesheet
 * Custom CSS with Premium IT/SaaS Aesthetics, Variables, and Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --color-primary: #0f62fe;          /* Modern Electric Blue */
    --color-primary-hover: #0043ce;    /* Darker Electric Blue */
    --color-primary-light: #edf5ff;    /* Very Light Blue for accents/bg */
    --color-navy-dark: #0a1128;        /* Deep Dark Corporate Navy */
    --color-navy-medium: #1c2541;      /* Secondary Navy */
    --color-navy-light: #5c677d;       /* Muted Navy for subtext */
    --color-bg-light: #f8fafc;          /* Off-white Background */
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;           /* Soft Border */
    --color-border-light: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(15, 98, 254, 0.08);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 20px 40px rgba(15, 98, 254, 0.12);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;
}

/* Global Reset & Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-white);
    color: var(--color-navy-medium);
    line-height: 1.6;
    overflow-x: hidden;
}

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

p {
    color: var(--color-navy-light);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--border-radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Global Section Spacings */
section {
    padding: 100px 0;
    position: relative;
}

.section-bg-light {
    background-color: var(--color-bg-light);
}

.section-bg-dark {
    background-color: var(--color-navy-dark);
    color: var(--color-bg-white);
}

.section-bg-dark h2, 
.section-bg-dark h3, 
.section-bg-dark h4 {
    color: var(--color-bg-white);
}

.section-bg-dark p {
    color: rgba(255, 255, 255, 0.75);
}

/* Custom Sticky Navigation Bar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 98, 254, 0.05);
    transition: var(--transition-normal);
    z-index: 1030;
    padding: 15px 0;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-custom .navbar-brand .logo-text {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.navbar-custom .nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-navy-medium);
    padding: 8px 16px !important;
    margin: 0 3px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

/* Custom Buttons */
.btn-primary-custom {
    font-family: var(--font-secondary);
    background-color: var(--color-primary);
    color: var(--color-bg-white) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.4);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    font-family: var(--font-secondary);
    background-color: transparent;
    color: var(--color-navy-dark) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    border: 2px solid var(--color-navy-medium);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-custom:hover {
    background-color: var(--color-navy-dark);
    color: var(--color-bg-white) !important;
    border-color: var(--color-navy-dark);
    transform: translateY(-2px);
}

.btn-white-custom {
    font-family: var(--font-secondary);
    background-color: var(--color-bg-white);
    color: var(--color-primary) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    border: 2px solid var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-white-custom:hover {
    background-color: transparent;
    color: var(--color-bg-white) !important;
    border-color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* Badge Styling */
.badge-custom {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

/* Badge inside dark sections/heroes */
.section-bg-dark .badge-custom,
.page-hero .badge-custom {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-bg-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf5ff 100%);
    padding: 160px 0 100px 0;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 98, 254, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--color-navy-dark) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-img-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: float 6s ease-in-out infinite;
}

/* Dark Hero Section Variant (to match dark dashboard background and prevent background difference) */
.hero-section.section-bg-dark {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-medium) 100%);
}

.hero-section.section-bg-dark::before {
    background: radial-gradient(circle, rgba(15, 98, 254, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-section.section-bg-dark .hero-title {
    background: linear-gradient(135deg, #ffffff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section.section-bg-dark .hero-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hero-section.section-bg-dark .btn-secondary-custom {
    color: var(--color-bg-white) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-section.section-bg-dark .btn-secondary-custom:hover {
    background-color: var(--color-bg-white);
    color: var(--color-navy-dark) !important;
    border-color: var(--color-bg-white);
}

/* Seamless blend for the hero dashboard image on dark background */
.hero-section.section-bg-dark .hero-img {
    border: none !important;
    box-shadow: none !important;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Section Header styling */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

/* Premium Card Styles */
.card-custom {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    transition: var(--transition-normal);
    height: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(15, 98, 254, 0.15);
}

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

.card-custom-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.card-custom:hover .card-custom-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.card-custom-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.card-custom-text {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--color-navy-light);
}

/* Why Choose Us Section & Features */
.feature-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-list-icon {
    width: 28px;
    height: 28px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.feature-list-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-list-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Tech Highlights / Icons Section */
.tech-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-bg-white);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.tech-badge:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Stats Section */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #00f5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-navy-dark);
}

/* Contact CTA Banner Section */
.cta-banner {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-medium) 100%);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
}

.cta-banner h1,
.cta-banner h2,
.cta-banner h3,
.cta-banner h4,
.cta-banner h5,
.cta-banner h6 {
    color: var(--color-bg-white) !important;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 98, 254, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Inner Page Hero Sections */
.page-hero {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-medium) 100%);
    padding: 150px 0 80px 0;
    color: var(--color-bg-white);
    position: relative;
}

.page-hero h1 {
    color: var(--color-bg-white);
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 0;
    max-width: 700px;
}

.breadcrumb-custom {
    margin-top: 15px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a:hover {
    color: var(--color-bg-white);
}

.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Premium Form Styling */
.form-custom .form-group {
    margin-bottom: 25px;
}

.form-custom label {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-navy-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-custom .form-control {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    background-color: var(--color-bg-light);
}

.form-custom .form-control:focus {
    background-color: var(--color-bg-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.1);
    outline: none;
}

/* Contact Details Info */
.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-info-details h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-details p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Map Wrapper */
.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    height: 100%;
    min-height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 400px;
}

/* Footer Styles */
.footer-custom {
    background-color: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-custom h5 {
    color: var(--color-bg-white);
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--color-primary);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    padding-top: 25px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.social-icon-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* Responsiveness Adjustments */
@media (max-width: 991.98px) {
    section {
        padding: 70px 0;
    }
    
    .hero-section {
        padding: 130px 0 70px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-img-wrapper {
        margin-top: 50px;
    }
    
    .card-custom {
        padding: 30px 20px;
    }
    
    .cta-banner {
        padding: 40px 30px;
        text-align: center;
    }
    
    .cta-banner .btn-white-custom {
        margin-top: 25px;
    }
    
    .page-hero {
        padding: 120px 0 60px 0;
        text-align: center;
    }
    
    .page-hero h1 {
        font-size: 2.25rem;
    }
    
    .breadcrumb-custom {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
}
