/**
 * SyNet - Custom CSS Styles
 */

:root {
    /* Color variables - improved contrast */
    --primary-color: #2176bd;     /* Darker blue for better contrast */
    --secondary-color: #1a2530;   /* Darker secondary color */
    --accent-color: #c92a1a;      /* Darker accent for better contrast */
    --light-color: #f8f9fa;
    --dark-color: #222222;        /* Darker for better contrast */
    --text-color: #212529;
    --muted-color: #6c757d;
    --border-color: #dee2e6;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Spacing variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Font variables */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;   /* Ensure white background */
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: #f5f5f5;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .bg-light {
    background-color: #1a1a1a !important;
}

body.dark-mode .text-color {
    color: #f5f5f5;
}

body.dark-mode .service-box {
    background-color: #1e1e1e;
    border-color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);  /* Ensure headings have good contrast */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Navbar Customization */
.navbar {
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;  /* Force color */
}

.nav-link {
    color: var(--secondary-color) !important;  /* Force color */
    font-weight: 500;  /* Make nav links a bit bolder */
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);  /* Add underline for active page */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: 0; /* Changed from -3rem to 0 to prevent overlap */
    padding-top: 7rem;  /* Increased padding to account for taller navbar */
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 1;
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.text-highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 90%;
}

.hero-buttons .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1.5s ease-out;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

.hero-image {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    top: 20%;
    right: 10%;
    animation: pulse 8s infinite alternate;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    bottom: 10%;
    left: 10%;
    animation: pulse 5s infinite alternate-reverse;
}

.floating-icon {
    position: absolute;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.floating-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.icon-1 {
    top: 15%;
    right: 20%;
    animation: float 4s infinite alternate ease-in-out;
}

.icon-2 {
    bottom: 25%;
    right: 15%;
    animation: float 5s infinite alternate-reverse ease-in-out;
}

.icon-3 {
    top: 40%;
    left: 5%;
    animation: float 6s infinite alternate ease-in-out;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .floating-icon {
        display: none;
    }
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    text-align: center;
    color: var(--secondary-color);  /* Ensure good contrast */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Card Styling */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);  /* Add border for better visibility */
    min-height: 200px;  /* Ensure card has minimum height */
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--secondary-color);
}

.card-img-top {
    height: 200px;
    background-color: #f1f1f1;  /* Placeholder color when image is missing */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top::before {
    content: "Image";
    color: #999;
    font-style: italic;
}

/* When real image loads, hide the placeholder text */
.card-img-top[src] {
    background-color: transparent;
}
.card-img-top[src]::before {
    content: none;
}

/* Service Box */
.service-box {
    text-align: center;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 5px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    border: 1px solid #eee;  /* Add subtle border */
}

.service-box:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.service-box h3 {
    color: var(--secondary-color);  /* Ensure good contrast */
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 118, 189, 0.9);  /* Updated to match primary color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-overlay h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.portfolio-overlay p {
    color: white;
    margin-bottom: var(--spacing-md);
}

/* Blog Post */
.blog-post {
    margin-bottom: var(--spacing-xl);
}

.blog-post img {
    border-radius: 5px;
    margin-bottom: var(--spacing-md);
}

.blog-post-meta {
    color: var(--muted-color);
    margin-bottom: var(--spacing-sm);
}

/* Contact Form */
.contact-form {
    background-color: var(--light-color);
    padding: var(--spacing-lg);
    border-radius: 5px;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);  /* Add border for better visibility */
}

.contact-info i {
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
}

/* Footer Styling */
footer {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

footer h5 {
    color: white;
    margin-bottom: var(--spacing-md);
}

footer p, footer address {
    color: var(--light-color);
    opacity: 0.9;  /* Increased opacity for better readability */
}

footer ul li {
    margin-bottom: var(--spacing-xs);
}

footer a {
    color: var(--light-color);
    opacity: 0.9;  /* Increased opacity for better readability */
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: none;
    color: white;  /* Ensure hover color is pure white */
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
}

/* Navbar improvements */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
    border-bottom: 2px solid white;
}

.navbar-dark .navbar-brand {
    color: white !important;
} 