/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Prevent horizontal overflow */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.logo a:hover .logo-img {
    transform: scale(1.1);
}

.logo a:active .logo-img {
    transform: scale(0.95);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FF9933;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF9933;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-signin {
    background: transparent;
    color: #fff;
    border: 2px solid #FF9933;
}

.btn-signin:hover {
    background: #FF9933;
    color: #fff;
    transform: translateY(-2px);
}

.btn-signup {
    background: #FF9933;
    color: #fff;
}

.btn-signup:hover {
    background: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section - Reduced gap */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Minimized gap between navbar and hero content */
    padding-bottom: 4rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #001f3f 100%);
    z-index: 2;
    overflow: hidden;
}

.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 153, 51, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 153, 51, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.network-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.network-svg {
    width: 100%;
    height: 100%;
}

.network-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 8s ease-in-out infinite;
}

@keyframes drawPath {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FF9933;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; }
.particle:nth-child(11) { left: 25%; animation-delay: 5s; }
.particle:nth-child(12) { left: 35%; animation-delay: 2s; }
.particle:nth-child(13) { left: 45%; animation-delay: 4s; }
.particle:nth-child(14) { left: 55%; animation-delay: 1s; }
.particle:nth-child(15) { left: 65%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

.circuit-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FF9933;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF9933;
    animation: pulse 2s infinite ease-in-out;
}

.node:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.node:nth-child(2) { top: 40%; left: 30%; animation-delay: 0.5s; }
.node:nth-child(3) { top: 60%; left: 50%; animation-delay: 1s; }
.node:nth-child(4) { top: 30%; left: 70%; animation-delay: 1.5s; }
.node:nth-child(5) { top: 70%; left: 25%; animation-delay: 0.3s; }
.node:nth-child(6) { top: 50%; left: 80%; animation-delay: 0.8s; }
.node:nth-child(7) { top: 10%; left: 60%; animation-delay: 1.2s; }
.node:nth-child(8) { top: 80%; left: 65%; animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.coding-stream {
    position: absolute;
    width: 100%;
    height: 100%;
}

.code-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF9933, transparent);
    animation: codeFlow 10s infinite linear;
}

.code-line:nth-child(1) { top: 25%; width: 200px; animation-delay: 0s; }
.code-line:nth-child(2) { top: 45%; width: 300px; animation-delay: 2s; }
.code-line:nth-child(3) { top: 65%; width: 250px; animation-delay: 4s; }
.code-line:nth-child(4) { top: 35%; width: 180px; animation-delay: 1s; }
.code-line:nth-child(5) { top: 55%; width: 220px; animation-delay: 3s; }

