/* Modern IT-Focused Design System for ITINFODEV */

:root {
    /* Tech-Inspired Color Palette */
    --primary-color: #e74011;
    --primary-dark: #c4350e;
    --primary-light: #ff5a2b;
    --secondary-color: #1a1a2e;
    --accent-color: #0f3460;
    --tech-blue: #00d4ff;
    --tech-purple: #7b2cbf;
    --text-dark: #272727;
    --text-light: #727272;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --white: #ffffff;
    --border-color: rgba(236, 240, 241, 0.58);
    
    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Raleway', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Main menu: keep nav and language switcher on same line (desktop) */
@media (min-width: 993px) {
    #main-menu.nav-flex-wrap,
    header #main-menu.collapse {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        float: none !important;
    }

    #main-menu ul.nav.nav-inline,
    #main-menu.nav-flex-wrap ul.nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: auto !important;
    }

    #main-menu ul.nav li {
        display: inline-block !important;
        flex-shrink: 0;
        float: none !important;
    }

    #main-menu .nav-item-language {
        display: inline-block !important;
        flex-shrink: 0;
        margin-left: 8px;
    }
}

/* Language Switcher - now inside nav as last li */
#language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    flex-shrink: 0;
}

.nav-item-language .language-dropdown {
    padding: 0 4px;
}

.language-dropdown {
    position: relative;
    cursor: pointer;
}

/* Flag icons (flag-icon-css): current flag in header */
.current-flag.flag-icon {
    width: 24px;
    height: 18px;
    min-width: 24px;
    min-height: 18px;
    padding: 0;
    display: inline-block !important;
    background-size: cover;
    transition: transform var(--transition-fast);
}

.current-flag.flag-icon:hover {
    transform: scale(1.1);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 150px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background var(--transition-fast);
    border-radius: 8px;
}

.language-menu a:hover {
    background: var(--bg-light);
}

.language-menu a .flag-icon {
    width: 20px;
    height: 15px;
    min-width: 20px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.language-menu a .lang-name {
    font-weight: 500;
}

/* Modern Header: logo and menu on same line */
@media (min-width: 993px) {
    header .container .row,
    header nav {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    header nav {
        width: 100%;
        justify-content: space-between;
    }

    header .logo-nav {
        flex-shrink: 0;
        margin-right: 20px;
    }

    header .clear-toggle {
        display: none;
    }

    header #main-menu.nav-flex-wrap {
        flex: 1;
        min-width: 0;
        justify-content: flex-end;
    }
}

/* Modern Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header nav ul.nav li a {
    position: relative;
    transition: color var(--transition-fast);
    font-weight: 500;
}

header nav ul.nav li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

header nav ul.nav li a:hover::after,
header nav ul.nav li.active a::after {
    width: 100%;
}

/* Modern Hero Section – full-screen slider, clear images, overlay only on text */
#main-slider {
    position: relative;
    overflow: hidden;
}
#main-slider .carousel-inner,
#main-slider .carousel-item,
#main-slider .item {
    height: 85vh;
    min-height: 420px;
    position: relative;
}
#main-slider .item img {
    object-fit: cover !important;
    object-position: center;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    display: block;
}
/* Caption: only a centered box, no full-screen dark overlay – images stay clear */
#main-slider .carousel-caption {
    width: auto !important;
    max-width: 90%;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.88), rgba(15, 52, 96, 0.82));
    border-radius: 15px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-caption {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(15, 52, 96, 0.8));
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.carousel-text {
    font-size: 1.2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

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

/* Modern Section Styling */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.title-box {
    margin-bottom: var(--spacing-lg);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

/* Projects Section */
.projects-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: var(--spacing-xl) 0;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--tech-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--white);
}

