:root {
    --primary: #002845;
    --secondary: #FFD700;
    --accent: #E5E5E5;
    --text-dark: #212529;
    --text-light: #F8F9FA;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-light { background-color: #fcfcfc; }
.dark { background-color: var(--primary); color: var(--text-light); }
.dark h1, .dark h2, .dark h3, .dark h4,
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4,
.contact-box h1, .contact-box h2, .contact-box h3, .contact-box h4 {
    color: var(--white);
}
.highlight { color: var(--secondary); }

.section-subtitle {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 40, 69, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    padding: 5px; /* Shine border space */
    border: 2px solid rgba(255, 215, 0, 0.5); /* Gold tint border */
    box-shadow: 
        inset 0 4px 8px rgba(255, 255, 255, 1), /* Top shine */
        inset 0 -4px 8px rgba(0, 0, 0, 0.2),   /* Bottom shadow */
        0 8px 20px rgba(0, 0, 0, 0.3),         /* Outer shadow */
        0 0 15px rgba(255, 215, 0, 0.2);      /* Outer glow */
    transition: var(--transition);
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        inset 0 4px 12px rgba(255, 255, 255, 1),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        0 12px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.4);
}

.footer-logo {
    height: 55px;
    width: 55px;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--secondary);
    text-transform: uppercase;
    display: block;
    margin-top: -3px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1001;
    }

    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1002; }
    .nav-cta { display: none; }
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,40,69,0.7));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 20px 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.badge {
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

/* Stats */
.stats {
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    gap: 30px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid #eee;
}

@media (max-width: 768px) {
    .stat-item { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .stat-item:last-child { border-bottom: none; }
}

.stat-item:last-child { border: none; }

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
}

/* About */
.about-objective {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 35px 0;
}

.objective-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 25px;
    transition: var(--transition);
    border-left: 5px solid var(--secondary);
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.objective-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.objective-item i {
    color: var(--secondary);
    min-width: 32px;
    height: 32px;
    margin-top: 4px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.objective-item h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary);
}

.objective-item p {
    font-size: 1.1rem;
    color: #444;
    margin: 0;
    line-height: 1.7;
}

.about-quote {
    margin-top: 35px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
}

.image-stack {
    position: relative;
}

.img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.image-overlay-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    max-width: 250px;
}

.image-overlay-box h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.service-card i {
    color: var(--secondary);
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
}

/* Founder */
.glass-card {
    background: var(--primary);
    padding: 20px; /* Reduced to allow image to be larger */
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow);
}

.founder-portrait {
    width: 100%;
    max-width: 550px;    /* Increased to allow more horizontal space */
    height: auto;        /* Changed to auto to show the full vertical image */
    aspect-ratio: auto;  /* Remove any forced aspect ratio */
    object-fit: contain; /* Ensure the whole 'name board' is visible */
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #001a2d; /* Match card background for contain */
}

.founder-info h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 5px;
}

.founder-info p {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 500;
}

.founder-skills {
    margin-top: 25px;
}

.founder-skills li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.founder-skills i {
    color: var(--secondary);
}

/* Video Feature */
.video-feature {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.feature-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 69, 0.6);
    display: flex;
    align-items: center;
    z-index: -1;
}

.video-overlay h2 { font-size: 3rem; margin-bottom: 20px; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* Infrastructure Slideshow */
.slideshow-container {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--primary);
    aspect-ratio: 16 / 10;
}

.slide {
    display: none;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fade {
    animation-name: slideFade;
    animation-duration: 1s;
}

@keyframes slideFade {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Facilities */
.facilities-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.machine-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.machine-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.5;
}

.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.facility-feat {
    background: var(--primary);
    color: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.facility-feat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,40,69,0.2);
    border-color: var(--secondary);
}

.facility-feat i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.facility-feat span {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.stat-card {
    background: var(--secondary);
    color: var(--primary);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    grid-column: span 2;
    font-weight: 700;
}

/* Contact */
.contact-box {
    background: var(--primary);
    padding: 60px;
    border-radius: 30px;
    color: var(--white);
}

.info-list {
    margin-top: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--secondary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #001a2d;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo h1 { color: var(--white); }
.footer-links h4, .footer-social h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .about-image { order: -1; }
    .founder-image { order: -1; }
    .facilities-layout { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .hero-content { text-align: center; padding-top: 50px; }
    .hero-btns { justify-content: center; display: flex; gap: 10px; flex-wrap: wrap; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-box { padding: 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .logo { justify-content: center; }
}

/* Developer Credit Styles */
.developer-credit {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

 .highlight-credit {
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
}

.highlight-credit:hover {
    color: var(--white);
    text-decoration: underline;
}

/* File Upload Styles */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
    font-weight: 500;
}

.file-upload-label:hover {
    background: #e9ecef;
    border-color: var(--secondary);
    color: var(--primary);
}

.file-upload-label i {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

.file-chosen-text {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
    padding-left: 5px;
}
