/*
 * Custom Styles for POINT - Contemporary Redesign
 * Preserves original color scheme (#222 navbar, #080808 borders, #9d9d9d text)
 * with modern, responsive design
 */

:root {
    /* Original color scheme preserved */
    --navbar-bg: #222;
    --navbar-border: #080808;
    --navbar-text: #9d9d9d;
    --navbar-text-hover: #fff;
    --navbar-active-bg: #080808;
    
    /* Contemporary additions */
    --primary-color: #337ab7; /* Bootstrap primary blue - matches original links */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --divider-color: #e9ecef;
    
    /* Typography */
    --font-family-base: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Base Styles */
body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    color: #212529;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
}

.display-4 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.display-5 {
    font-size: 3rem;
}

.display-6 {
    font-size: 2.5rem;
}

/* Navigation - Preserves original dark theme */
.navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--navbar-border);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: var(--navbar-text);
    font-weight: var(--font-weight-medium);
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--navbar-text-hover);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.caption-content {
    max-width: 800px;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.carousel-caption p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: white;
    width: 14px;
    height: 14px;
}

/* Main Content Styles */
main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 2rem auto;
    border-radius: 2px;
}

/* Services Section */
.services-section {
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--divider-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card h3 {
    color: #212529;
    font-weight: var(--font-weight-semibold);
}

/* About Section */
.about-section {
    margin-bottom: 4rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    border-radius: 0.375rem;
    pointer-events: none;
}

.accordion-button {
    font-weight: var(--font-weight-semibold);
    background-color: var(--light-bg);
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-body ul {
    padding-left: 0;
}

.accordion-body li {
    padding-left: 1.5rem;
    position: relative;
}

.accordion-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Contact Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--navbar-bg));
    color: white;
    margin-bottom: 3rem;
}

.page-header .breadcrumb {
    background: transparent;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: white;
    font-weight: var(--font-weight-medium);
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--divider-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.contact-form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--divider-color);
}

.form-floating {
    position: relative;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(51, 122, 183, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #286090;
    border-color: #286090;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 122, 183, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(51, 122, 183, 0.5);
}

/* Social Links */
.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-link.linkedin:hover {
    background-color: #005582;
    transform: translateY(-3px);
}

.social-link.mastodon {
    background-color: #6364ff;
    color: white;
}

.social-link.mastodon:hover {
    background-color: #4a4bcc;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    margin-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
        min-height: 350px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2.2rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.rounded-3 {
    border-radius: 0.375rem !important;
}