/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Funnel Display', sans-serif;
    background-color: #fff6ee;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}
 

/* Custom cursor for the entire site - Add here */
html, body {
    cursor: url('assets/cursor.svg') 16 16, auto;
  }
  
  /* For clickable elements, you might want to change the cursor to indicate they're interactive */
  a, button, input[type="submit"], input[type="button"], .project-card, .gallery-link {
    cursor: url('assets/cursorB.svg') 16 16, pointer;
  }


a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff83d3;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1px;
}

/* Header and Navigation */
header {
    padding: 20px 30px 20px 40px;
    position: relative;
    background-color: none;
}

.logo-mobile {
    display: none;
  }

/* New CSS for image logo hover*/
.logo {
    position: relative;
    display: inline-block;
  }
  
  .logo-normal, .logo-hover {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
  }
  
  .logo-hover {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
  }
  
  .logo:hover .logo-normal {
    opacity: 0;
  }
  
  .logo:hover .logo-hover {
    opacity: 1;
  }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
}

.nav-links a.active {
    font-weight: 400;
}



/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: calc(24vh - 50px); /* Approximately 35% from the top */
    padding-bottom: 20px;
    position: relative;
}

/* Hero Background SVG */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none; /* Adjust size as needed */
    height: 100%;
    max-height: none;
    background-image: url('assets/gradiente.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 100%; /* Adjust opacity as needed */
    z-index: -1; /* Places it behind the text */
    pointer-events: none; /* Makes it non-interactive */
    margin: 0;
    padding: 0;
}


.hero h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 35px;
    font-weight: 200;
    width: 100%;
    margin: 0 auto 25px auto; /* Reduced bottom margin */
    line-height: .8; 
    text-align: center;
    white-space: nowrap; /* Prevent line breaks */
}

.hero h2, .hero h3 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 60px;
    font-weight: 300;
    width: 100%;
    margin: 0 auto 20px auto; /* Reduced bottom margin */
    line-height: .8; 
    text-align: center;
    white-space: nowrap; /* Prevent line breaks */
}

.hero .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    position: relative;
    display: inline-block;
}

.hero-word {
    display: inline-block;
    font-weight: 600;
    transition: opacity 0.3s ease;
    color: #0c2f91;
    margin-left: 25px;
    min-width: 230px; /* Set a minimum width to prevent resizing */
    vertical-align: 0px; /* Align with surrounding text */
}



