html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Base styles for the navigation */
body {
    font-family: sans-serif;
    color: #314156;
}

nav {
    background-color: #314156;
    width: 100%;
    margin: 0 auto;
}

/* Top navigation styling */
.topnav {
    width: 85%;
    margin: 0 auto;
    background-color: #314156;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Links within the navigation */
.topnav a {
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 24px;
}

/* Logo styling */
.topnav .logo-link {
    padding: 0;
}

.topnav .logo {
    height: 50px;
    margin: 10px 0;
}

/* Hover effect for links */
.topnav a:hover {
    text-decoration: underline;
    text-underline-offset: 12px;
    color: #E8724C;
    transition: ease-in 0.4s;
}

/* Active page indicator */
.topnav a.active {
    text-decoration: underline;
    text-underline-offset: 12px;
    color: #fff;
}

/* Group navigation links - DESKTOP VIEW */
.topnav .nav-links {
    display: flex;
    align-items: center;
}

/* Hamburger menu icon (hidden by default) */
.topnav .icon {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    background-color: #314156;
    width: 100%;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    width: 85%;
    margin: 0 auto;
    padding: 100px 0;
    position: relative;
}

.hero-text {
    position: relative;
    z-index: 2; /* Make text appear above the squiggle */
    max-width: 80%;
    color: #fff;
}

.hero-content h1 {
    font-size: 96px;
    margin: 5px 0 20px 0;
    line-height: 1;
    font-weight: bold;
}

.hero-content h2 {
    font-size: 64px;
    margin: 5px 0;
    line-height: 1;
}
.hero-content p {
    font-size: 24px;
    color: #fff;
    margin: 20px 0;
}

.squiggle-container {
    position: absolute;
    right: -12%; /* Adjusted to bring it closer to the viewport */
    top: 0;
    height: 100%;
    z-index: 1; /* Ensure it appears behind the text but above the background */
    display: flex;
    width: 534px;
}

.squiggle {
    max-width: 600px; /* Adjust size as needed */
    height: auto;
    opacity: 0.2; /* Increased opacity for better visibility */
}

/* FEATURED WORK SECTION */
.featured-work {
    width: 85%; /* Ensure the section spans a consistent width */
    margin: -300px auto; /* Center the section horizontally */
    text-align: left; /* Center-align the heading and content */
    z-index: 2;
}

.fw-header {
    font-size: 48px;
    color: #fff;
    margin-bottom: 40px;
    text-align: left; /* Center-align the heading */
    max-width: 1082px; /* Limit the width of the heading */
    margin: 0 auto; /* Center the heading horizontally */
    position: relative;
    z-index: 3;
}

/* Update to your existing work-items CSS to make it responsive */
.work-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Changed from center to stretch */
    margin: 0 auto;
    max-width: 1082px;
    position: relative;
    z-index: 3;
}

.work-items a {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Creates a 4:3 aspect ratio container */
    position: relative;
    overflow: hidden;
}

.work-items a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key - makes images cover the container */
    transition: transform 0.3s ease;
}

.work-items a img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .work-items {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
    
    .featured-work {
        margin: -150px auto;
    }
    
    .fw-header {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    .featured-work {
        margin: -100px auto;
    }
    
    .work-items {
        gap: 15px;
    }
}

.featured-work a {
    font-size: 24px;
    color: #314156;
    text-decoration: none;
}
.featured-work a :hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    color: #E8724C;
    transition: ease-in 0.4s;
}


/* Responsive styles */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 72px;
    }
    
    .hero-content h2 {
        font-size: 48px;
    }
    
    .squiggle {
        max-width: 600px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 56px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .squiggle-container {
        right: -30%;
    }
    
    .squiggle {
        max-width: 500px;
    }
    
    .hero-text {
        max-width: 100%;
    }
}


.no-scroll {
    overflow: hidden; /* Disable scrolling */
    height: 100vh; /* Prevent the page from extending vertically */
}


