:root {
    /* Color Palette - Based on SOCOS Logo */
    --primary-color: #0056b3;
    /* Professional Blue */
    --secondary-color: #00a8e8;
    /* Light Blue */
    --accent-color: #f8f9fa;
    /* Off-white */
    --dark-color: #1a1a1a;
    /* Near black */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

p {
    font-size: 18px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

section {
    padding: var(--section-padding);
}

/* Page Titles */
.page-title {
    padding: 250px 0 150px;
    color: white;
    text-align: center;
}

.page-title h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up {
    opacity: 0;
    /* Hidden initially */
    animation-fill-mode: forwards;
}

.slide-up.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    animation-fill-mode: forwards;
}

.slide-in-left.visible {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    opacity: 0;
    animation-fill-mode: forwards;
}

.slide-in-right.visible {
    animation: slideInRight 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

header.scrolled .logo img {
    height: 45px;
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.95) 0%, rgba(0, 61, 130, 0.95) 100%),
        url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(0, 168, 232, 0.05) 100%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    text-align: left;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    text-align: left;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-align: left;
    animation: fadeInUp 1s ease 0.4s backwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    border-radius: var(--border-radius);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more:hover {
    gap: 10px;
}

/* CEO Message Section */
.ceo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ceo-image {
    width: 100%;
}

.ceo-image img {
    width: 100%;
    height: auto;
}

/* Other Responsive Grid Utilities */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Team Teaser (Home Page) */
.team-teaser-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Logo Scroller */
.logo-scroller {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    opacity: 0.7;
}

/* Services Page Specific */
.services-list .service-item {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    /* JS will reveal */
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-list .service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 993px) {

    /* Set specific order for odd items: Content Left, Image Right */
    .services-list .service-item:nth-child(odd) .service-content {
        order: 1;
    }

    .services-list .service-item:nth-child(odd) .service-image {
        order: 2;
    }

    /* Set opposite order for even items: Image Left, Content Right */
    .services-list .service-item:nth-child(even) .service-content {
        order: 2;
    }

    .services-list .service-item:nth-child(even) .service-image {
        order: 1;
    }
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.service-image.hover-scale img:hover {
    transform: scale(1.02);
}

.service-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-content ul li i {
    color: var(--secondary-color);
    margin-right: 15px;
}

/* Projects Preview */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    /* Logos should be contained */
    background-color: #f8f8f8;
    padding: 20px;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.25rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-col p {
    color: #cccccc;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Trusted Clients Section */
.logo-slider {
    height: 200px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, var(--accent-color) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 200px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.logo-slider::after {
    background: linear-gradient(to left, var(--accent-color) 0%, rgba(255, 255, 255, 0) 100%);
    right: 0;
    top: 0;
}

.logo-slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.client-slide {
    height: 200px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.client-slide img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.client-slide:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

.client-slide p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 5px;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Map Section */
.map-section {
    height: 500px;
    width: 100%;
    filter: grayscale(80%);
    transition: filter 0.3s ease;
    margin-top: 10px;
}

.map-section:hover {
    filter: grayscale(0%);
}

.map-section iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: block;
}

/* Responsive */
@media (max-width: 992px) {

    /* Hero Section Responsive */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1,
    .hero p {
        text-align: center;
    }

    .hero p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 400px;
    }

    /* Navigation Responsive */
    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: var(--transition);
        padding: 20px 0;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-list .service-item,
    .services-list .service-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .services-list .service-item .service-content,
    .services-list .service-item:nth-child(even) .service-content {
        order: 1;
    }

    .services-list .service-item .service-image,
    .services-list .service-item:nth-child(even) .service-image {
        order: 2;
    }

    .service-content ul li {
        justify-content: center;
    }

    .service-image img {
        height: 300px;
    }

    .ceo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .ceo-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .ceo-content .quote {
        text-align: left;
    }

    .team-teaser-row {
        flex-direction: column;
    }

    .logo-scroller {
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    /* Contact Page Responsive */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Vacant Positions Styles */
.job-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.job-card:hover {
    transform: translateX(10px);
}

.job-info h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.job-type {
    display: inline-block;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.job-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .job-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Add Team Hover Effects */
.team-member {
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-member img {
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Enhanced Project Hover Effects - mobile responsive friendly */
.project-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 86, 179, 0.1);
}

.cs-image img {
    /* specific for projects.html cards */
    transition: transform 0.5s ease;
}

.case-study:hover .cs-image img {
    transform: scale(1.1);
}

.case-study {
    transition: var(--transition);
}

.case-study:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced Service Item Hover */
.service-item .service-image img {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 86, 179, 0.15);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
    /* Hidden by default, shown via JS on non-touch devices */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-color: transparent;
}

@media (pointer: fine) {

    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Enhanced Hover Effects */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card,
.project-card,
.team-member,
.blog-card,
.value-card,
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
}

.service-card:hover,
.project-card:hover,
.team-member:hover,
.blog-card:hover,
.value-card:hover,
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}