/* ===== Global Styles ===== */
:root {
    --primary-dark: #0a192f;
    --primary-navy: #112240;
    --secondary-navy: #1a2b4a;
    --accent-cyan: #64ffda;
    --accent-blue: #4a9eff;
    --text-light: #e6f1ff;
    --text-dim: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent-cyan) !important;
}

.text-secondary {
    color: var(--text-dim) !important;
}

.text-light-80 {
    color: rgba(230, 241, 255, 0.8) !important;
}

/* ===== Navigation ===== */
#mainNav {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

#mainNav.navbar-scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 25, 47, 0.98);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #1a2b4a 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.typewriter-wrapper {
    min-height: 80px;
}

.typewriter-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    border-right: 3px solid var(--accent-cyan);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

.hero-stats .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Profile Image */
.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.profile-image {
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
    max-width: 350px;
    position: relative;
    z-index: 2;
}

/* ===== Buttons ===== */
.btn-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-cyan);
    color: var(--primary-dark);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Section Padding ===== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
}

/* ===== Backgrounds ===== */
.bg-secondary-dark {
    background-color: var(--primary-navy);
}

/* ===== Glass Card Effect ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* ===== Research Tags ===== */
.badge.bg-glass {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-cyan);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 30px;
}

/* ===== Counter Cards ===== */
.counter-card {
    background: rgba(255, 255, 255, 0.03);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1.2;
}

.counter-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Conference Image ===== */
.conference-image {
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.conference-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 50px -20px var(--accent-cyan);
}

/* ===== Research Cards ===== */
.research-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.research-card .icon-wrapper i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

/* ===== Vision Section ===== */
.vision-section {
    background-image: url('https://via.placeholder.com/1920x600/112240/64ffda?text=AI+Lab+Background');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.85);
}

.mission-item {
    text-align: center;
    padding: 20px;
}

.mission-item i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

/* ===== Skills Section ===== */
.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.progress {
    height: 8px;
    background: var(--secondary-navy);
    border-radius: 10px;
}

.progress-bar {
    background: var(--accent-cyan);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(10, 25, 47, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.badge.bg-accent {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    padding: 5px 10px;
    font-weight: 500;
    width: fit-content;
}

/* ===== Social Cards ===== */
.social-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-cyan);
}

.social-card .social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-card .social-icon i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.social-card:hover .social-icon {
    transform: scale(1.1);
    background: rgba(100, 255, 218, 0.2);
}

/* ===== Contact Form ===== */
.custom-input {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--text-light);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background: transparent;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
    color: var(--text-light);
    outline: none;
}

.custom-input::placeholder {
    color: var(--text-dim);
}

/* ===== Footer ===== */
.footer-section {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-hr {
    border-color: rgba(100, 255, 218, 0.1);
    margin: 40px 0 20px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .profile-image {
        margin-top: 40px;
        max-width: 300px;
    }
    
    .typewriter-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        width: 100%;
    }
    
    .typewriter-text {
        font-size: 1.2rem;
    }
}