/* ===================================
   HUEBLE.COM - PREMIUM STYLES
   Contemporary, Refined, Professional
   =================================== */

/* CSS Variables */
:root {
    /* Colors - Contemporary Tech Palette */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #4D94FF;
    --secondary: #7C3AED;
    --accent: #10B981;
    --dark: #0F172A;
    --dark-alt: #1E293B;
    --gray: #64748B;
    --gray-light: #CBD5E1;
    --white: #FFFFFF;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #7C3AED 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.16);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-menu a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
    animation: fadeInUp 1s ease 0.8s backwards;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(20px); opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

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

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: var(--bg-alt);
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header.centered {
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: 24px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Research Section */
.research-section {
    background: var(--bg-alt);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.research-card.featured {
    grid-column: span 2;
    background: var(--gradient-primary);
    color: var(--white);
}

.research-card.featured h3,
.research-card.featured p,
.research-card.featured li {
    color: var(--white);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.research-card p {
    color: var(--gray);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Technology Section */
.technology-section {
    background: var(--dark);
    color: var(--white);
}

.technology-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.technology-section h2,
.technology-section h4 {
    color: var(--white);
}

.technology-section p {
    color: rgba(255, 255, 255, 0.8);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-visual {
    position: relative;
    height: 500px;
}

.levitation-demo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.water-particle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4D94FF, #7C3AED);
    border-radius: 50%;
    animation: levitate 4s ease-in-out infinite;
}

.water-particle:nth-child(1) {
    animation-delay: 0s;
    left: 20%;
}

.water-particle:nth-child(2) {
    animation-delay: 1.3s;
    left: 50%;
}

.water-particle:nth-child(3) {
    animation-delay: 2.6s;
    left: 70%;
}

@keyframes levitate {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) scale(1.2);
        opacity: 1;
    }
}

.magnetic-field {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid rgba(77, 148, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

/* Education Section */
.education-section {
    background: var(--bg);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.education-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.education-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.education-card h3 {
    margin-bottom: 16px;
}

.education-card p {
    color: var(--gray);
    margin-bottom: 24px;
}

.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.program-features span {
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--dark);
}

.link-external {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-external:hover {
    transform: translateX(4px);
}

.education-cta {
    background: var(--gradient-primary);
    padding: 60px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.education-cta h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.education-cta p {
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-item h4 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.value-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.contact-option {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-light);
}

.contact-option:last-child {
    border-bottom: none;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-option h4 {
    margin-bottom: 8px;
}

.contact-option p {
    color: var(--gray);
}

/* Forms */
.contact-form {
    background: var(--bg-alt);
    padding: 48px;
    border-radius: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 16px;
    line-height: 1.8;
}

.logo-footer {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.logo-footer .logo-text {
    color: var(--white);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .research-grid,
    .education-grid,
    .tech-content,
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .research-card.featured {
        grid-column: span 1;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .education-cta {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ===================================
   PUBLICATIONS FEATURE SECTION
   =================================== */

.publications-feature {
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border-radius: 24px;
    border: 1px solid var(--gray-light);
}

.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 24px;
}

.publications-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.publications-subtitle {
    font-size: 16px;
    color: var(--gray);
}

.btn-outline {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.publication-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
    position: relative;
}

.publication-card:not(.upcoming):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.publication-card.upcoming {
    opacity: 0.85;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
}

.publication-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.publication-badge.upcoming-badge {
    background: #F59E0B;
}

.publication-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.publication-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.publication-excerpt {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.publication-tags .tag {
    background: #EFF6FF;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.publication-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.publication-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.publications-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 32px;
    background: white;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* Responsive adjustments for publications */
@media (max-width: 768px) {
    .publications-feature {
        padding: 32px 20px;
    }
    
    .publications-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .publications-title {
        font-size: 24px;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .publications-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