@keyframes codeFlow {
    0% { left: -300px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #FF9933;
    top: -150px;
    right: -150px;
    animation: rotate 20s infinite linear;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #fff;
    bottom: -100px;
    left: -100px;
    animation: rotate 15s infinite linear reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #FF9933;
    top: 50%;
    right: 10%;
    animation: rotate 25s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-top: 0; /* No extra padding to reduce gap */
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 153, 51, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 153, 51, 0.3);
    margin-bottom: 1rem; /* Further reduced margin to minimize gap */
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF9933;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    color: #FF9933;
    background: linear-gradient(135deg, #FF9933, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #FF9933;
    color: #fff;
}

.btn-primary:hover {
    background: #ff8800;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 153, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #001f3f;
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF9933;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
    width: 100%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: #FF9933;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 1rem;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #ff8800);
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    margin-top: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text .lead {
    font-size: 1.2rem;
    color: #001f3f;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #001f3f;
}

.feature-item i {
    color: #FF9933;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #fff;
    width: 100%;
    overflow: hidden;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #ff8800);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .service-image-wrapper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #001f3f;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF9933;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: #ff8800;
}

/* Internship Section */
.internship {
    padding: 6rem 0;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: #fff;
    width: 100%;
    overflow: hidden;
}

.internship-content {
    margin-top: 3rem;
}

.internship-grid {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.internship-text .lead {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.internship-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.internship-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.internship-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 153, 51, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.internship-icon i {
    font-size: 2rem;
    color: #FF9933;
}

.internship-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.internship-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.internship-text p:last-of-type {
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8f9fa;
    width: 100%;
    overflow: hidden;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF9933, #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.info-content h4 {
    color: #001f3f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-content p {
    color: #666;
    line-height: 1.8;
}

.contact-form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #001f3f;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    word-wrap: break-word;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.9rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.auth-form .btn-block {
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: #001f3f;
    color: #fff;
    padding: 4rem 0 2rem;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-section h3 {
    color: #FF9933;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF9933;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FF9933;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.modal-header h2 {
    color: #001f3f;
    font-size: 1.8rem;
    text-align: center;
    margin: 0;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-close:hover {
    color: #001f3f;
    transform: translateY(-50%) rotate(180deg);
    background: rgba(0, 31, 63, 0.1);
}

.auth-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.auth-form .form-group {
    width: 100%;
    min-width: 0;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    width: 100%;
    word-wrap: break-word;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: #FF9933;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.auth-divider span {
    background: #fff;
    padding: 0 1rem;
    color: #666;
    position: relative;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    color: #001f3f;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.btn-social:hover {
    border-color: #FF9933;
    background: #fff;
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    width: 100%;
    word-wrap: break-word;
    margin-top: 0.5rem;
}

.auth-switch a {
    color: #FF9933;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.password-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
    width: 100%;
    word-wrap: break-word;
}

.forgot-password {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #FF9933;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.forgot-password:hover {
    color: #ff8800;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet and Below (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .contact-wrapper {
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (max-width: 968px) */
@media (max-width: 968px) {
    /* Container */
    .container {
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 31, 63, 0.98);
        width: 100%;
        max-width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Section */
    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* About Section */
    .about {
        padding: 4rem 0;
        width: 100%;
        overflow: hidden;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
    }

    .about-features {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .about-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Services Section */
    .services {
        padding: 4rem 0;
        width: 100%;
        overflow: hidden;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 100%;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service-image-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* Internship Section */
    .internship {
        padding: 4rem 0;
        width: 100%;
        overflow: hidden;
    }

    .internship-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 100%;
    }

    .internship-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Contact Section */
    .contact {
        padding: 4rem 0;
        width: 100%;
        overflow: hidden;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
        width: 100%;
        overflow: hidden;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
    }

    /* Modal */
    .modal-content {
        max-width: 90%;
        width: 90%;
        padding: 0;
        box-sizing: border-box;
    }

    .modal-header {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .auth-form {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile Landscape and Below (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    .hero {
        width: 100%;
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .internship-cards {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-grid,
    .contact-wrapper,
    .footer-content {
        width: 100%;
    }
}

/* Mobile Portrait (max-width: 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        padding-top: 120px;
        padding-bottom: 3rem;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Sections */
    .about,
    .services,
    .internship,
    .contact {
        padding: 3rem 0;
        width: 100%;
        overflow: hidden;
    }

    .about-grid,
    .services-grid,
    .internship-cards,
    .contact-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* About Section */
    .about-text .lead {
        font-size: 1.1rem;
    }

    /* Services Section */
    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Contact Section */
    .contact-form-wrapper {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form {
        width: 100%;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .info-icon {
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        box-sizing: border-box;
    }

    .modal-header {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
        text-align: center;
        flex: 1;
    }

    .modal-close {
        right: 1.5rem;
    }

    .modal-close:hover {
        transform: translateY(-50%) rotate(180deg);
    }

    .auth-form {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Navigation */
    .logo-img {
        height: 35px;
    }

    .navbar {
        padding: 1rem 0;
    }

    /* Hero Section */
    .hero {
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
        white-space: nowrap;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Sections */
    .about,
    .services,
    .internship,
    .contact {
        width: 100%;
        overflow: hidden;
    }

    .section-header h2 {
        font-size: 1.6rem;
        word-wrap: break-word;
    }

    .section-tag {
        font-size: 0.8rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
    }

    .service-card h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    /* Contact Form */
    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        box-sizing: border-box;
    }

    /* Footer */
    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
        box-sizing: border-box;
    }

    .modal-header {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .modal-header h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
        text-align: center;
        flex: 1;
    }

    .modal-close {
        right: 1.25rem;
    }

    .modal-close:hover {
        transform: translateY(-50%) rotate(180deg);
    }

    .checkbox-label {
        align-items: center;
        gap: 0.6rem;
    }

    .checkbox-label input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .auth-form {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1rem;
    }

    .auth-form .form-group {
        width: 100%;
        max-width: 100%;
    }

    .auth-form input,
    .auth-form select {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        box-sizing: border-box;
    }

    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
        align-items: center;
        gap: 0.6rem;
    }

    .checkbox-label input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .btn-social {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .forgot-password {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
    }

    /* Modal */
    .modal-content {
        width: 98%;
        max-width: 98%;
    }

    .modal-header {
        padding: 1rem;
        position: relative;
    }

    .modal-header h2 {
        font-size: 1.2rem;
        text-align: center;
        flex: 1;
    }

    .modal-close {
        right: 1rem;
        font-size: 1.3rem;
    }

    .modal-close:hover {
        transform: translateY(-50%) rotate(180deg);
    }

    .checkbox-label {
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .checkbox-label input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .auth-form {
        padding: 1rem;
        gap: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    .btn-social {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .auth-switch {
        font-size: 0.85rem;
    }

    .hero {
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        padding: 0 5px;
    }

    .hero-title {
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .section-header h2 {
        font-size: 1.4rem;
        word-wrap: break-word;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .about,
    .services,
    .internship,
    .contact,
    .footer {
        width: 100%;
        overflow: hidden;
    }

    .service-card,
    .internship-card {
        padding: 1rem;
    }

    .contact-form-wrapper {
        padding: 1rem;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot-toggle {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FF9933, #ff8800);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.4);
    z-index: 9998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 153, 51, 0.6);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-container.active {
    display: flex;
}

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

.chatbot-header {
    background: linear-gradient(135deg, #001f3f, #003366);
    color: #fff;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-header-info i {
    font-size: 1.5rem;
    color: #FF9933;
}

.chatbot-header-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-header-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-message {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.chatbot-message.user-message {
    justify-content: flex-end;
}

.chatbot-message.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 0.875rem 1.25rem;
    border-radius: 18px;
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, #FF9933, #ff8800);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chatbot-input-container {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chatbot-input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input-container input:focus {
    border-color: #FF9933;
}

.chatbot-send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF9933, #ff8800);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Chatbot */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        left: 15px;
        font-size: 28px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }

    .chatbot-container {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 80px;
        right: 15px;
        border-radius: 15px;
    }
}
