* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 1000;
    padding: 20px 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 40px; /* Default size for desktop */
    width: auto;
    display: block;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #d1d1d6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative; /* Allows absolute positioning of video */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden; /* Prevents video overflow */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scales video to fill area */
    z-index: -1; /* Places video behind content */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); /* Optional overlay */
}

.hero .hero-logo {
    height: 133px;
    width: auto;
    margin-bottom: 40px;
    opacity: 0; /* Start hidden */
    animation: fadeIn 2.5s ease-out forwards; /* Fade-in effect */
    }

/* Hero Logo Animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start invisible */
    }
    to {
        opacity: 1; /* Fully visible */
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero .typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #fff;
    animation: typing 2s steps(25, end) forwards, blink 0.75s infinite;
}

.hero .typewriter span {
    color: #2997ff;
}

.hero p {
    font-size: 1.5rem;
    color: #d1d1d6;
    max-width: 800px;
}

/* Typewriter Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

/* About Section */
.about-section {
    height: 100vh; /* Full-screen height */
    width: 100vw; /* Full-screen width */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 80px 20px; /* Adjusted for fixed header */
}

.about-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); /* Overlay for text readability */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.3);
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 0.5rem;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.about-content p {
    font-size: 1.2rem;
    color: #d1d1d6;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word; /* Improves spacing distribution */
    hyphens: auto;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

/* Mobile Styles for About Section */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px; /* Reduced padding for mobile */
        text-align: center;
        height: 100vh; /* Maintain full-screen height */
        width: 100vw; /* Maintain full-screen width */
    }

    .about-content {
        padding: 1.5rem;
        box-shadow: 0 0 15px rgba(41, 151, 255, 0.2);
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-content h3 {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 1rem;
        text-align: center;
    }
}

/* Technology Sections */
.tech-section {
    padding: 8rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tech-section:nth-child(even) {
    flex-direction: row-reverse;
}

.tech-content {
    flex: 1;
}

.tech-content h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.tech-content p {
    font-size: 1.2rem;
    color: #d1d1d6;
    max-width: 500px;
    text-align: justify;
    text-justify: inter-word; /* Improves spacing distribution */
    hyphens: auto
}

.tech-image {
    flex: 1;
}

.tech-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 0 200px rgba(213, 6, 123, 0.5), 
        0 0 300px rgba(213, 13, 176, 0.4); 
}

#drone {
    box-shadow: 
        0 0 200px rgba(166, 190, 228, 0.5), 
        0 0 300px rgba(31, 31, 31, 0.4); 
}

#carbon {
    box-shadow: 
        0 0 200px rgba(227, 22, 22, 0.5), 
        0 0 300px rgba(80, 114, 238, 0.4); 
}

#ai {
    box-shadow: 
        0 0 200px rgba(42, 87, 235, 0.5), 
        0 0 300px rgba(250, 246, 10, 0.4); 
}

#desal{
    box-shadow: 
        0 0 200px rgba(27, 103, 224, 0.5), 
        0 0 300px rgba(31, 130, 242, 0.4); 
}

#solar{
    box-shadow: 
        0 0 200px rgba(27, 103, 224, 0.5), 
        0 0 300px rgba(75, 36, 126, 0.4); 
}

#mechanical{
    box-shadow: 
        0 0 200px rgba(244, 108, 17, 0.5), 
        0 0 300px rgba(44, 87, 244, 0.4); 
}

#iot{
    box-shadow: 
        0 0 200px rgba(4, 151, 177, 0.5), 
        0 0 300px rgba(163, 215, 43, 0.4); 
}

#web3{
    box-shadow: 
        0 0 200px rgba(8, 100, 236, 0.5), 
        0 0 300px rgba(8, 214, 250, 0.4); 
}

#vr{
    box-shadow: 
        0 0 200px rgba(168, 12, 230, 0.5), 
        0 0 300px rgba(34, 13, 222, 0.4); 
}

#biotech{
    box-shadow: 
        0 0 200px rgba(223, 7, 212, 0.5), 
        0 0 300px rgba(184, 7, 232, 0.4); 
}

#robotics{
    box-shadow: 
        0 0 200px rgba(229, 226, 155, 0.5), 
        0 0 300px rgba(212, 235, 7, 0.4); 
}


/* Footer */
footer {
    background: #1d1d1f;
    color: #d1d1d6;
    padding: 6rem 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.5fr; /* Logo column gets half the width of others */
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.footer-brand .copyright {
    font-size: 0.9rem;
    color: #a1a1a6;
}

.footer-contact h4, .footer-social h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-contact ul, .footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-contact li, .footer-social li {
    margin: 0.8rem 0;
    font-size: 1rem;
}

.footer-contact span {
    font-weight: 600;
    color: #fff;
    margin-right: 8px;
}

.footer-contact a, .footer-social a {
    color: #d1d1d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover, .footer-social a:hover {
    color: #2997ff;
}

.footer-logo-column {
    display: flex;
    justify-content: left; /* Right-align logo */
    align-items: center; /* Vertically center */
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 24px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stack all columns equally on mobile */
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo-column {
        justify-content: center;
    }

    .footer-logo {
        height: 80px;
    }

    .footer-contact li, .footer-social li {
        margin: 1rem 0;
    }

    .footer-contact span {
        display: block;
        margin: 0 0 0.3rem 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .hero-logo {
        height: 90px;
    }

    .logo img {
        height: 30px; /* Adjusted for mobile */
    }
    .tech-section {
        flex-direction: column;
        text-align: center;
        padding: 4rem 20px;
    }

    .tech-section:nth-child(even) {
        flex-direction: column;
    }

    .tech-content h2 {
        font-size: 2rem;
    }

    .tech-content p {
        font-size: 1rem;
    }

/* Responsive Navbar with Toggle */

    .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
    }

    .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    }

    /* --- Mobile Nav --- */
    @media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        padding-top: 15px;
        width: 200px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        border-radius: 0 0 10px 10px;
    }

    .nav-links.open {
        height: 160px; /* enough to show links */
    }

    .nav-links a {
        color: #fff;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }
    }

    /* --- Animate hamburger into an X --- */
    .hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    }
    .hamburger.toggle span:nth-child(2) {
    opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    }

}