/* Mobile Navigation Styles */
@media screen and (max-width: 600px) {
    /* Hide regular navigation links */
    .topnav .nav-links {
        display: none;
        position: fixed;
        top: 70px; /* Height of the navbar */
        left: 0;
        right: 0;
        width: 100%;
        background-color: #314156;
        flex-direction: column;
        z-index: 1000;
        height: calc(100vh - 70px); /* Full height minus navbar */
        padding-top: 20px; /* Add padding at the top to bring links higher */
    }

    /* Adjust topnav for mobile */
    .topnav {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        position: relative;
        height: 70px; /* Fixed height for navbar */
    }

    /* Show hamburger icon */
    .topnav .icon {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%; /* Position at 50% from the top of the container */
        transform: translateY(-50%); /* Move up by half its own height */
    }

    /* Responsive logo adjustment */
    .topnav .logo {
        height: 40px;
    }

    /* Responsive state styles */
    .topnav.responsive {
        flex-wrap: wrap;
    }

    .topnav.responsive .nav-links {
        display: flex !important; /* Force display with !important */
        width: 100%;
        padding-bottom: 10px;
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
    }

    .topnav.responsive .nav-links a {
        width: 100%;
        text-align: center; /* Center the text within links */
        padding: 20px 16px;
        border-top: none; /* Remove border */
        margin-bottom: 10px; /* Add space between links */
    }
    
    /* Mobile hero adjustments */
    .hero-content {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .squiggle-container {
        right: -50%;
    }
    
    .squiggle {
        max-width: 400px;
    }
}

.about-me {
    width: 85%;
    margin: 0 auto;
    padding-top: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.am-img {
    margin-right: 90px;
}
.am-info h1 {
    font-size: 128px;
    color: #C6D5EA;
    margin: 0 auto;
}
.am-info h2{
    font-size: 36px;
    color: #314156;
    margin: 0 auto;
}
.am-info p {
    font-size: 20px;
    color: #314156;
    padding-top: 10px;
    max-width: 400px;
}
.am-info a {
    font-size: 24px;
    color: #314156;
    margin-bottom: 20px;
    text-decoration: none;
    }
.am-info a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    color: #E8724C;
    transition: ease-in 0.4s;
}


/* CONTACT */
.contact-me {
    padding-top: 200px;
}
.cm-header {
    font-size: 48px;
    color: #314156;
    margin-bottom: 40px;
    text-align: left; /* Center-align the heading */
    max-width: 1082px; /* Limit the width of the heading */
    margin: 0 auto; /* Center the heading horizontally */
}
.info-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.cm-info {
    margin: 90px;
    z-index: 2;
}
.cm-info h2 {
    font-size: 48px;
    color: #314156;
    z-index: 2;
}
.cm-info p {
    font-size: 24px;
    color: #314156;
    max-width: 400px;
    z-index: 2;
}
.cm-info i{
    font-size: 24px;
    color: #314156;
    margin-right: 10px;
    z-index: 2;
}
.cm-img a {
    font-size: 24px;
    color: #314156;
    margin-bottom: 20px;
    text-decoration: none;
    z-index: 2;
}
.cm-img a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    color: #E8724C;
    transition: ease-in 0.4s;
    z-index: 2;
}
.cm-img {
    z-index: 2;
}
.cm-background {
    background-color: #C6D5EA;
    height: 500px;
    width: 100%;
    position: absolute;
    margin: -625px auto;
    z-index: 0;
}


footer {
    display: block; /* Use Flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center-align text */
    padding-top: 100px;
    background-color: #fff;
    width: 100%;
}

footer i {
    font-size: 48px;
    color: #314156; /* Ensure icons match the footer text color */
    margin: 20px;
}

footer p {
    font-size: 20px;
    color: #314156; /* Ensure text matches the footer color */
    margin: 10px 0; /* Add spacing between paragraphs */
}






/* About Page styles start here */

/* Update to the about page hero section */
.a-hero {
    background-color: #314156;
    width: 100%;
    min-height: 30vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.a-hero-content {
    width: 85%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 0;
    position: relative;
}

.hero-text {
    position: relative;
    z-index: 2;
}
.hero-text p {
    font-size: 24px;
    color: #fff;
    margin: 20px 0;
    max-width: 1060px;
}
.a-hero-content h1 {
    font-size: 64px;
    margin: 5px 0 20px 0;
    line-height: 1;
    font-weight: bold;
}

.a-hero-content h2 {
    font-size: 48px;
    margin: 5px 0;
    line-height: 1;
}

.a-portrait-container {
    position: relative;
    z-index: 2;
    max-width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

.portrait {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Add a background element styled like a large monogram */
.a-hero::before {
    content: "";
    position: absolute;
    background-image: url('path-to-monogram.svg'); /* Create a monogram SVG or use existing asset */
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    width: 80%;
    height: 100%;
    top: 0;
    left: 10%;
    z-index: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .a-hero-content {
        flex-direction: column;
        padding: 60px 0;
    }
    
    .hero-text, .a-portrait-container {
        max-width: 100%;
    }
    
    .portrait {
        margin-right: 0;
        margin-top: 30px;
    }
}

.a-info {
    width: 85%;
    margin: 0 auto;
    max-width: 1060px;
}

.a-info h1 {
    font-size: 64px;
    color: #314156;
}

.a-info p, li {
    font-size: 24px;
    color: #314156;
}

/* Work Page styles start here */
/* Contact Page styles start here */
.contact-info {
    width: 100%;
    margin: 0 auto;
    background-color: #314156;
}
.ci-info{
    width: 85%;
    margin: 0 auto;
    padding-top: 1px;
    padding-bottom: 100px;

}
.ci-info h2 {
    font-size: 64px;
    color: #fff;
    margin-bottom: 20px;
}
.ci-info h3 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}
.ci-info p {
    font-size: 24px;
    color: #fff;
    max-width: 600px;
    margin-bottom: 20px;
}


/* Project Page styles start here */
.project-info {
    width: 85%;
    margin: 0 auto;
}
.project-info h4 {
    font-size: 32px;
    color: #314156;
    margin-bottom: 20px;
}
.project-info p {
    font-size: 24px;
    color: #314156;
    max-width: 1060px;
    margin-bottom: 20px;
}

.project-images {
    padding-top: 50px;
    display: grid;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Changed from center to stretch */
    margin: 0 auto;
    max-width: 1060px;
}
.image-container img{
    width: 100%;
    height: auto;
}
.image-container img:hover {
    transform: scale(1.05); /* Scale the image on hover */
    transition: transform 0.4s ease-in; /* Smooth transition */
}