.project-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.project-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-card .project-features {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.project-card .project-features li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-card .project-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.projects-section .project-link {
    color: #e74011 !important;
    font-weight: 700;
}

.projects-section .project-link:hover {
    color: #c4350e !important;
}

.project-link:hover {
    color: var(--primary-dark) !important;
    transform: translateX(5px);
}

.project-link i {
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Clients & Partners Section */
.clients-section {
    background: var(--bg-dark) !important;
    color: var(--white) !important;
    padding: var(--spacing-xl) 0;
}

.clients-section * {
    color: var(--white) !important;
}

.clients-section .title {
    color: var(--white) !important;
}

.clients-section .title-box {
    color: var(--white) !important;
}

.clients-section .title-box h2 {
    color: var(--white) !important;
}

.clients-section .title-box p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.clients-section h1,
.clients-section h2,
.clients-section h3,
.clients-section h4,
.clients-section h5,
.clients-section h6 {
    color: var(--white) !important;
}

.clients-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.client-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.client-logo {
    max-width: 200px;
    max-height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-normal);
}

.client-card:hover .client-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(231, 64, 17, 0.5));
}

.client-card h4 {
    color: var(--white) !important;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.client-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
    margin-bottom: 20px;
}

.client-card a {
    color: var(--white) !important;
}

.project-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.clients-section .project-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.clients-section .project-link:hover {
    color: var(--white) !important;
}

/* Other clients and partners: lighter background than main Clients section */
/* Other Clients Carousel Section - Owl Carousel v1 compatible */
.other-clients-carousel-section {
    background: #3a3a55 !important;
    padding: 1.5rem 0 !important;
    margin-top: 0;
    width: 100%;
}

.clients-carousel-fullwidth {
    width: 100%;
    padding: 0 15px;
    overflow: hidden;
}

.other-clients-carousel-section .other-clients-title {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.other-clients-carousel-section .clients-carousel figure .client-name {
    color: var(--white) !important;
}

.clients-carousel figure .client-name {
    display: inline-block;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.1rem 0.2rem;
}

/* Client carousel items */
.other-clients-carousel-section .clients-carousel .item {
    text-align: center;
    padding: 10px;
}

.other-clients-carousel-section .clients-carousel .item a {
    display: block;
}

.other-clients-carousel-section .clients-carousel .item figure {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.other-clients-carousel-section .clients-carousel .item figure img,
.other-clients-carousel-section .clients-carousel .item figure svg {
    max-width: 140px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .other-clients-carousel-section .clients-carousel .item figure {
        height: 80px;
    }
    
    .other-clients-carousel-section .clients-carousel .item figure img,
    .other-clients-carousel-section .clients-carousel .item figure svg {
        max-width: 110px;
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .other-clients-carousel-section .clients-carousel .item figure {
        height: 60px;
    }
    
    .other-clients-carousel-section .clients-carousel .item figure img,
    .other-clients-carousel-section .clients-carousel .item figure svg {
        max-width: 90px;
        max-height: 55px;
    }
}

/* Modern Buttons */
.btn-modern {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 64, 17, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 64, 17, 0.4);
    color: var(--white);
}

.btn-outline-modern {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-outline-modern:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Services Cards */
.features-icon-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.features-icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--tech-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: all var(--transition-normal);
}

.features-icon-box:hover .features-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Skills Section */
.pie-chart-main {
    text-align: center;
    padding: 20px;
}

.pie-chart {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, var(--bg-light) 0%);
    transition: all var(--transition-slow);
}

.pie-chart .percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form-modern input,
.contact-form-modern textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 10px;
    padding: 15px;
    transition: all var(--transition-fast);
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.contact-form-modern input::placeholder,
.contact-form-modern textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Error/Success Messages */
.email-success,
.error-email-sent {
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
    animation: slideIn 0.3s ease;
}

.email-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-email-sent {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 2rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .project-card,
    .client-card {
        margin-bottom: 20px;
    }
    
    #language-switcher {
        margin-left: 10px;
    }
    
    .language-menu {
        right: -20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading-container {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lds-grid {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-grid div {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: lds-grid 1.2s linear infinite;
}

.lds-grid div:nth-child(1) {
    top: 6px;
    left: 6px;
    animation-delay: 0s;
}

.lds-grid div:nth-child(2) {
    top: 6px;
    left: 26px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(3) {
    top: 6px;
    left: 45px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(4) {
    top: 26px;
    left: 6px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(5) {
    top: 26px;
    left: 26px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(6) {
    top: 26px;
    left: 45px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(7) {
    top: 45px;
    left: 6px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(8) {
    top: 45px;
    left: 26px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(9) {
    top: 45px;
    left: 45px;
    animation-delay: -1.6s;
}

@keyframes lds-grid {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
