/* Base Styles */
:root {
    --primary: #0c3b2e;
    --secondary: #6dffe8;
    --accent: #ffffff;
    --light: #f8f9fa;
    --dark: #232323;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: 'Afacad', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

.about, .research, .ux-design, .publications, .contact {
    position: relative;
}

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

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(109, 255, 232, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

a, button, .hover-target {
    cursor: none;
}

a:hover ~ .cursor, button:hover ~ .cursor, .hover-target:hover ~ .cursor {
    width: 50px;
    height: 50px;
    mix-blend-mode: exclusion;
}

/* Hide custom cursor on mobile devices */
@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    a, button, .hover-target {
        cursor: pointer;
    }
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Locomotive Scroll */
html.has-scroll-smooth {
    overflow: hidden;
}

.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
h1{
    font-size: clamp(3rem, 8vw, 8rem) !important;
}

p {
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: none;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: none;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary);
    transition: var(--transition);
    z-index: -1;
}

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

.btn:hover:before {
    width: 100%;
}

.btn-accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent:before {
    background-color: var(--accent);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 0;
    z-index: 100;
    background-color: rgba(35, 35, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.menu-open header {
    background-color: var(--dark);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light);
    text-decoration: none;
    position: relative;
    z-index: 102;
}

.logo:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.logo:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    position: relative;
    width: 30px;
    height: 20px;
    cursor: none;
    z-index: 102;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--light);
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-open .menu-toggle span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    bottom: 9px;
    transform: rotate(-45deg);
}

/* Main Navigation */
.main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-open .main-navigation {
    opacity: 1;
    visibility: visible;
}

.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.nav-list {
    list-style: none;
    text-align: center;
    margin-bottom: 3rem;
}

.nav-item {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.nav-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 5rem);
    text-transform: uppercase;
    color: var(--light);
    text-decoration: none;
    position: relative;
    transform: translateY(100%);
    transition: var(--transition);
    transition-delay: calc(0.1s * var(--i));
}

.menu-open .nav-link {
    transform: translateY(0);
}

.nav-link:before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--secondary);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.4s ease;
}

.nav-link:hover:before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
    transition-delay: 0.5s;
}

.menu-open .nav-footer {
    transform: translateY(0);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nav-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: none;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

/* Additional CSS to ensure proper navigation overlay */

/* Create a full-screen overlay for the background */
.main-navigation:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    opacity: 0.97;
    z-index: -1;
}

/* Add a subtle gradient background for depth */
.main-navigation {
    background: linear-gradient(135deg, #0c3b2e 0%, #232323 100%);
}

/* Ensure the container sits above the background */
.nav-container {
    position: relative;
    z-index: 2;
}

/* Prevent any content from showing through */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rem 0 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    overflow: hidden;
}

.hero-title span {
    display: block;
    transform: translateY(100%);
    animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: calc(0.2s * var(--i));
    font-weight: 600;
}

@keyframes textReveal {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-desc {
    max-width: 600px;
    margin: 2rem 0 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

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

.hero-btns {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.scroll-indicator span {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* About Section */
.about {
    position: relative;
}

.about-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 125%;
    overflow: hidden;
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.about-image:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.about-image:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary);
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover:before {
    top: 10px;
    left: 10px;
}

.section-tag {
    position: absolute;
    top: 50%;
    left: -10rem;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--secondary);
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 10;
}

.section-tag:before {
    content: '';
    width: 60px;
    height: 1px;
    background-color: var(--secondary);
    margin-right: 20px;
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--secondary);
}

.highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(109, 255, 232, 0.2);
    z-index: -1;
}

/* Research Section */
.research {
    padding: 5rem 0;
    background-color: #0a0a0a;
    position: relative;
}

.research-tabs {
    display: flex;
    gap: 1.5rem;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--light);
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    position: relative;
    cursor: none;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--secondary);
}

.tab-btn.active:after, .tab-btn:hover:after {
    width: 100%;
}

.research-item {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
}

.research-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 140%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.research-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.research-item:hover .research-thumb img {
    transform: scale(1.1);
}

.research-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 59, 46, 0), rgba(12, 59, 46, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.research-item:hover .research-overlay {
    opacity: 1;
}

.research-cat {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    background-color: var(--accent);
    color: var(--light);
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.research-title {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    margin-bottom: 1rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background-color: rgba(109, 255, 232, 0.1);
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* UX Design Section */
.ux-design {
    padding: 5rem 0;
    position: relative;
}

.projects-container {
    overflow: hidden;
}

.project {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 10% 0;
    opacity: 0;
    transition: var(--transition);
}

.project.active {
    opacity: 1;
}

.project-number {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 20rem);
    font-weight: 600;
    color: rgba(109, 255, 232, 0.05);
    line-height: 0.8;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.project-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.meta-item h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1rem;
    margin: 0;
}

/* Publications Section */
.publications {
    padding: 5rem 0;
    background-color: #0a0a0a;
    position: relative;
}

.pub-list {
    position: relative;
}

.pub-item {
    display: flex;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.pub-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-number {
    flex: 0 0 100px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--secondary);
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.pub-item:hover .pub-title {
    color: var(--secondary);
    transform: translateX(20px);
}

.pub-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.pub-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pub-detail strong {
    color: var(--secondary);
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-form {
    padding: 3rem;
    background-color: rgba(12, 59, 46, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(109, 255, 232, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-title {
    margin-bottom: 3rem;
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(109, 255, 232, 0.1);
    color: var(--secondary);
    font-size: 1.2rem;
    margin-right: 1.5rem;
}

.contact-text {
    font-size: 1.2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

/* Footer */
footer {
    padding: 5rem 0;
    background-color: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-btn{
    align-self: center;
    text-align: end;
}

.copyright {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.back-to-top {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

/* Animations and Effects */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.split-text {
    overflow: hidden;
}

.split-text span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal.active .split-text span {
    transform: translateY(0);
}

/* Mobile padding adjustments - keep for consistent mobile experience */
@media (max-width: 768px) {
    .section-tag {
        left: -10rem;
        font-size: 0.7rem;
    }
}