/* 
 * Singer IT-Services - Premium Global Stylesheet
 * Brand Color Scheme: Teal Accent (#1fb497) & Dark Slate Slate-900 (#0f172a)
 */

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

:root {
    --primary-color: #1fb497; /* Brand Teal */
    --primary-hover: #16937a;
    --primary-glow: rgba(31, 180, 151, 0.25);
    --dark-bg: #0f172a; /* Slate 900 */
    --card-dark-bg: #1e293b; /* Slate 800 */
    --light-bg: #f8fafc; /* Slate 50 */
    --card-light-bg: #ffffff;
    --text-dark: #0f172a;
    --text-light: #f1f5f9;
    --text-muted-dark: #64748b;
    --text-muted-light: #94a3b8;
    --border-light: rgba(15, 23, 42, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Typography */
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: clip; /* Using clip instead of hidden avoids creating a scroll container that breaks Intersection Observer/Scrollspy */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

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

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

/* Glassmorphic Navigation Bar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand img {
    height: 60px !important;
    transition: var(--transition-smooth);
}

.navbar.navbar-scrolled .navbar-brand img {
    height: 38px !important;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    margin: 0 10px;
    position: relative;
    padding: 6px 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Premium Dark Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(31, 180, 151, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    overflow: hidden;
    padding-top: 100px;
}

/* Animated background patterns */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('/images/herosectionserver.webp') no-repeat center center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    color: #cbd5e1;
    margin-bottom: 40px;
}

#typed {
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(31, 180, 151, 0.3);
}

/* Call to Action Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #179e83 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
    background: linear-gradient(135deg, #179e83 0%, var(--primary-hover) 100%);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--dark-bg);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

/* Sections Styling */
section {
    padding: 120px 0;
    position: relative;
    scroll-margin-top: 80px; /* Offset for the fixed header so titles aren't covered and Scrollspy triggers correctly */
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #0d6efd 100%);
}

/* B2B / B2C Segmented Control Switch */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.toggle-switch {
    background-color: #e2e8f0;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.toggle-btn {
    border: none;
    background: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    color: #475569;
    z-index: 2;
    transition: var(--transition-smooth);
}

.toggle-btn.active {
    color: #ffffff;
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #179e83 100%);
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.toggle-switch.b2c-active .toggle-slider {
    transform: translateX(100%);
}

/* Service & Advantage Cards */
.service-grid-container {
    position: relative;
    min-height: 400px;
}

.services-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    background: var(--card-light-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #0d6efd 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    border-color: rgba(31, 180, 151, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #f1fdf9;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon-wrapper {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.service-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.service-card:hover i {
    color: #ffffff;
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0;
}

/* Advantage Cards styling */
.advantage-card {
    background: var(--card-light-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    border-color: rgba(31, 180, 151, 0.2);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.advantage-card:hover i {
    transform: scale(1.15);
}

/* Profile / About Section Redesign */
.profile-img-wrapper {
    position: relative;
    display: inline-block;
}

.profile-img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition-smooth);
}

.profile-img-wrapper:hover::after {
    top: 8px;
    left: 8px;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.about-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

/* Premium Floating Contact Form */
.contact-section {
    background-color: var(--light-bg);
}

.contact-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.08);
    padding: 50px;
}

.form-group-custom {
    position: relative;
    margin-bottom: 25px;
}

.form-control-custom {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-select-custom {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    color: #475569;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px 12px;
}

.form-select-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Footer Section */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-top: 1px solid var(--border-dark);
    padding: 60px 0 30px 0 !important;
}

footer a {
    color: var(--text-muted-light);
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links {
    margin-bottom: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin: 0 8px;
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Legal Pages Styling Adjustment */
.legal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 50px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    margin-top: 50px;
    margin-bottom: 50px;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    color: var(--dark-bg);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }
    section {
        padding: 80px 0;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero .lead {
        font-size: 1.15rem;
    }
    .contact-card {
        padding: 30px 20px;
    }
    .legal-content {
        padding: 30px 20px;
    }
}