.hero-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.hero-icon {
    background: white;
    border-radius: 50%;
    display: flex;
    padding: 8px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-icon:hover {
    transform: translateY(-4px) rotate(-10deg);
    opacity: 0.8;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-icons {
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .hero-icon {
        width: 40px;
        height: 40px;
    }
}




.scroll-circle {
    position: absolute;
    left: 75%; /* Position the left edge at 50% of the container width */
    transform: translateX(-50%); /* Shift it left by 50% of its own width */
    top: 75%; /* Keep your existing vertical position */
    width: 170px;
    height: 170px;
}

.rotating-svg {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.arrow-down {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.arrow-down img {
    width: 42px;
    height: 42px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.arrow-down {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Counter-rotate to keep the arrow pointing down */
    animation: none;
}

@keyframes rotate-opposite {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Projects Section */
.projects {
    padding: 50px;
    padding-left: 60px;
    padding-right: 60px;
}


/* Project Tags */
.project-tags {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid #0c2f91;
    border-radius: 20px;
    color: #0c2f91;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
}

/* Project Button */
.project-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0c2f91;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 400;
    font-size: 15px;
    margin-top: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-button:hover {
    background-color: #ff83d3;
    color: white;
    transform: translateY(-2px);
}

.project-button svg {
    transition: transform 0.3s ease;
}

.project-button:hover svg {
    transform: translate(2px, -2px);
}

/* For reversed project rows, align button to the right */
.project-row.reverse .project-button {
    margin-left: auto;
}

.project-row.reverse .project-tags {
    justify-content: flex-end;
}

/* Responsive styles */
@media (max-width: 1000px) {
    .project-row.reverse .project-button {
        margin-left: 0;
    }

    .project-row.reverse .project-tags {
        justify-content: flex-start;
    }
}


/* New Project List Layout */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-row.reverse .project-info {
    text-align: right; /* Right-justify text for the reversed row */
}

.project-image-container {
    /* flex: 0 0 56%; */
    height: 330px;
    width: auto;
    align-content: center;
}

.project-image {
    position: relative;
    min-height: 330px;
    width: 100%;
    overflow: hidden;
    background-color: transparent; /* Remove background color as we'll use images */
}

.work-page .project-image {
    max-height: 330px; /* or whatever height you want */
    object-fit: cover; /* Add this line */
    object-position: center; /* Add this line */
    display: block; /* Add this line */
}


/* here STARTS all the hover images for transition*/
/* Style for the default and hover images */
.project-image-normal,
.project-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the entire container */
    transition: opacity 0.4s ease; /* Smooth transition between images */
}

/* Initially show the normal image and hide the hover image */
.project-image-normal {
    opacity: 1;
}

.project-image-hover {
    opacity: 0;
}

/* On hover, hide the normal image and show the hover image */
.project-image:hover .project-image-normal {
    opacity: 0;
}

.project-image:hover .project-image-hover {
    opacity: 1;
}

/* Add the same effect for project cards in the work page */
.project-card .project-image {
    position: relative;
    width: 100%;
    min-height: 330px;
    overflow: hidden;
    background-color: transparent;
}

.project-card .project-image-normal,
.project-card .project-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.project-card .project-image-normal {
    opacity: 1;
}

.project-card .project-image-hover {
    opacity: 0;
}

.project-card .project-image:hover .project-image-normal {
    opacity: 0;
}

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

/*ENDS here */


.project-info {
    flex: 0 0 33.333%;
}

.project-title {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 10px;
}

.project-subtitle {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #666;
}

/* Add this to your styles.css file for the button */
.cta-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 100px;
}

.cta-button {
    display: inline-block;
    background-color: #0c2f91;
    color: #fff;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.cta-button:hover {
    background-color: #ff83d3;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive styles for the button */
@media (max-width: 480px) {
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}


/* About Section */
.about {
    padding: 0 0 50px;
    position: relative;
}

.about-content {
    padding: 0 30px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 400;
    font-size: 35px;
    margin-bottom: 20px;
    text-align: center;
}

.about p {
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    font-weight: 300;
    text-align: center;
}

/* Scrolling text styles */
.marquee-container {
    width: 100%;
    padding: 30px 40px;
    overflow: hidden;
  }
  
  .marquee {
    display: flex;
    width: max-content;
  }
  
  .marquee-content {
    white-space: nowrap;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 40px;
    color: #ff83d3;
    display: flex;
    animation: scroll 60s linear infinite;
    margin-right: 7px; /* This adds space between each marquee-content section */
  }
  
  @keyframes scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }


/* Pinterest-style gallery with CSS Columns - eliminates vertical gaps */
/* Pinterest-style gallery with CSS Columns */
.gallery {
    column-count: 3; /* Create 3 columns on desktop */
    column-gap: 20px; /* Space between columns */
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 35px;
  }
  
  .gallery-item {
    break-inside: avoid; /* Prevent items from breaking across columns */
    margin-bottom: 20px; /* Space between items vertically */
    display: block;
    width: 100%; /* Ensure items take full width of their column */
  }
  
  .gallery-link {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .gallery-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-link:hover .gallery-image {
    transform: scale(1.03);
  }
  
  /* Responsive adjustments */
  @media (max-width: 1000px) {
    .gallery {
      column-count: 2; /* 2 columns on tablets */
    }
  }
  
  @media (max-width: 600px) {
    .gallery {
      column-count: 1; /* 1 column on mobile */
    }
  }


/* Contact Section */


/* You may also need to override the general link hover color for these specific links */


@keyframes rotate-slow-hover {
    from { transform: rotate(0deg) scale(1.2); }
    to { transform: rotate(360deg) scale(1.2); }
}


/* Add specific icon backgrounds */
.email-icon, .linkedin-icon {
    background-image: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: none;
    position: relative;
}

.icon-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url('assets/contacticon.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: rotate-slow 20s linear infinite;
    transition: transform 0.3s ease;
}

/* Ensure text is still visible on top of the SVG */

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Counter-rotation for text so it stays upright */
@keyframes rotate-counter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.phone {
    margin-top: 60px;
    margin-bottom: 50px;
    font-size: 20px;
    text-decoration: underline;
}

.cv-link {
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 100px;
    font-family: 'Funnel Display', sans-serif;
    font-size: 22px;
    text-decoration: underline;
}

/* Project Detail Page */
/* Project Grid for Work Page */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 40px 40px; /* Increased row gap to 80px (vertical) while keeping column gap at 30px (horizontal) */
    margin-bottom: 50px;
}

.project-card {
    transition: transform 0.3s ease;
    margin-bottom: 0; /* Remove this since we're using grid gap instead */
    position: relative; /* Add this to establish a stacking context */
    display: flex;
    flex-direction: column;
    max-width: 830px;
}

.project-card .project-image {
    width: 100%;
    min-height: 330px; /* Adjusted height */
    background-color: #e0e0e0;
    margin-bottom: 15px; /* Add space between image and title */
}

.project-card .project-title {
    margin-bottom: 5px; /* Reduced spacing between title and tags */
}

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

/* Project Card Details */
.project-card-details {
    padding: 10px 0 25px; /* Increased bottom padding */
    position: relative; /* Ensure details stay with their card */
    z-index: 1; /* Ensure details stay above other elements */
}

/* Project Card Tags */
.project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.project-card .tag {
    display: inline-block;
    padding: 3px 10px;
    border: 2px solid #0c2f91;
    border-radius: 20px;
    color: #0c2f91;
    font-family: 'Plus Jakarta Sans', sans-serif;;
    font-weight: 400;
    font-size: 13px;
}

.project-card .project-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
  }

/* Project Card Button */
.project-card .project-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0c2f91;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-card .project-button:hover {
    background-color: #ff83d3;
    color: white;
    transform: translateY(-2px);
}

.project-card .project-button svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.project-card .project-button:hover svg {
    transform: translate(2px, -2px);
}

.project-detail {
    padding: 50px 0;
}

.project-detail h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-align: center;
}

.project-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.project-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.project-img {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
}

/* Responsive adjustments for project cards */
@media (max-width: 768px) {
    .project-card-details {
        padding: 8px 0 12px;
    }
    
    .project-card .project-button {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* Footer */
footer {
    padding: 30px 30px 30px 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

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

.footer-left {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    color: #0c2f91;
}


.footer-logo {
    font-family: 'Funnel Display', sans-serif;
    font-size: 25px;
}

.copyright {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 200;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* PROJECT DETAIL PAGES STYLES */

/* General Project Page Styles */
.project-detail-page {
    background-color: #fff6ee;
}

/* Project Hero Section */
.project-hero {
    padding: 40px 60px 80px;
}

.project-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.project-intro h1 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 600;
    font-size: 48px;
    margin-bottom: 20px;
    color: #000000;
}

.project-intro .project-subtitle {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

.project-intro .project-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.project-hero-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Content Section */
.project-content {
    padding: 20px 60px 80px;
}

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

.project-overview h2 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 36px;
    margin-bottom: 20px;
    color: #0c2f91;
}

.project-overview p {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Project Sections */
.project-section {
    max-width: 800px;
    margin: 80px auto 40px;
    text-align: center;
}

.project-section h2 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 20px;
    color: #0c2f91;
}

.project-section h3 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.project-section p {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Project Images Grid */
.project-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

.project-image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full Width Image */
.project-image-full {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

.color-palette-section .centered-image {
    max-width: 900px; /* Adjust based on your image size */
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-palette-section .centered-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Social Grid Full */
.social-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

.social-grid-full .project-image-item {
    height: 100%;
    display: flex;
}

.social-grid-full .project-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the entire container */
}

/* Grid Variations */
.social-grid, .wireframe-grid, .final-design-grid {
    grid-template-columns: repeat(4, 1fr);
}

.flow-grid, .packaging-grid, .logo-grid, .applications-grid, .color-grid, .ui-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Two Column Grid */
.two-column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Next Project Section */
.next-project {
    background-color: #0c2f91;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.next-project h2 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    font-size: 24px;
}

.next-project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 400;
    font-size: 18px;
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.3s ease;
}




/* missing contact footers */
.contact-footer {
    display: flex;
    align-items: center; /* This will vertically center-align all elements */
    gap: 20px; /* This adds consistent spacing between all elements */
}

.contact-footer a {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-footer a:hover {
    color: #ff83d3;
}

.contact-footer img {
    flex-shrink: 0; /* Prevents the image from shrinking */
}





/* Media Queries */

@media (max-width: 1000px) {   

    .project-row, .project-row.reverse {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-image-container, .project-info {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .project-row.reverse .project-info {
        text-align: left; /* Reset text alignment on mobile */
    }

    .fancy-font {
        font-size: 29px;
    }

  

    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2, .hero h3 {
        font-size: 41px;
    }

    .hero-word {
        min-width: 155px; /* Reduced from 180px */
        margin-left: 10px; /* Reduced from 10px */
    }

    .scroll-circle {
        width: 120px;
        height: 120px;
        left: 50%; 
        top: 70%;
        margin-top: 30px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }


    .contact-links {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

}


@media (max-width: 480px) {

    .hero {
        padding-top: calc(28vh - 50px); /* Increased from the default 18vh - 50px */
    }

    .scroll-circle {
        left: 50%; 
        top: 70%;
        width: 120px;
        height: 120px;
        margin-top: 20px;
    }

    .projects {
        padding-top: 15px; 
    }

    .marquee-content {
        font-size: 24px;
        font-weight: 500;
      }


    .fancy-font {
        font-size: 28px;
    }


    .logo-normal, .logo-hover {
        display: none;
      }

    .logo-mobile {
        display: block;
        height: 28px; /* You can adjust height as needed */
        width: auto;
    }

    .logo:hover .logo-mobile {
        opacity: 1; /* Ensure it stays visible on hover */
      }

    .hero h1 {
        font-size: 22px;
        line-height: .5;
    }
    
    .hero h2, .hero h3 {
        font-size: 26px;
        line-height: .5;
    }

    .hero-word {
        min-width: 100px; /* Even smaller for very small screens */
        margin-left: 9px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .about p {
        font-size: 16px;
    }

    .project-detail h1 {
        font-size: 32px;
    }


    /* Project Detail Mobile Styles */
    .project-hero {
        padding: 30px 20px 60px;
    }
    
    .project-intro {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .project-intro h1 {
        line-height: 1.2;
        font-size: 36px;
    }
    
    .project-hero-image {
        width: 100vw; /* Use viewport width */
        max-width: 100vw;
        margin-left: calc(-50vw + 50%); /* Center the element */
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
    }
    
    .project-content {
        padding: 20px 20px 60px;
    }
    
    .project-images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .flow-grid, 
    .packaging-grid, 
    .logo-grid, 
    .applications-grid, 
    .color-grid, 
    .ui-grid {
        grid-template-columns: 1fr;
    }
    
    .project-section h2 {
        font-size: 28px;
    }

    .project-hero .container {
        padding: 0;
        max-width: 100%;
    }
    
    .project-hero-image img {
        width: 100%;
        display: block;
    }
}