/* Technoplanet Website Styles */
:root {
    --primary-color: #c1d346;
    --secondary-color: #e63135;
    --text-color: #000000;
    --background-color: #ffffff;
}
.sponsor-image{
    width: 100%;
}
.sponsor-card{
    height: 200px; 
    display: flex; 
    justify-content: center; 
    align-items:center;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
}

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

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    justify-content: center;
    flex-direction: column;
}

.header-logo-left, .header-logo-right {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-logo-left:hover, .header-logo-right:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

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

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: rgba(193, 211, 70, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu li a::after {
    display: none;
}

.nav-register {
    background: var(--primary-color);
    color: var(--background-color) !important;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-register:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 211, 70, 0.3);
}

.nav-register::after {
    display: none;
}

/* Hero Section */
.hero {
    padding: 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Fallback background if image doesn't load */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(193, 211, 70, 0.8) 0%, rgba(230, 49, 53, 0.8) 100%); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1,.hero-h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    color:black;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--background-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(193, 211, 70, 0.4);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
    padding: 0px 2rem;
}

.section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 50%;
}

/* .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
} */

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* .card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
} */

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card p {
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
}

/* Features Section */
.features {
    background: var(--background-color);
    padding: 80px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(193, 211, 70, 0.05);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-content p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--background-color);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Committee Table Styles */
.committee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}
.committee-table th, .committee-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}
.committee-table thead th {
    background: var(--primary-color);
    color: var(--background-color);
    font-weight: bold;
    font-size: 1.1rem;
}
.committee-table tbody tr {
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.committee-table tbody tr:hover {
    background: rgba(193, 211, 70, 0.12);
    transform: scale(1.01);
    box-shadow: 0 4px 18px rgba(193, 211, 70, 0.10);
    z-index: 1;
    position: relative;
}
.committee-table tbody tr:hover td, .committee-table tbody tr:hover th {
    background: transparent;
}

/* Committee Table Rowspan Hover Fix */
/* Add a highlight to rowspan cells when any grouped row is hovered */
.committee-table td.rowspan-dept,
.committee-table td.rowspan-coord {
    transition: background 0.3s, box-shadow 0.3s;
}

/* Engg. group: rows 1-5 (rowspan on row 1) */
.committee-table tbody tr:nth-child(2):hover ~ tr:nth-child(3) td.rowspan-dept,
.committee-table tbody tr:nth-child(2):hover ~ tr:nth-child(3) td.rowspan-coord,
.committee-table tbody tr:nth-child(3):hover ~ tr:nth-child(2) td.rowspan-dept,
.committee-table tbody tr:nth-child(3):hover ~ tr:nth-child(2) td.rowspan-coord,
.committee-table tbody tr:nth-child(4):hover ~ tr:nth-child(2) td.rowspan-dept,
.committee-table tbody tr:nth-child(4):hover ~ tr:nth-child(2) td.rowspan-coord,
.committee-table tbody tr:nth-child(5):hover ~ tr:nth-child(2) td.rowspan-dept,
.committee-table tbody tr:nth-child(5):hover ~ tr:nth-child(2) td.rowspan-coord {
    background: rgba(193, 211, 70, 0.12);
    box-shadow: 0 4px 18px rgba(193, 211, 70, 0.10);
}

/* CV group: rows 6-7 (rowspan on row 6) */
.committee-table tbody tr:nth-child(7):hover ~ tr:nth-child(6) td.rowspan-dept,
.committee-table tbody tr:nth-child(7):hover ~ tr:nth-child(6) td.rowspan-coord {
    background: rgba(193, 211, 70, 0.12);
    box-shadow: 0 4px 18px rgba(193, 211, 70, 0.10);
}

/* EE group: rows 8-9 (rowspan on row 8) */
.committee-table tbody tr:nth-child(9):hover ~ tr:nth-child(8) td.rowspan-dept,
.committee-table tbody tr:nth-child(9):hover ~ tr:nth-child(8) td.rowspan-coord {
    background: rgba(193, 211, 70, 0.12);
    box-shadow: 0 4px 18px rgba(193, 211, 70, 0.10);
}

/* ME group: rows 10-12 (rowspan on row 10) */
.committee-table tbody tr:nth-child(11):hover ~ tr:nth-child(10) td.rowspan-dept,
.committee-table tbody tr:nth-child(11):hover ~ tr:nth-child(10) td.rowspan-coord,
.committee-table tbody tr:nth-child(12):hover ~ tr:nth-child(10) td.rowspan-dept,
.committee-table tbody tr:nth-child(12):hover ~ tr:nth-child(10) td.rowspan-coord {
    background: rgba(193, 211, 70, 0.12);
    box-shadow: 0 4px 18px rgba(193, 211, 70, 0.10);
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left, .header-right {
        display: none;
    }
    
    .header-center {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-register {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-menu li a {
        padding: 5px 15px;
        font-size: 0.85rem;
        border-bottom: none;
    }
    
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        color:#000000;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    .header-logo-left, .header-logo-right {
        height: 50px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 60px 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 