/* Global Styles */
:root {
    --primary-color: #0056b3;
    /* Professional Blue */
    --secondary-color: #004494;
    --accent-color: #00a8e8;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-footer: #212529;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Increased height */
}

.logo img {
    height: 80px;
    /* Increased logo size significantly */
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 25px;
    /* More breathing room */
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #444;
    /* Slightly softer than black */
    transition: color 0.3s;
    text-transform: none;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.dropdown:hover .dropbtn {
    color: var(--primary-color);
    text-transform: capitalize;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    z-index: 1001;
    border-radius: 6px;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
    /* subtle accent */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-transform: none;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
    /* Slight movement on hover */
    transition: padding 0.2s;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */

.dropdown-content.show {
    display: block;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.75), rgba(0, 40, 90, 0.85)), url('../img/UBS_SoC.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    color: var(--white);
    padding: 160px 0;
    /* More vertical space */
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    /* Rounded pill shape */
    font-weight: 800;
    text-transform: none;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* General Section */
.section,
.about-subsection {
    padding: 50px 0;
    scroll-margin-top: 110px;
    /* Fix for sticky header overlay */
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-block {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.about-block h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Products Category */
.products-category {
    scroll-margin-top: 100px;
}

.products-category h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Logos Grid (Partners & Customers) */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.logo-grid img {
    max-height: 70px;
    transition: all 0.3s;
}

.logo-grid img:hover {
    transform: scale(1.05);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* News Gallery */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-gallery img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-gallery img:hover {
    transform: scale(1.02);
}

/* Footer & Contact */
footer {
    background: var(--dark-footer);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 15px;
}

.map-link {
    color: var(--white);
    display: inline-block;
    text-align: center;
    transition: color 0.3s;
}

.map-link:hover {
    color: var(--accent-color);
}

.footer-col.form {
    min-width: 300px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: var(--white);
    font-family: inherit;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #bbb;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Hide nav for simplicity on mobile, normally would add hamburger */
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* History Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #e9ecef;
    transform: translateX(-50%);
    z-index: 0;
}

.milestone {
    position: relative;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Nice card shadow */
    margin-bottom: 40px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    text-align: center;
    border-left: 5px solid var(--primary-color);
}

.milestone-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.milestone p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
    font-weight: 500;
}

.milestone-img {
    max-height: 100px;
    /* Reasonable size */
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 5px;
}