/* index-unique.css - Styles unique to index page */

/* Transition Banner */
.transition-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 18px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    position: relative !important;
    z-index: 100 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    margin: 0 !important;
}

.banner-content {
    line-height: 1.6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    max-width: 100% !important;
}

.banner-text {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1 !important;
}

.banner-content strong {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.banner-message {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
}

.banner-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    white-space: nowrap !important;
}

.banner-link:hover {
    color: #667eea !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2) !important;
}

.banner-close {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    flex-shrink: 0 !important;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

.banner-close:active {
    transform: scale(0.95) !important;
}

.banner-close svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.5 !important;
}

/* Banner Animation */
.transition-banner.closing {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        height: auto;
        opacity: 1;
    }
    to {
        height: 0;
        opacity: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Override: Index page uses simpler dropdown hover (no navbar-nav rules) */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

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

/* Hero Banner Styles - TI Inspired */
.hero-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23333" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    background: #dc3545;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circuit Board Visualization */
.circuit-board {
    width: 500px;
    height: 400px;
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
}

.circuit-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.circuit-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.1) 21px,
        rgba(255,255,255,0.1) 22px
    ),
    repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.1) 21px,
        rgba(255,255,255,0.1) 22px
    );
}

.component {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.microcontroller {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.microcontroller::after {
    content: 'MCU';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.sensor {
    width: 40px;
    height: 30px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.sensor1 { top: 20%; left: 20%; animation: glow 3s infinite 0.5s; }
.sensor2 { top: 20%; right: 20%; animation: glow 3s infinite 1s; }
.sensor3 { bottom: 20%; left: 20%; animation: glow 3s infinite 1.5s; }
.sensor4 { bottom: 20%; right: 20%; animation: glow 3s infinite 2s; }

.connection {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 2px;
    animation: dataFlow 2s infinite;
}

.conn1 {
    top: 35%;
    left: 32%;
    width: 100px;
    transform: rotate(20deg);
}

.conn2 {
    top: 35%;
    right: 32%;
    width: 100px;
    transform: rotate(-20deg);
}

.conn3 {
    bottom: 35%;
    left: 32%;
    width: 100px;
    transform: rotate(-20deg);
}

.conn4 {
    bottom: 35%;
    right: 32%;
    width: 100px;
    transform: rotate(20deg);
}

/* Floating Tech Elements */
.tech-element {
    position: absolute;
    color: rgba(0, 212, 255, 0.6);
    font-size: 24px;
    animation: float 6s infinite;
}

.tech1 { top: 10%; left: 10%; animation-delay: 0s; }
.tech2 { top: 20%; right: 10%; animation-delay: 1s; }
.tech3 { bottom: 20%; left: 15%; animation-delay: 2s; }
.tech4 { bottom: 10%; right: 15%; animation-delay: 3s; }

/* Navigation Dots */
.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #dc3545;
    transform: scale(1.2);
}

.nav-dot:hover {
    background: rgba(255,255,255,0.6);
}

/* 3D IC Chip Visualization */
.ic-chip {
    width: 400px;
    height: 300px;
    position: relative;
    transform: perspective(800px) rotateY(20deg) rotateX(10deg);
}

.ic-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.ic-top {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: linear-gradient(145deg, #1a252f, #2c3e50);
    border-radius: 8px;
    border: 2px solid #3498db;
}

.ic-pin {
    position: absolute;
    background: linear-gradient(90deg, #bdc3c7, #ecf0f1);
    border-radius: 2px;
}

.ic-pin-left {
    left: -8px;
    width: 16px;
    height: 4px;
}

.ic-pin-right {
    right: -8px;
    width: 16px;
    height: 4px;
}

.ic-pin-top {
    top: -8px;
    width: 4px;
    height: 16px;
}

.ic-pin-bottom {
    bottom: -8px;
    width: 4px;
    height: 16px;
}

.ic-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3498db;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
}

/* 3D Printed Vase Visualization */
.vase-container {
    width: 400px;
    height: 400px;
    position: relative;
    transform: perspective(800px) rotateY(-15deg) rotateX(5deg);
}

.vase-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: linear-gradient(145deg, #7f8c8d, #95a5a6);
    border-radius: 60px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.vase-body {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.vase-layer {
    position: relative;
    border-radius: 50%;
    margin: -2px auto;
    opacity: 0.9;
}

.layer1 { width: 100px; height: 25px; background: linear-gradient(145deg, #e74c3c, #c0392b); }
.layer2 { width: 110px; height: 25px; background: linear-gradient(145deg, #f39c12, #d68910); }
.layer3 { width: 115px; height: 25px; background: linear-gradient(145deg, #f1c40f, #f4d03f); }
.layer4 { width: 118px; height: 25px; background: linear-gradient(145deg, #2ecc71, #27ae60); }
.layer5 { width: 115px; height: 25px; background: linear-gradient(145deg, #3498db, #2980b9); }
.layer6 { width: 110px; height: 25px; background: linear-gradient(145deg, #9b59b6, #8e44ad); }
.layer7 { width: 100px; height: 25px; background: linear-gradient(145deg, #e67e22, #d35400); }
.layer8 { width: 85px; height: 25px; background: linear-gradient(145deg, #e74c3c, #c0392b); }
.layer9 { width: 65px; height: 20px; background: linear-gradient(145deg, #f39c12, #d68910); }
.layer10 { width: 45px; height: 15px; background: linear-gradient(145deg, #f1c40f, #f4d03f); }

.print-nozzle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 30px;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border-radius: 4px;
}

.print-filament {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: #e74c3c;
    border-radius: 1px;
    animation: extrude 2s infinite;
}

/* Team Srijan Logo Display */
.team-srijan-logo {
    width: 500px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.team-srijan-logo svg {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: logoGlow 3s infinite ease-in-out;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
    50% { filter: drop-shadow(0 15px 30px rgba(140, 24, 26, 0.4)); }
}

/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

/* Animations */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.5); }
    50% { box-shadow: 0 0 20px rgba(78, 205, 196, 1), 0 0 30px rgba(78, 205, 196, 0.8); }
}

@keyframes dataFlow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scaleX(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes extrude {
    0% { opacity: 0; height: 0; }
    50% { opacity: 1; height: 10px; }
    100% { opacity: 0; height: 10px; }
}

/* Responsive Banner */
@media (max-width: 768px) {
    .transition-banner {
        font-size: 14px;
        padding: 16px 0;
    }
    
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: relative;
    }
    
    .banner-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-right: 40px;
    }
    
    .banner-link {
        font-size: 13px;
        padding: 6px 16px;
        align-self: flex-start;
    }
    
    .banner-close {
        position: absolute;
        top: 0;
        right: 0;
        width: 28px;
        height: 28px;
    }
    
    .banner-close svg {
        width: 14px;
        height: 14px;
    }
    
    .banner-content strong {
        font-size: 15px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        padding: 100px 0 60px;
        min-height: 500px;
    }

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

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

    .circuit-board, .team-srijan-logo {
        width: 300px;
        height: 250px;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

    .tech-element {
        font-size: 18px;
    }
}