body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}


/* Navigation Bar */


.nav {
    background: rgb(255, 255, 255);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.nav li {
    margin: 0 1.5rem;
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav a:hover {
    color: #c02727;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: #000000;
    border-radius: 5px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hero-image {
    background-image: url('futuristic-background.jpg');
    background-color: #cccccc;
    height: 500px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: inset;
    filter: brightness(75%);
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Bebas neue', sans-serfif;
    font-size: 100px;
    text-shadow: 0 5px 20px rgba(238, 46, 8, 0.4);
    letter-spacing: 10px;
}

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

.intro-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
}

.intro-section h1 {
    color: #000000;
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    /* H1 scales between 1.5rem and 3rem */
}

.intro-section p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
}

.project {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(105, 15, 15, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 2rem;
}

.project-content h2 {
    color: #c02727;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-style: italic;
}

.project-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
}

.modal-content h1,
h2,
h3 {
    font-family: 'Bebas Neue', sans-serif;
}


@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-hero {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.modal-body {
    padding: 3rem;
}

.modal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h2 {
    color: #c02727;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    color: #495057;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.modal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.image-container {
    width: 100%;
    height: 300px;
    background: #f1f3f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1rem;
    border: 2px dashed #dee2e6;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.full-width-image {
    width: 100%;
    height: 400px;
    background: #f1f3f5;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border: 2px dashed #dee2e6;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #747475;
}

.feature-item h4 {
    color: #595a5b;
    margin-bottom: 0.5rem;
}


/* Footer Section */

footer {
    background-color: rgb(208, 208, 208);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-list {
    padding: 0;
}

.footer-list li {
    display: inline;
    margin: 0 1rem;
    color: rgb(0, 0, 0);
    list-style: none;
}

.footer-list a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #c02727;
}

.get-in-touch-and-socials {
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    gap: 30%;
    justify-content: center;
    padding: 0 20px;
}

.contact-info-container {
    display: grid;
    grid-template-columns: auto;
    justify-content: center;
    column-gap: 2rem;
    row-gap: 1rem;
}

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

.info img {
    width: 32px;
    height: 32px;
    filter: invert(0%);
    transition: filter 0.3s;
}

.info a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 1px;
    transition: color 0.2s;

}

.social-media-accounts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.social-media-accounts a img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    border-radius: 8px;
}

/* Footer Section End */

/* Developed by Section */
.developed-by {
    background-color: rgb(208, 208, 208);
    text-align: center;
    padding: 1rem 0;
    margin-top: 50px;
    color: #000000;
    font-size: 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

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

    .project-image {
        height: 250px;
    }

    .container {
        padding: 1rem;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
    }

    .modal-hero {
        height: 300px;
    }

    .modal-body {
        padding: 1.5rem;
    }

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

/* ================================================================= */
/* MEDIA QUERIES FOR RESPONSIVENESS */
/* ================================================================= */

/* ----------------------------------------------------------------- */
/* Tablet/Small Laptop Size (max-width: 1024px) */
/* ----------------------------------------------------------------- */
@media (max-width: 1024px) {

    .nav li {
        margin: 0 1rem;
    }

    .hero-image {
        height: 400px;
    }

    .hero-text {
        font-size: 80px;
        letter-spacing: 8px;
    }

    /* Contact Info Display */
    .contact-info-display {
        max-width: 90%;
    }

    .contact-info-display h2 {
        font-size: 28px;
    }

    .info-item .label {
        font-size: 22px;
    }

    .info-item .value a,
    .info-item .value {
        font-size: 18px;
    }

    .get-in-touch-and-socials {
        margin-top: 100px;
        gap: 20%;
    }
}

/* ----------------------------------------------------------------- */
/* Mobile Size (iPhone/Android, max-width: 767px) */
/* ----------------------------------------------------------------- */
@media (max-width: 767px) {
    .nav {
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
        margin: 0;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgb(255, 255, 255);
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    .nav li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav ul.active {
        display: flex;
    }

    .hero-image {
        height: 300px;
    }

    .hero-text {
        font-size: 50px;
        letter-spacing: 5px;
    }

    .contact-info-display {
        padding: 30px 15px;
        margin: 30px auto;
    }

    .contact-info-display h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        margin-bottom: 15px;
    }

    .info-item .label {
        font-size: 20px;
    }

    .info-item .value a,
    .info-item .value {
        font-size: 16px;
    }

    /* FOOTER SECTIONS */
    .get-in-touch-and-socials {
        margin-top: 50px;
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }

    .footer-list li {
        margin: 0 0.5rem;
    }

    .footer-list a {
        font-size: 16px;
    }

    .developed-by {
        padding: 0.5rem 10px;
        margin-top: 30px;
        font-size: 14px;
    }
}


/* ----------------------------------------------------------------- */
/* ULTRA-MOBILE SIZE (e.g., iPhone SE, Max-width: 480px) */
/* ----------------------------------------------------------------- */
@media (max-width: 480px) {

    .hero-text {
        font-size: 40px;
        letter-spacing: 3px;
    }

    .footer-list li {
        display: block;
        margin: 5px 0;
    }

    .footer-list {
        padding: 0;
    }
}