/* --- Design System & Base Styles --- */
:root {
    --primary: #0D9488; /* Teal 600 */
    --primary-light: #2DD4BF; /* Teal 400 */
    --secondary: #2563EB; /* Blue 600 */
    --secondary-light: #60A5FA; /* Blue 400 */
    --dark: #0F172A;
    --dark-light: #1E293B;
    --light: #F0FDFA; /* Teal 50 */
    --gray: #64748B;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.alt-bg {
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: var(--primary);
    color: var(--white);
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo span span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark-light);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, #eef2ff, #ffffff);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 110%;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    transform: rotate(-2deg);
}

.glass-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    font-weight: 600;
}

.glass-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

.floating-1 {
    top: 10%;
    right: -5%;
    animation: float 4s ease-in-out infinite;
}

.floating-2 {
    bottom: 10%;
    left: -10%;
    animation: float 5s ease-in-out infinite reverse;
}

.hero-content {
    animation: slideInLeft 1s ease-out forwards;
}

.hero-image {
    animation: slideInRight 1s ease-out forwards;
}

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

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

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

/* Reveal Classes */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal.reveal-left, .reveal.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

/* --- Domain Section --- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.domain-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.domain-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.domain-card i {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

.domain-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.domain-card p {
    color: var(--gray);
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #E2E8F0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--white);
    border: 3px solid var(--secondary);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 1; /* Visible by default for reliability */
}

.left .timeline-date {
    right: -200px;
}

.right .timeline-date {
    left: -200px;
}

.timeline-date span {
    padding: 8px 20px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.timeline-card {
    padding: 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    opacity: 1; /* Visible by default for reliability */
}

.timeline-item.reveal .timeline-card {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item.reveal .timeline-date {
    opacity: 1;
    animation: fadeIn 1s ease-out forwards;
}

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

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

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.m-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.m-marks {
    display: block;
    font-weight: 700;
    color: var(--dark-light);
    font-size: 0.85rem;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 23px;
    }
    .left::after, .right::after {
        left: 23px;
    }
    .right {
        left: 0%;
    }
    .timeline-date {
        position: relative;
        top: 0;
        transform: none;
        margin-bottom: 15px;
        display: block;
    }
    .left .timeline-date, .right .timeline-date {
        left: 0;
        right: auto;
    }
}

/* --- Downloads Section --- */
.download-group {
    margin-bottom: 60px;
}

.download-group h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.download-card.wide {
    width: 100%;
}

.d-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.d-info i {
    font-size: 2rem;
}

.pdf-icon { color: #EF4444; }
.excel-icon { color: #10B981; }
.ppt-icon { color: #F97316; }

.d-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark);
    word-break: break-word;
}

.d-info p {
    font-size: 0.8rem;
    color: var(--gray);
}

.d-icon {
    font-size: 1.2rem;
    color: var(--secondary);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.d-icon:hover {
    background: var(--light);
    transform: scale(1.1);
}

.btn-download {
    padding: 10px 25px;
    font-size: 0.95rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: var(--transition);
    border: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.empty-state {
    padding: 40px;
    text-align: center;
    background: var(--light);
    border-radius: 15px;
    color: var(--gray);
    font-style: italic;
    border: 2px dashed var(--glass-border);
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
    .download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .d-icon {
        align-self: flex-end;
    }
}

/* --- About Us --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.supervisor-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    margin-bottom: 50px;
}

.supervisor-card {
    border: 1px solid var(--primary-light);
    background: linear-gradient(145deg, var(--white), var(--light));
}

.supervisor-card .role {
    font-size: 1rem;
    color: var(--secondary) !important;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.member-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--primary-light);
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.member-info .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-info .email {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.member-ach span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(147, 51, 234, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Contact Us --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.info-items {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: var(--light);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { margin: 0 auto 30px; }
    .hero-btns { justify-content: center; }
    .hero-image img { width: 100%; transform: none; margin-top: 20px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    
    .floating-1, .floating-2 {
        display: none; /* Hide floating elements on tablets for better focus */
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.8rem; }
    
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }
    
    .nav-links.show-mobile {
        display: flex;
        right: 0;
    }

    .menu-toggle { 
        display: block; 
        z-index: 1001;
    }
    
    .hero h1 { font-size: 2rem; }
    
    .timeline-date span {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
}
