/* style.css */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

:root {
    --white: white;
    --black: black;
    --primary: #007acc;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --font-primary: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --header-width: 80px;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-primary);
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 16px;
    background-color: #000;
    color: var(--white);
}

.container {
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: var(--header-width);
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

header .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 0.5rem;
    align-items: center;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    white-space: nowrap;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
    position: absolute;
    left: 40px;
    top: 50%;
}

nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.social-item {
    margin-bottom: 0;
}

.nav-item {
    position: absolute;
    bottom: 0;
    margin-bottom: 2rem;
}

.linkedin-nav {
    font-size: 24px;
    color: var(--white);
    transition: color 0.3s ease;
}

.linkedin-nav:hover {
    color: #0077b5;
    transform: scale(1.1);
}

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

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

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

/* Adjust main content to account for header */
.hero, main {
    margin-left: var(--header-width);
    width: calc(100vw - var(--header-width));
    max-width: calc(100vw - var(--header-width));
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('https://via.placeholder.com/1920x1080') center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* align to top-left of hero-content */
    padding: 0 2rem;
}

.hero-content {
    width: 100%;
    max-width: 800px;   /* optional: constrain width */
    padding-top: 4rem;  /* push content down if needed */
}

/* Left-aligned intro */
.hero-content h2 {
    width: 100%;
    text-align: left;    /* ← now left-aligned */
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.hero-content h2 .intro-banner {
    display: inline-block;
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.hero-content h2 .intro-subtext {
    display: inline-block;
    font-size: 2rem;
    color: #929292;
    margin: 0.2rem 0;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content h2 .intro-subtext:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-content h2 .intro-subtext:nth-child(5) {
    animation-delay: 0.7s;
}

.hero-content h2 .intro-subtext:nth-child(7) {
    animation-delay: 0.9s;
}

.social-links {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.1s;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 119, 181, 0.1);
    border: 2px solid #0077b5;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.linkedin-link i {
    font-size: 1.5rem;
    color: #0077b5;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-link:hover i {
    color: #fff;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 4rem 2rem;
    width: 100%;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2/1;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.image-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Add a small delay for each subsequent card */
.image-card:nth-child(2) {
    transition-delay: 0.2s;
}

.image-card:nth-child(3) {
    transition-delay: 0.4s;
}

.image-card:nth-child(4) {
    transition-delay: 0.6s;
}

.image-card:hover {
    filter: brightness(0.8);
    transform: translateY(-8px);
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.25), 0 12px 16px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #000;
}

.image-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    position: relative;
    top: 0;
    flex-grow: 1;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover .image-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    gap: 0.25rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover .project-meta {
    transform: translateY(0);
    opacity: 1;
}

.location, .year {
    font-size: 0.9rem;
    opacity: 0.8;
}

.year {
    color: #929292;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 4vw 1.5rem 4vw;
  background: #191919;
  color: #b3b3b3;
  font-family: var(--font-primary, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.1rem;
  width: 100%;
  margin-top: 3rem;
}

.footer-title {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 1.2rem;
}

.footer-grid a {
  color: #b3b3b3;
  text-decoration: none;
  margin-bottom: 0.7rem;
  display: inline-block;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    font-size: 1rem;
    padding: 2rem 2vw 1.2rem 2vw;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.98rem;
    padding: 1.5rem 2vw 1rem 2vw;
  }
}

/* Panel Footer */
.footer-panel {
  background: rgba(25, 25, 25, 0.95);
  border-radius: 12px;
  margin: 3rem auto 2rem auto;
  max-width: 900px;
  padding: 2.2rem 2.5rem 1.5rem 2.5rem;
  color: #ededed;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.11);
}

.footer-headline {
  font-size: 1.08rem;
  text-align: left;
  margin-bottom: 1.6rem;
  font-weight: 500;
  color: #ededed;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col-title {
  color: #b3b3b3;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.footer-link {
  color: #ededed;
  font-size: 0.97rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .footer-panel {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    max-width: 98vw;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
    .container, .hero, .image-grid {
        padding: 0 1rem;
    }
    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.1;
    }
    .hero-content h2 .intro-banner {
        font-size: 3rem;
    }
    nav ul {
        gap: 15px;
    }
    .image-grid {
        grid-template-columns: 1fr;
    }
    header {
        width: 60px;
    }
    
    header h1 {
        font-size: 20px;
        left: 30px;
    }
    
    .hero, main {
        margin-left: var(--header-width);
        width: calc(100vw - var(--header-width));
        max-width: calc(100vw - var(--header-width));
    }
}

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

/* Animation Classes */
.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Project Content Styles */
.project-content {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-hero-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-details {
    color: var(--white);
}

.project-details h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--white);
}

.project-details h2:first-child {
    margin-top: 0;
}

.project-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #b3b3b3;
}

.project-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.project-details ul li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #b3b3b3;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

@media (max-width: 768px) {
    .project-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-content {
        padding: 4rem 1rem;
    }

    .project-content h1 {
        font-size: 2.5rem;
    }
}

/* Case Study Specific Styles */
.case-study-section {
    margin-bottom: 4rem;
}

.case-study-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.section-label {
    font-size: 1rem !important;
    text-transform: uppercase;
    color: #666 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.1em;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem !important;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-category h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    color: #b3b3b3;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.redesign-goals {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.redesign-goals h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.redesign-goals ol {
    list-style: none;
    counter-reset: goals;
    padding: 0;
}

.redesign-goals li {
    counter-increment: goals;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.redesign-goals li:before {
    content: counter(goals) ".";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.redesign-goals strong {
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
}

.redesign-goals span {
    color: #b3b3b3;
}

.competitors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.competitor {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
}

.competitor h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.pros-cons {
    display: grid;
    gap: 1.5rem;
}

.pros h4, .cons h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    color: #b3b3b3;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pros li:before {
    content: "+";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.cons li:before {
    content: "-";
    position: absolute;
    left: 0;
    color: #f44336;
}

@media (max-width: 768px) {
    .tech-stack,
    .competitors {
        grid-template-columns: 1fr;
    }

    .case-study-section h2 {
        font-size: 2rem;
    }

    .redesign-goals {
        padding: 1.5rem;
    }
}

/* Project Phases */
.project-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.phase {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.phase h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.phase ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase li {
    color: #b3b3b3;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 1rem;
}

.phase li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

@media (max-width: 768px) {
    .project-phases {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .phase {
        padding: 1.2rem;
    }
}

/* Case Study Content Styles */
.subsection {
    margin-top: 3rem;
}

.subsection h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.findings-list,
.features-list,
.redesign-list,
.tech-list,
.conclusion-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.findings-list li,
.features-list li,
.redesign-list li,
.tech-list li,
.conclusion-list li {
    color: #b3b3b3;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.findings-list li:before,
.features-list li:before,
.redesign-list li:before,
.tech-list li:before,
.conclusion-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.full-width-image {
    width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prototype-showcase {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.reflection-note {
    font-style: italic;
    color: #b3b3b3;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
    .subsection h3 {
        font-size: 1.5rem;
    }

    .prototype-showcase {
        padding: 1rem;
    }

    .findings-list li,
    .features-list li,
    .redesign-list li,
    .tech-list li,
    .conclusion-list li {
        font-size: 1rem;
    }
}

.redesign-description {
    margin: 1.5rem 0;
}

.redesign-description p {
    color: #b3b3b3;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.redesign-description p:last-child {
    margin-bottom: 0;
}
