/*
    TechD'Elite - Master Dark Theme
    Version: 3.5 (Hero Dimensions Fixed)
    Cyberpunk Aesthetic with Neon Accents
*/

:root {
    /* --- CORE PALETTE (Deep Tech / Cyberpunk) --- */
    --bg-dark: #0f0518;       /* Deepest Black-Purple */
    --bg-panel: #1a0b2e;      /* Section Background */
    --bg-card: rgba(255, 255, 255, 0.05);
    
    --primary: #6f42c1;       /* Deep Violet */
    --accent-cyan: #00f0ff;   /* Neon Cyan */
    --accent-pink: #ff007f;   /* Neon Pink */
    
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* Accessibility: Focus Indicators for Keyboard Navigation */
*:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

p {
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.7;
}

a { 
    text-decoration: none; 
    transition: 0.3s; 
}

a:hover { 
    text-decoration: none; 
    color: var(--accent-cyan); 
}

/* --- UTILITIES --- */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    color: var(--accent-cyan);
}

/* --- NAVIGATION --- */
.header {
    background: rgba(15, 5, 24, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    top: 0;
}

.navbar {
    padding: 8px 0 !important;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    height: auto;
    display: flex;
    align-items: center;
    margin-right: 20px;
    overflow: hidden;
    padding: 3px 0;
    min-height: 75px;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: brightness(0) invert(1);
}

.navbar-toggler {
    border: none;
    outline: none;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    order: -1;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Custom hamburger menu replacement */
.navbar-toggler .fa-bars {
    font-size: 24px;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
    display: block;
    line-height: 1;
}

.navbar-toggler:hover .fa-bars {
    transform: scale(1.15);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.navbar-toggler:active .fa-bars {
    transform: scale(0.95);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 15px;
    text-transform: uppercase;
    margin: 0 10px;
    transition: 0.3s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.navbar-nav {
    gap: 15px;
}

.navbar-toggler {
    border-color: var(--accent-cyan);
    padding: 0.25rem 0.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 240, 255, 0.25);
    outline: none !important;
}

.navbar-toggler i {
    color: var(--accent-cyan) !important;
    font-size: 1.5rem !important;
    display: inline-block !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    line-height: 1.5rem !important;
    vertical-align: -0.125em !important;
}

/* Hide Bootstrap's default navbar-toggler-icon */
.navbar-toggler .navbar-toggler-icon {
    display: none !important;
}

.nav-button {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s all;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.nav-button:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* --- HERO SECTION (Index) --- */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    overflow: hidden;
}

/* Dark Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 5, 24, 0.7) 0%, rgba(26, 11, 46, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-card {
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(111, 66, 193, 0.2);
    position: relative;
    
    /* Dimensions Fix: Prevents stretching */
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

/* Neon Glow Effect on Card Border */
.hero-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--accent-cyan), transparent, var(--accent-pink));
    z-index: -1;
    border-radius: 25px;
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* --- GLOBAL SECTIONS (Services, Features) --- */
.section-padding {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Service Cards (Flexbox Layout for 7 Items) */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.tech-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.4s all cubic-bezier(0.215, 0.61, 0.355, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    will-change: transform, box-shadow, border-color;
    transform: translateZ(0);
    backface-visibility: hidden;
    
    /* Flex Sizing */
    flex: 0 1 280px; 
    max-width: 350px;
    width: 100%;
    min-height: 280px;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: 0.6s;
    will-change: top;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.tech-card:hover::before {
    top: 100%;
}

.card-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-cyan);
    transition: 0.4s all;
    border: 1px solid rgba(0, 240, 255, 0.2);
    flex-shrink: 0;
    will-change: background, color, box-shadow, border-color;
    transform: translateZ(0);
}

.tech-card:hover .card-icon-box {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.tech-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    font-weight: 700;
    flex-shrink: 0;
}

.tech-card p,
.tech-card ul { 
    font-size: 0.95rem; 
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.tech-card ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

.tech-card ul li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card a {
    color: var(--accent-cyan);
    font-weight: 600;
    transition: 0.3s;
}

.tech-card a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px var(--accent-cyan);
}

/* --- WHY SECTION --- */
.why-section {
    background: var(--bg-panel);
}

.why-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-text h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.why-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.why-feature i {
    font-size: 24px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.why-feature h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.why-feature small {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.why-image img {
    border-radius: 20px;
    opacity: 0.8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    width: 100%;
}

.why-image img:hover {
    opacity: 1;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* --- INNER PAGES OVERRIDES --- */
#about, #about-section, #vision-mission, #values-section, #team-section {
    background: var(--bg-dark) !important;
    color: var(--text-white) !important;
}

#about-content h1, #about-title, #vision-title, #mission-title, #team-title, #wcu-title {
    color: var(--text-white) !important;
}

#about-content p, #about-info p, #team-description {
    color: var(--text-gray) !important;
}

#vision-card, #mission-card, .value-card, .team-member, .wcu-value-card {
    background: var(--bg-panel) !important;
    border: var(--glass-border) !important;
    box-shadow: none !important;
}

