/* style.css */

/* --- CSS VARIABLES --- */
:root {
    --primary-color: #48C78E; /* Bulma's Primary Green */
    --primary-color-dark: #3AB77D;
    --primary-color-light: #F5FFFA;
    --accent-color: #4a90e2; /* A complementary blue */
    
    --text-color: #4a4a4a;
    --heading-color: #222222;
    --light-bg-color: #f7f9fb;
    --white-color: #FFFFFF;
    
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    --button-shadow: 0 4px 0 0 #28A46E;
    --button-shadow-hover: 0 2px 0 0 #28A46E;
    
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;
    
    --navbar-height: 52px; /* Bulma's default navbar height */
    --section-padding: 4rem 1.5rem;
    --card-radius: 15px;
    --transition-speed: 0.3s;
}

/* --- GLOBAL & BASE STYLES --- */
html {
    scroll-behavior: smooth;
    background-color: var(--light-bg-color);
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    font-weight: 700;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- HEADER / NAVBAR --- */
.navbar.is-fixed-top {
    transition: background-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.navbar.is-transparent {
    background-color: transparent;
}

.navbar.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-item {
    font-family: var(--font-family-body);
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.navbar .navbar-item:hover, .navbar a.navbar-item.is-active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.navbar-burger {
    color: var(--heading-color);
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    color: var(--white-color);
}

#hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    background-attachment: fixed; /* Parallax effect */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

#hero .title {
    color: var(--white-color);
}
#hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* --- 3D UI & GLASSPMORPHISM ELEMENTS --- */
.three-d-button {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: var(--button-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease !important;
    font-weight: 700 !important;
}

.three-d-button:hover {
    transform: translateY(2px);
    box-shadow: var(--button-shadow-hover) !important;
}

.three-d-button:active {
    transform: translateY(4px);
    box-shadow: none !important;
}

.three-d-input {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06) !important;
    transition: all var(--transition-speed) ease;
}

.three-d-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.25) !important;
}

.glass-card, .glass-card-flat, .glass-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.glass-card-flat {
    background: rgba(255, 255, 255, 0.5);
}

/* --- CARDS (PORTFOLIO, BLOG) --- */
.card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: none; /* Let glass styles handle it */
    display: flex;
    flex-direction: column;
}

.card .card-image {
    width: 100%;
}

.card .card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card .card-content .button {
    margin-top: auto;
    align-self: flex-start;
}

.card .title {
    color: var(--heading-color) !important;
}
.card .subtitle {
    color: var(--text-color) !important;
    font-family: var(--font-family-body);
}

/* --- RESEARCH SECTION --- */
#research .level-item .title {
    color: var(--primary-color);
    font-size: 3rem;
}

#research .progress {
    height: 1rem;
    border-radius: 1rem;
}

.progress-indicator {
    margin-bottom: 1.5rem;
}

.progress-indicator label {
    font-family: var(--font-family-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white-color);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- CONTACT SECTION --- */
.glass-form-container {
    padding: 2.5rem;
}
.glass-form-container .label {
    color: var(--heading-color);
    font-weight: 600;
}

/* --- PAGE-SPECIFIC STYLES --- */
.page-hero {
    background-color: var(--white-color);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.page-hero + .section {
    padding-top: 2rem;
}

body > main > section.section:first-of-type {
    padding-top: calc(var(--navbar-height) + 3rem);
}

/* --- FOOTER --- */
.footer {
    background-color: #2c3e50; /* Dark blue-gray */
    color: rgba(255, 255, 255, 0.7);
}

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

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease;
}

.footer a:hover {
    color: var(--primary-color);
}
.footer .content p {
    color: rgba(255, 255, 255, 0.7);
}


/* --- ANIMATIONS & UTILITIES --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }

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

    #hero .subtitle {
        font-size: 1.2rem;
    }
    
    /* Timeline Responsive */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-marker {
        top: 25px;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 21px;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
}