/* BASACO Redesigned Stylesheet - Industrial Dark Theme
  - Primary: #212529 (Charcoal Black)
  - Secondary: #493835 (Dark Brown)
  - Accent: #c94c4c (Deep Reddish-Brown)
  - Text: #e9ecef (Light Gray)
*/

/* --- Google Fonts & Font Awesome --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@600;700&display=swap');

/* --- Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; line-height: 1.8; color: #e9ecef; background-color: #212529; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
header { background: #212529; padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.2); transition: background 0.3s ease, box-shadow 0.3s ease; border-bottom: 1px solid #343a40; }
header.scrolled { background: rgba(33, 37, 41, 0.9); backdrop-filter: blur(10px); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* This creates space between the icon and the text */
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}
.logo img {
    height: 60px; /* Adjusted for better size */
}
.logo span {
    color: #e9ecef; /* This is for the Dark Theme */
    /* Use this color instead if you chose the Blue Theme: */
    /* color: #0d2a4c; */
}
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { color: #e9ecef; text-decoration: none; transition: color 0.3s ease; position: relative; font-weight: 700; }
.nav-links a:hover { color: #c94c4c; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: #c94c4c; transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: #e9ecef; margin: 3px 0; transition: 0.3s; }

/* --- Hero Section (Home Page) --- */
.hero { background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('../images/hero1.jpg') no-repeat center center/cover; height: 100vh; display: flex; align-items: center; text-align: center; color: white; }
.hero-content h1 { font-family: 'Poppins', sans-serif; font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-button { display: inline-block; background: #c94c4c; color: white; padding: 15px 35px; text-decoration: none; border-radius: 50px; font-weight: bold; transition: transform 0.3s ease, background-color 0.3s ease; font-family: 'Poppins', sans-serif; }
.cta-button:hover { transform: translateY(-3px); background-color: #b84444; }

/* --- General Section Styling --- */
section { padding: 100px 0; }
body > section:first-of-type:not(.hero) { padding-top: 160px; }
.section-title { text-align: center; font-family: 'Poppins', sans-serif; font-size: 2.8rem; margin-bottom: 4rem; color: #e9ecef; position: relative; }
.section-title::after { content: ''; width: 80px; height: 4px; background: #c94c4c; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); border-radius: 2px; }

/* --- About & Products Section --- */
.about, .products { background: #2c2f33; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image img { width: 100%; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.about-text h3 { font-family: 'Poppins', sans-serif; font-size: 2rem; color: #e9ecef; margin-bottom: 1.5rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.stat-card { background: #212529; padding: 2rem; border-radius: 15px; text-align: center; border: 1px solid #343a40; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 700; color: #e9ecef; margin-bottom: 0.5rem; }

/* --- Services Section --- */
.services, .contact { background-color: #212529; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: #2c2f33; padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; border-top: 4px solid #c94c4c; text-align: center; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.service-icon { font-size: 3rem; color: #c94c4c; margin-bottom: 1.5rem; }
.service-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: #e9ecef; margin-bottom: 1rem; }
.service-card p { color: #adb5bd; }

/* --- Products Section --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.product-card { background: #212529; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; border: 1px solid #343a40; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.25); }
.product-image { height: 220px; background-color: #343a40; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-content h3 { font-family: 'Poppins', sans-serif; color: #e9ecef; margin-bottom: 1rem; }
.product-content p { flex-grow: 1; margin-bottom: 1.5rem; color: #adb5bd; }
.learn-more-btn { display: inline-block; background: #c94c4c; color: white; padding: 10px 20px; text-decoration: none; border-radius: 50px; font-weight: bold; transition: background-color 0.3s ease; text-align: center; margin-top: auto; }
.learn-more-btn:hover { background: #b84444; }

/* --- Contact Section --- */
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: flex-start; }
.contact-info h3 { font-family: 'Poppins', sans-serif; font-size: 1.8rem; color: #e9ecef; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item i { font-size: 1.5rem; color: #c94c4c; margin-right: 1.5rem; margin-top: 5px; width: 25px; }
.contact-form { background: #2c2f33; padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #adb5bd; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #495057; border-radius: 8px; background: #343a40; color: #e9ecef; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #c94c4c; }
.form-group textarea { height: 120px; resize: vertical; }
.submit-btn { background: #c94c4c; color: white; padding: 12px 30px; border: none; border-radius: 50px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: background-color 0.3s ease, transform 0.3s ease; width: 100%; }
.submit-btn:hover { background-color: #b84444; transform: translateY(-2px); }
.map-container { margin-top: 2rem; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.map-container iframe { border: 0; width: 100%; height: 350px; filter: invert(90%) hue-rotate(180deg); }

/* --- Footer --- */
footer { background: #1c1f23; color: #e9ecef; padding: 4rem 0 2rem; border-top: 1px solid #343a40; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-section h3 { font-family: 'Poppins', sans-serif; margin-bottom: 1.5rem; color: #c94c4c; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.8rem; }
.footer-section ul li a { color: #adb5bd; text-decoration: none; transition: color 0.3s ease; }
.footer-section ul li a:hover { color: #c94c4c; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #343a40; color: #6c757d; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-content, .contact-content { grid-template-columns: 1fr; }
    .about-image { margin-top: 3rem; order: 2; }
    .about-text { order: 1; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #2c2f33; flex-direction: column; padding: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-top: 1px solid #343a40; }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; margin: 0.5rem 0; }
    .nav-links a { color: #e9ecef; }
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .about-stats { grid-template-columns: 1fr; }
}



/* --- Leadership Section --- */
/* --- Leadership Section (Interactive Cards - Final Version) --- */
.leadership {
    background-color: #212529; /* For Dark Theme */
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    justify-items: center; /* Center cards in the grid */
}

.leader-card {
    width: 300px; /* Fixed width for consistency */
    height: 450px; /* Matches the height from your example */
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 20px;
    background-color: rgba(70,70,70,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: height 0.7s ease; /* Smooth height transition */
}

.leader-card:hover {
    height: 550px; /* Expanded height on hover, from your example */
}

.leader-card .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.7s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slide 1: The Image */
.leader-card .slide1 {
    transform: scale(1);
    transform-origin: center center;
}

.leader-card:hover .slide1 {
    /* Shrink and move image up on hover */
    transform: scale(0.75) translateY(-145px);
}

.leader-card .slide1 img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5); /* White border like your example */
}

/* Slide 2: The Information */
.leader-card .slide2 {
    /* Start hidden below the card */
    transform: translateY(450px);
}

.leader-card:hover .slide2 {
    /* Slide info into view on hover */
    transform: translateY(140px);
}

.leader-info {
    text-align: center;
    color: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between elements */
}

.leader-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; /* Larger name */
    font-weight: 700;
}

.leader-title {
    font-size: 1rem;
    color: #b3b3b3; /* Subdued title color */
    margin-bottom: 1rem;
}

.leader-cta {
    display: inline-block;
    background-color: #c94c4c; /* Matches your site's accent color */
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.leader-cta:hover {
    background-color: #b84444;
}




/* --- Profile Page Specific Styles ----------------------------------- */
/* --- Profile Page Specific Styles (Vanta.js + Glossy Effect Update) --- */
/* --- Profile Page Specific Styles (Vanta.js + Glossy Effect Update) --- */

/* This targets the Vanta.js canvas and places it as a fixed background */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sits behind all other content */
}

.profile-page-container {
    padding-top: 160px; /* Space for fixed header */
    padding-bottom: 100px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: #adb5bd;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, background-color 0.3s ease;
    background: rgba(44, 47, 51, 0.5); /* Glassmorphism background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    color: #fff;
    background-color: rgba(201, 76, 76, 0.3); /* Accent color on hover */
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar width and main content */
    gap: 3rem;
}

/* --- Glossy Glassmorphism Card Styles --- */
.profile-sidebar-card,
.profile-main-section {
    background: linear-gradient(135deg, rgba(44, 47, 51, 0.6), rgba(28, 31, 35, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.profile-sidebar-card::before,
.profile-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s;
}

.profile-sidebar-card:hover::before,
.profile-main-section:hover::before {
    left: 120%;
}

.profile-main-content .profile-main-section {
    animation-delay: 0.2s;
}

.profile-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.profile-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    color: #e9ecef;
}

.profile-title {
    text-align: center;
    color: #c94c4c;
    font-weight: 700;
    margin-top: 0.25rem;
}

.profile-sidebar-card h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #e9ecef;
}

.profile-social-links .social-link {
    display: block;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.profile-social-links .social-link:hover {
    color: #c94c4c;
}

.profile-social-links .social-link i {
    margin-right: 10px;
    width: 20px;
}

.profile-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.profile-main-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #adb5bd;
}

.profile-skills-list, .profile-education-list {
    list-style-position: inside;
    padding-left: 0;
    color: #adb5bd;
}

.profile-skills-list li, .profile-education-list li {
    margin-bottom: 0.75rem;
}

/* --- Slideshow Styles (FINAL FIX) --- */
/* --- Slideshow Styles (FULLY RESPONSIVE FIX) --- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9; /* Forces a consistent widescreen shape */
    background-color: #1c1f23; /* Dark background for any empty space */
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider .slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0; /* Prevents slides from shrinking */
    position: relative;
}

.slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fit without stretching */
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}


/* --- Responsive Adjustments for Profile Page --- */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

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



/* --- Profile Page Specific Styles (Vanta.js + Glossy Effect Update) --- */

/* This targets the Vanta.js canvas and places it as a fixed background */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sits behind all other content */
}

.profile-page-container {
    padding-top: 160px; /* Space for fixed header */
    padding-bottom: 100px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: #adb5bd;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, background-color 0.3s ease;
    background: rgba(44, 47, 51, 0.5); /* Glassmorphism background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    color: #fff;
    background-color: rgba(201, 76, 76, 0.3); /* Accent color on hover */
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar width and main content */
    gap: 3rem;
}

/* --- Glossy Glassmorphism Card Styles --- */
.profile-sidebar-card,
.profile-main-section {
    background: linear-gradient(135deg, rgba(44, 47, 51, 0.6), rgba(28, 31, 35, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.profile-sidebar-card::before,
.profile-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s;
}

.profile-sidebar-card:hover::before,
.profile-main-section:hover::before {
    left: 120%;
}

.profile-main-content .profile-main-section {
    animation-delay: 0.2s;
}

.profile-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.profile-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    color: #e9ecef;
}

.profile-title {
    text-align: center;
    color: #c94c4c;
    font-weight: 700;
    margin-top: 0.25rem;
}

.profile-sidebar-card h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #e9ecef;
}

.profile-social-links .social-link {
    display: block;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.profile-social-links .social-link:hover {
    color: #c94c4c;
}

.profile-social-links .social-link i {
    margin-right: 10px;
    width: 20px;
}

.profile-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.profile-main-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #adb5bd;
    text-align: justify; /* This will align the text evenly on both sides */
}

.profile-skills-list, .profile-education-list {
    list-style-position: inside;
    padding-left: 0;
    color: #adb5bd;
}

.profile-skills-list li, .profile-education-list li {
    margin-bottom: 0.75rem;
}

/* --- Slideshow Styles (FINAL FIX) --- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9; /* Forces a consistent widescreen shape */
    background-color: #1c1f23; /* Dark background for any empty space */
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider .slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0; /* This is a key fix: prevents slides from shrinking */
    position: relative;
}

.slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the image to fit without stretching */
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}


/* --- Responsive Adjustments for Profile Page --- */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

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