.value-card:hover, .team-member:hover {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: var(--bg-panel) !important;
    border: var(--glass-border) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white !important;
    padding: 50px;
    border-radius: 20px;
}

.left, .right { 
    background: transparent !important; 
}

.contact-section h1, .contact-section label, .contact-section p {
    color: var(--text-white) !important;
}

/* Form Inputs Dark Mode */
input, textarea, select, .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-size: 1rem;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    transition: 0.3s all !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

input:focus, textarea:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Form Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary)) !important;
    color: white !important;
    border: none !important;
    padding: 12px 40px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    transition: 0.4s all !important;
    cursor: pointer !important;
    font-size: 1rem !important;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3) !important;
}

/* --- FOOTER --- */
footer {
    background: #0a0412;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-logo img { 
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-links a, .footer-contact li {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.social-box {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: 0.3s all;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.social-box:hover {
    background: var(--accent-cyan);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.social-box img { 
    width: 20px; 
    filter: brightness(2);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #555;
}

/* --- ANIMATIONS --- */
/* Ripple Effect Animation */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse-purple {
    0% { 
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 20px rgba(111, 66, 193, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0); 
    }
}

@keyframes glow-cyan {
    0%, 100% {
        text-shadow: 0 0 5px var(--accent-cyan), 0 0 10px var(--accent-cyan);
    }
    50% {
        text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
    }
}

/* Loading Overlay */
.loading-overlay {
    background: rgba(15, 5, 24, 0.95);
}

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card animation on scroll */
.scroll-card {
    animation: slideInBottom 0.8s ease forwards;
}

/* Smooth transitions on all elements */
button, a, input:focus {
    outline: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tech-card {
        flex: 1 1 250px;
        max-width: 320px;
    }
    
    .why-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-card {
        padding: 50px 30px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    
    .service-grid {
        gap: 25px;
    }
    
    .tech-card {
        flex: 0 1 280px;
        max-width: 100%;
        padding: 35px 25px;
    }
    
    .card-icon-box {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .why-content {
        gap: 30px;
        flex-direction: column;
    }
    
    .why-image {
        margin-top: 30px;
    }
    
    .nav-link {
        margin: 5px 0;
        font-size: 14px;
        text-transform: none;
        letter-spacing: normal;
    }
    
    .navbar-nav {
        gap: 0;
        padding: 15px 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        display: block;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .hero-section {
        min-height: 70vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-card {
        padding: 40px 25px;
        border-radius: 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .service-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .tech-card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .card-icon-box {
        width: 65px;
        height: 65px;
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .tech-card h3 {
        font-size: 1.3rem;
    }
    
    .tech-card p {
        font-size: 0.9rem;
    }
    
    .why-feature {
        margin-bottom: 25px;
    }
    
    .why-feature h5 {
        font-size: 1rem;
    }
    
    .why-feature small {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 60px 0 20px;
    }
    
    .footer-logo img {
        width: 140px;
    }
    
    .footer-links, .footer-contact {
        margin-bottom: 30px;
    }
    
    .contact-section {
        padding: 40px 25px;
    }
    
    .navbar-brand img {
        height: 60px;
        max-width: 300px;
    }
    
    .nav-button {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .navbar {
        padding: 10px 0 !important;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 0;
        font-size: 13px;
        text-align: left;
    }
    
    .nav-item {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 576px) {
    html, body {
        font-size: 14px;
    }
    
    .hero-section {
        min-height: 60vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-card {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .service-grid {
        gap: 15px;
    }
    
    .tech-card {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .card-icon-box {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .tech-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .tech-card p {
        font-size: 0.85rem;
    }
    
    .tech-card a {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .why-feature {
        margin-bottom: 20px;
        gap: 15px;
    }
    
    .why-feature i {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .why-feature h5 {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .why-feature small {
        font-size: 0.8rem;
    }
    
    footer {
        padding: 50px 0 15px;
    }
    
    .footer-logo img {
        width: 120px;
        margin-bottom: 15px;
    }
    
    .footer-links h5, .footer-contact h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-links a, .footer-contact li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .copyright {
        margin-top: 30px;
        padding-top: 15px;
        font-size: 12px;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .social-box {
        width: 38px;
        height: 38px;
        margin-right: 8px;
    }
    
    .social-box i {
        font-size: 18px;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    input, textarea, select, .form-control {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    
    .btn-submit {
        padding: 10px 30px !important;
        font-size: 0.95rem !important;
    }
    
    .navbar {
        padding: 12px 0 !important;
    }
    
    .navbar-brand img {
        height: 50px;
        max-width: 250px;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        font-size: 13px;
        margin: 5px 0;
        padding: 8px 10px;
    }
    
    .nav-item {
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .nav-button {
        padding: 8px 15px;
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
    }
}

/* ===== MOBILE REDESIGN - TABLET (768px and below) ===== */
@media (max-width: 768px) {
    /* ===== NAVIGATION ===== */
    .header {
        padding: 3px 0;
    }

    .navbar {
        padding: 2px 0 !important;
        background: linear-gradient(180deg, rgba(15, 5, 24, 0.98), rgba(15, 5, 24, 0.95));
        border-bottom: 2px solid rgba(0, 240, 255, 0.15);
    }

    .navbar-brand {
        min-height: 45px;
        padding: 0px 0;
    }

    .navbar-brand img {
        height: 38px;
        max-width: 240px;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        position: static !important;
        display: flex !important;
        background: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        overflow: visible !important;
    }

    .navbar-nav {
        flex-direction: row;
        width: auto;
        gap: 6px;
        margin-left: auto;
    }

    .nav-item {
        width: auto;
        border-bottom: none;
    }

    .nav-link {
        display: inline-block !important;
        padding: 5px 7px !important;
        margin: 0 2px !important;
        font-size: 11px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.9) !important;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        background: none;
        padding-left: 7px !important;
    }

    .nav-link:hover::before {
        width: 100%;
    }

    .nav-button {
        width: auto;
        margin: 0 2px !important;
        padding: 5px 12px !important;
        font-size: 10px;
        background: transparent;
        border: 1px solid var(--accent-cyan);
        color: var(--accent-cyan);
        border-radius: 50px;
        transition: all 0.3s ease;
    }

    .nav-button:hover {
        background: var(--accent-cyan);
        color: var(--bg-dark);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    }

    /* ===== HERO SECTION ===== */
    .hero-section {
        min-height: 65vh;
        padding-top: 120px;
        padding-bottom: 40px;
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15, 5, 24, 0.7) 0%, rgba(26, 11, 46, 0.7) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-card {
        padding: 35px 25px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 60px rgba(111, 66, 193, 0.2);
        animation: fadeInUp 0.8s ease-out;
        position: relative;
        z-index: 2;
    }

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

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
    }

    /* ===== SERVICES SECTION ===== */
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 35px;
        text-align: center;
        font-weight: 700;
        position: relative;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
        margin: 15px auto 0;
        border-radius: 2px;
    }

    .service-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .tech-card {
        padding: 25px 20px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(200, 0, 255, 0.05));
        border: 1px solid rgba(0, 240, 255, 0.15);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        animation: slideIn 0.6s ease-out backwards;
    }

    .tech-card:nth-child(1) { animation-delay: 0.05s; }
    .tech-card:nth-child(2) { animation-delay: 0.1s; }
    .tech-card:nth-child(3) { animation-delay: 0.15s; }
    .tech-card:nth-child(4) { animation-delay: 0.2s; }
    .tech-card:nth-child(5) { animation-delay: 0.25s; }
    .tech-card:nth-child(6) { animation-delay: 0.3s; }
    .tech-card:nth-child(7) { animation-delay: 0.35s; }

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

    .tech-card:hover {
        transform: translateY(-8px);
        border-color: rgba(0, 240, 255, 0.4);
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(200, 0, 255, 0.1));
        box-shadow: 0 12px 35px rgba(0, 240, 255, 0.15);
    }

    .card-icon-box {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
        transition: transform 0.3s ease;
    }

    .tech-card:hover .card-icon-box {
        transform: scale(1.15) rotate(5deg);
    }

    .tech-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        color: white;
        font-weight: 600;
    }

    .tech-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 15px;
    }

    /* ===== WHY SECTION ===== */
    .why-feature {
        display: flex;
        gap: 15px;
        margin-bottom: 25px;
        padding: 18px;
        border-radius: 12px;
        background: rgba(0, 240, 255, 0.05);
        border-left: 3px solid var(--accent-cyan);
        transition: all 0.3s ease;
        animation: slideInLeft 0.6s ease-out backwards;
    }

    .why-feature:nth-child(1) { animation-delay: 0.1s; }
    .why-feature:nth-child(2) { animation-delay: 0.2s; }
    .why-feature:nth-child(3) { animation-delay: 0.3s; }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .why-feature:hover {
        background: rgba(0, 240, 255, 0.1);
        transform: translateX(8px);
        border-left-color: var(--primary);
    }

    .why-feature i {
        color: var(--accent-cyan);
        font-size: 24px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .why-feature h5 {
        font-size: 1rem;
        margin-bottom: 5px;
        color: white;
        font-weight: 600;
    }

    .why-feature small {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .why-image {
        margin-top: 30px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
        animation: zoomIn 0.8s ease-out;
    }

    @keyframes zoomIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .why-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* ===== FOOTER ===== */
    footer {
        background: #0a0412;
        padding: 50px 0 20px;
        border-top: 2px solid rgba(0, 240, 255, 0.15);
    }

    .footer-logo {
        margin-bottom: 20px;
        animation: fadeInDown 0.6s ease-out;
    }

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

    .footer-logo img {
        width: 160px;
        height: auto;
        filter: brightness(0) invert(1);
    }

    .footer-links,
    .footer-contact {
        margin-bottom: 30px;
    }

    .footer-links h5,
    .footer-contact h5 {
        font-size: 1rem;
        margin-bottom: 15px;
        color: white;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 10px;
        transition: all 0.3s ease;
        display: block;
    }

    .footer-links a:hover {
        color: var(--accent-cyan);
        padding-left: 8px;
        text-shadow: 0 0 8px var(--accent-cyan);
    }

    .social-icons {
        display: flex;
        gap: 12px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .social-box {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 240, 255, 0.1);
        border: 1px solid rgba(0, 240, 255, 0.2);
        border-radius: 10px;
        color: var(--accent-cyan);
        transition: all 0.3s ease;
        font-size: 18px;
    }

    .social-box:hover {
        background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
        border-color: transparent;
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
        color: white;
    }

    .copyright {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 240, 255, 0.1);
        text-align: center;
    }
}

/* ===== MOBILE REDESIGN - MOBILE (576px and below) ===== */
@media (max-width: 576px) {
    html, body {
        font-size: 13px;
    }

    /* ===== HEADER ===== */
    .header {
        padding: 3px 0;
    }

    .navbar {
        padding: 2px 0 !important;
    }

    .navbar-brand {
        min-height: 42px;
        padding: 0px 0;
    }

    .navbar-brand img {
        height: 35px;
        max-width: 220px;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        position: static !important;
        display: flex !important;
        background: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        overflow: visible !important;
    }

    .nav-item {
        border-bottom: none;
        width: auto;
    }

    .nav-link {
        padding: 5px 6px !important;
        font-size: 10px;
        text-transform: uppercase;
        margin: 0 2px !important;
    }

    .nav-link:hover {
        padding-left: 6px !important;
    }

    .nav-button {
        width: auto;
        margin: 0 2px !important;
        padding: 5px 12px !important;
        font-size: 9px;
    }

    /* ===== HERO SECTION ===== */
    .hero-section {
        min-height: 58vh;
        padding-top: 100px;
        padding-bottom: 30px;
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15, 5, 24, 0.7) 0%, rgba(26, 11, 46, 0.7) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-card {
        padding: 25px 18px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 60px rgba(111, 66, 193, 0.2);
        animation: fadeInUp 0.8s ease-out;
        position: relative;
        z-index: 2;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.8);
    }

    /* ===== SERVICES SECTION ===== */
    .section-padding {
        padding: 45px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .section-title::after {
        width: 50px;
        margin-top: 12px;
    }

    .service-grid {
        gap: 15px;
    }

    .tech-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .card-icon-box {
        width: 55px;
        height: 55px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .tech-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .tech-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    /* ===== WHY SECTION ===== */
    .why-feature {
        gap: 12px;
        margin-bottom: 18px;
        padding: 15px;
        border-radius: 10px;
    }

    .why-feature i {
        font-size: 20px;
    }

    .why-feature h5 {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }

    .why-feature small {
        font-size: 0.8rem;
    }

    .why-image {
        margin-top: 25px;
        border-radius: 14px;
    }

    /* ===== FOOTER ===== */
    footer {
        padding: 40px 0 15px;
    }

    .footer-logo img {
        width: 140px;
    }

    .footer-links,
    .footer-contact {
        margin-bottom: 25px;
    }

    .footer-links h5,
    .footer-contact h5 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .social-icons {
        gap: 10px;
        margin-top: 15px;
    }

    .social-box {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .copyright {
        font-size: 0.75rem;
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .tech-card {
        padding: 20px 12px;
    }
    
    .card-icon-box {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Performance optimization for low-end devices */
@media (max-width: 480px) {
    /* Reduce animation complexity on mobile */
    .tech-card::before {
        background: transparent;
    }
    
    .hero-card::after {
        opacity: 0;
    }
    
    /* Disable parallax animations on mobile */
    [data-parallax] {
        transform: none !important;
    }
}

/* ===== USER DROPDOWN MENU STYLES ===== */
.dropdown-menu {
    background: #151d3f !important;
    border: 1px solid #2d3a5c !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    min-width: 180px !important;
    margin-top: 10px !important;
}

.dropdown-menu-right {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    color: #e8e8f0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

.dropdown-item i {
    margin-right: 10px !important;
    width: 18px !important;
    text-align: center !important;
    color: #07c2b2 !important;
}

.dropdown-item:hover {
    background-color: #1a2350 !important;
    color: #07c2b2 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #07c2b2 !important;
    color: white !important;
}

.dropdown-divider {
    border-color: #2d3a5c !important;
    margin: 4px 0 !important;
}

/* Navbar user dropdown styling */
.navbar .dropdown-toggle::after {
    color: #e8e8f0;
    border: none;
    margin-left: 8px;
}

.navbar .dropdown-toggle:hover::after {
    color: #07c2b2;
}

#userDropdownBtn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#userDropdownBtn i {
    font-size: 18px !important;
}

#navUsername {
    font-weight: 500;
    margin-left: 6px;
}
