/* Save this as styles.css in the same folder as your HTML file */
/* Main styles for Iulian PP website */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Ensures no content spills outside */
}

/* Remove the top banner styling as it's no longer needed */

/* Header styling with enhanced colors */
header {
    text-align: center;
    margin-bottom: 30px;
    background-color: rgba(6, 110, 213, 0.85);;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

header h1 {
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: clamp(1.2rem, 4vw, 2rem); /* Reduced from clamp(1.5rem, 5vw, 2.5rem) */
}

header p {
    margin: 20px 0 0;
    color: #e0f0ff;
    font-style: normal; /* Changed from italic to normal */
    font-weight: bold; /* Added bold */
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

/* Special styling for emphasized words */
header p .emphasis {
    color: #e0f0ff; /* Gold color for emphasis */
    font-weight: 800; /* Extra bold */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Navigation styling */
nav {
    text-align: center;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #19376D;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3366cc;
    text-decoration: underline;
}

/* Cards carousel styling - improved for responsiveness */
.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 380px;
    margin-bottom: 40px;
    perspective: 1000px;
    overflow: visible;
    width: 100%;
}

.cards a {
    position: absolute;
    text-decoration: none;
    transition: all 0.5s ease;
    z-index: 1;
    transform-origin: center;
    opacity: 0.6;
    width: 140px;
}

.cards a.center {
    z-index: 3;
    transform: scale(1.5);
    opacity: 1;
}

.cards a.left, .cards a.right {
    z-index: 2;
    opacity: 0.8;
}

.cards a.far-left, .cards a.far-right {
    z-index: 1;
    opacity: 0.4;
}

/* Position cards in the carousel */
.cards a.center {
    transform: translateX(0) scale(1.5);
}

.cards a.left {
    transform: translateX(-200px) scale(0.8);
}

.cards a.right {
    transform: translateX(200px) scale(0.8);
}

.cards a.far-left {
    transform: translateX(-350px) scale(0.6);
}

.cards a.far-right {
    transform: translateX(350px) scale(0.6);
}

.card {
    width: 100%;
    height: 200px;
    background-color: rgba(225, 236, 238, 0.85);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(25, 55, 109, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-nav:hover {
    background-color: rgba(25, 55, 109, 1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Improved image container for consistent sizing */
.card-image-container {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Text positioning at bottom */
.card p {
    margin: 0;
    font-weight: bold;
    color: #19376D;
    font-size: 0.9rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center card highlight effect */
.center .card {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    border: 2px solid gold;
}

/* Quote banner styling */
.quote-banner {
    background-color: rgba(25, 55, 109, 0.85);
    color: #ffffff;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-style: italic;
}

/* Footer styling with flexbox layout for logo integration */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    background-color: rgba(6, 110, 213, 0.85);
    border-radius: 10px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
    color: #ffffff;
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
}

.company-name {
    color: #ffffff;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
    white-space: nowrap;
}

footer a:hover {
    color: #ffd700; /* Gold color on hover for better interaction */
    text-decoration: underline;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px; /* Ensure space for logo even if image fails to load */
}

.logo-left {
    margin-right: 10px;
}

.logo-right {
    margin-left: 10px;
}

.company-logo {
    height: 100px; /* Increased from 52px - now you can control footer logo sizes */
    width: auto;
    max-width: 200px; /* Increased proportionally */
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.company-logo:hover {
    opacity: 0.8;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 900px) {
    .cards a.left {
        transform: translateX(-150px) scale(0.8);
    }
    
    .cards a.right {
        transform: translateX(150px) scale(0.8);
    }
    
    .cards a.far-left {
        transform: translateX(-250px) scale(0.6);
    }
    
    .cards a.far-right {
        transform: translateX(250px) scale(0.6);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header, footer {
        padding: 15px 10px;
    }
    
    .cards {
        height: 320px;
    }
    
    .cards a.center {
        transform: translateX(0) scale(1.3);
    }
    
    .cards a.left {
        transform: translateX(-120px) scale(0.7);
    }
    
    .cards a.right {
        transform: translateX(120px) scale(0.7);
    }
    
    .cards a.far-left {
        transform: translateX(-200px) scale(0.5);
    }
    
    .cards a.far-right {
        transform: translateX(200px) scale(0.5);
    }
    
    /* Footer responsive adjustments */
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-content {
        gap: 10px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-left, .logo-right {
        margin: 0;
    }
    
    .logo-right {
        display: none; /* Hide one logo on mobile to avoid duplication */
    }
    
    .company-logo {
        height: 60px; /* Increased from 39px for mobile */
    }
    
    footer a {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header, footer {
        padding: 15px 5px;
    }
    
    .cards {
        height: 280px;
    }
    
    .cards a.center {
        transform: translateX(0) scale(1.2);
    }
    
    .cards a.left {
        transform: translateX(-90px) scale(0.7);
    }
    
    .cards a.right {
        transform: translateX(90px) scale(0.7);
    }
    
    .cards a.far-left, .cards a.far-right {
        display: none; /* Hide far cards on very small screens */
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* Footer adjustments for very small screens */
    footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px 5px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 8px;
    }
    
    footer a {
        padding: 5px 0;
        font-size: 0.85rem;
    }
    
    .company-logo {
        height: 50px; /* Increased from 33px for small mobile */
    }
    
    .logo-right {
        display: none; /* Hide duplicate logo on very small screens */
    }
}
.bottom-banner {
    background-color: #003366; /* Adjust to match top banner */
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

.bottom-banner .banner-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.bottom-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.bottom-banner a:hover {
    color: #ffcc00; /* Optional hover effect */
}
