/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Manrope:wght@400;500;600&display=swap');

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

body {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    zoom: 0.8;
    overflow-x: hidden;
}

/* Background Pattern */
.background-decoration { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("gradient.jpg");
}

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

/* Home page container - centered vertically */
.home-page .container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header - Default */
header {
    padding: 6rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 4rem;
}

/* Home page specific header layout */
.home-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    text-align: left;
    margin-top: 15vh;
}

.profile-section {
    flex-shrink: 0;
    animation: fadeInLeft 1s ease-out;
}

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

.profile-pic {
    width: 400px;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-pic:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.header-content {
    flex: 1;
    text-align: right;
    animation: fadeInRight 1s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

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

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
}

.linkedin-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
}

.linkedin-link:hover {
    transform: translateY(-5px);
}

/* Navigation */
nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    animation: fadeIn 1s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

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

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

nav li {
    display: inline-block;
}

nav a {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ========================================
   PROJECT PAGES STYLES
   ======================================== */

/* Page Header */
.page-header {
    padding: 5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    transform: translateX(-5px);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.page-intro {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    text-align: left;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.top-nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-nav li {
    display: inline-block;
}

.top-nav a {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
    transition: color 0.3s ease;
    font-weight: 400;
}

.top-nav a:hover {
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    max-width: 100%;
}

/* Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-content {
    padding: 1.5rem 1.75rem 1.75rem;
}

.project-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.project-content p {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

.project-link:hover::after {
    width: calc(100% - 1.5rem);
}

/* Explorations Content */
.explorations-content {
    max-width: 800px;
    padding: 2rem 0 4rem;
}

.exploration-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.exploration-section:nth-child(1) {
    animation-delay: 0.1s;
}

.exploration-section:nth-child(2) {
    animation-delay: 0.2s;
}

.exploration-section:nth-child(3) {
    animation-delay: 0.3s;
}

.exploration-section:nth-child(4) {
    animation-delay: 0.4s;
}

.exploration-section:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.exploration-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem;
}

.exploration-section p {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(255, 154, 60, 0.3);
    color: #ffffff;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .home-header {
        gap: 4rem;
    }
    
    .profile-pic {
        width: 350px;
        height: 450px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 3rem;
    }
    
    .home-header {
        flex-direction: column;
        gap: 3rem;
        padding: 5rem 0 2rem;
        align-items: center;
        min-height: auto;
    }
    
    .profile-pic {
        width: 300px;
        height: 375px;
    }
    
    .header-content {
        text-align: center;
    }
    
    .intro {
        margin-left: auto;
        margin-right: auto;
    }
    
    h1 {
        font-size: 3rem;
        text-align: center;
    }
    
    nav {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    /* Project pages responsive */
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-intro {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-content {
        padding: 1.75rem 2rem 2rem;
    }
    
    .project-content h2 {
        font-size: 1.5rem;
    }
    
    .exploration-section {
        padding: 2rem;
    }
    
    .exploration-section h2 {
        font-size: 1.5rem;
    }
    
    .top-nav {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .top-nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 2.5rem;
    }
    
    .home-header {
        padding: 4rem 0 2rem;
        gap: 2rem;
    }
    
    .profile-pic {
        width: 250px;
        height: 313px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .intro {
        font-size: 1.125rem;
    }
    
    nav {
        top: 1rem;
        right: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    /* Project pages responsive */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-intro {
        font-size: 1rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h2 {
        font-size: 1.35rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
    }
    
    .exploration-section {
        padding: 1.5rem;
    }
    
    .top-nav {
        top: 1rem;
        right: 1rem;
    }
    
    .top-nav ul {
        gap: 1rem;
    }
    
    .top-nav a {
        font-size: 0.85rem;
    }
}
