/* Reset and basic styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Body and font styles */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    color: #333;
    font-weight: 400;
    line-height: 1.6;
}

/* header Styling */

header {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header Logo section */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1);
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo span:hover {
    transform: scale(1.1);
    color: #66a6ff;
}

/* Toggle Button Styling */

.toggle-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: transparent;
    border: none;
    padding: 8px;
    transition: color 0.3s;
}

/* Navigation Links */

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #66a6ff;
}


/* Button & Dropbtn Unified Styling */
.btn,
.dropbtn {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.dropbtn:hover {
    background: linear-gradient(to right, #4ca1af, #2c3e50);
    transform: translateY(-3px) scale(1.05);
}

.dropbtn img {
    width: 20px;
    height: 14px;
    margin-right: 8px;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    min-width: 160px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.dropdown-content a img {
    width: 20px;
    height: 14px;
    margin-right: 8px;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Navigation Styling (optional) */
nav.links a,
.dropbtn {
    margin-right: 10px;
}

/* Projects Section */
.projects {
    padding: 100px 20px;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
}

/* Container styling */
.container {
    max-width: 900px;
    margin: auto;
    padding-top: 50px;
}

/* Project Box */
.project {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.project h3 {
    color: #333;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive iframe container */

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Button Styling */

.project .btn {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    margin-top: 20px;
    display: inline-block;
    transition: 0.3s ease;
}

.project .btn:hover {
    background: #66a6ff;
    color: #333;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Footer Styling */

footer {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Footer Content */

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 20px;
}

/* Footer Links */
.footer-links {
    flex: 1;
    text-align: left;
}

.footer-links p a {
    color: #fff;
    margin: 0 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links p a:hover {
    color: #66a6ff;
    font-weight: 500;
    /* Emphasized hover effect */
}

/* Social Media Icons */
.footer-social {
    flex: 1;
    /* Ensuring Footer Links and Social Media remain side by side */
    text-align: right;
    margin-left: 30px;
}

.footer-social a {
    margin: 0 10px;
    font-size: 1rem;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: #66a6ff;
    transform: scale(1.2);
}

/* Keep separators (|) on larger screens */
.footer-links p a::after {
    content: " | ";
}

.footer-links p a:last-child::after {
    content: "";
    /* Removes separator from last item */
}

/* Footer Bottom Text */

.footer-bottom {
    margin-top: 30px;
    font-size: 16px;
    opacity: 0.8;
}

/* Responsive styling */

/* Small screensphones up to 768px */
/* Styles for most mobile phones (portrait & landscape) */
@media (max-width: 768px) {

    /* General Body Adjustments */
    body {
        font-size: 16px;
    }

    /* Header Adjustments */
    header {
        padding: 10px 20px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .toggle-btn {
        display: block;
    }

    nav {
        background: linear-gradient(to right, #2c3e50, #4ca1af);
        display: none;
        gap: 3px;
        /* Smaller gap on mobile */
        text-align: center;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    nav.show {
        display: flex;
    }

    nav a {
        margin: 5px 0;
        padding: 5px;
        font-size: 0.9rem;
        text-decoration: none;
    }

    /* Adjust dropdown for mobile */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .btn,
    .dropbtn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.9rem;
        text-decoration: none;
        background-color: #2c3e50;
        color: white;
        border-radius: 5px;
        transition: background 0.3s ease;
        cursor: pointer;
        width: 100%;
    }

    .btn:hover,
    .dropbtn:hover {
        background-color: #4ca1af;
    }

    /* Ensure dropdown matches .btn styles */
    .dropbtn {
        width: 100%;
        text-align: center;
    }

    .dropbtn img {
        margin-right: 5px;
    }

    .dropdown-content {
        background: linear-gradient(to right, #2c3e50, #4ca1af);
        position: absolute;
        /* This keeps it from affecting the "Home" button */
        top: 100%;
        /* Position it directly below the button */
        left: 0;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        display: none;
        border-radius: 5px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 8px 12px;
        font-size: 0.85rem;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    /* Project Adjustments */

    .projects {
        padding: 80px 15px;
    }

    .project {
        padding: 30px;
    }

    .project h3 {
        font-size: 1.2em;
    }

    .project p {
        font-size: 1em;
    }

    .project .btn {
        display: inline-block;
        margin: 10px;
    }

    .iframe-container {
        padding-bottom: 100%;
        /* Taller iframe for tablets */
        padding-top: 75%;
    }

    /* Footer Adjustments */
    /* Mobile View: Stacking Side by Side */
    /* Footer container */

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Ensure links display in a row */
    .footer-links p {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Reduce space between links */

    .footer-links p a {
        display: block;
        margin: 5px 0;
        font-size: 0.95rem;
        white-space: nowrap;
        /* Prevents breaking into multiple lines */
    }

    /* Ensuring the H2 elements are aligned properly */
    .footer-links h2,
    .footer-social h2 {
        font-size: 1.2rem;
    }

    /* Remove separator on mobile */
    .footer-links p a::after {
        content: "";
    }

    .footer-bottom {
        font-size: 0.85em;
        margin-top: 20px;
    }
}

/* Medium devices (tablets) */
/* Large phones and small laptops: 769px to 1024px */
/* Styles for tablets and small laptops */
@media (min-width: 769px) and (max-width: 1024px) {

    /* General Body Adjustments */
    body {
        font-size: 20px;
    }

    /* Header Adjustments */
    header {
        padding: 15px 25px;
        flex-wrap: wrap;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo span {
        font-size: 1.4rem;
    }

    nav {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }

    nav a {
        font-size: 1rem;
        padding: 10px;
    }

    /* Adjust dropdown */

    /* Dropdown */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropbtn {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px 12px;
        /* Adjust padding */
    }

    .dropbtn img {
        margin-right: 5px;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        /* Increased width */
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .dropdown-content a {
        padding: 10px 16px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        cursor: pointer;
        white-space: nowrap;
        /* Prevent text from wrapping */
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Project Adjustments */

    .project h3 {
        font-size: 1.2em;
    }

    .project {
        padding: 40px;
    }

    .project p {
        font-size: 1em;
    }

    .project .btn {
        display: inline-block;
        margin: 10px;
    }

    .iframe-container {
        padding-bottom: 75%;
        /* Standard 4:3 aspect ratio */
    }

    /* Footer Section */

    footer {
        padding: 20px 15px;
        font-size: 14px;
    }

    /* Footer container */

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Ensuring separator remains */
    .footer-links p a::after {
        content: "";
    }

    .footer-links p a:last-child::after {
        content: "";
    }

    /* Ensure links display in a row */

    .footer-links p {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ensuring the H2 elements are aligned properly */
    .footer-links h2,
    .footer-social h2 {
        font-size: 24px;
    }

    /* Reduce space between links */

    .footer-links p a {
        display: block;
        margin: 5px 0;
        font-size: 0.95rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Large devices (laptops & small desktops) */
/* Medium to Large Screens: 1025px - 1200px */
/* Styles for standard laptops and desktops  1025px - 1440px*/
@media (min-width: 1025px) and (max-width: 1200px) {

    /* General Body Adjustments */

    body {
        font-size: 22px;
    }

    /* Header Adjustments */

    header {
        padding: 20px 35px;
        flex-wrap: wrap;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .logo span {
        font-size: 1.6rem;
    }

    nav {
        display: flex;
        justify-content: flex-end;
        gap: 15px;
    }

    nav a {
        font-size: 1.2rem;
        padding: 10px;
    }

    /* Adjust dropdown for mobile */

    /* Dropdown */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .btn,
    .dropbtn {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 8px;
    }

    .dropbtn img {
        margin-right: 5px;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        /* Ensure it positions correctly */
        right: 0;
        width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .dropdown-content a {
        padding: 10px 16px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Project Adjustments */

    .project h3 {
        font-size: 1.4em;
    }

    .project {
        padding: 45px;
    }

    .project p {
        font-size: 1.2em;
    }

    .project .btn {
        display: inline-block;
        margin: 10px;
    }

    .iframe-container {
        padding-bottom: 75%;
        /* Standard 4:3 aspect ratio */
    }


    /* Footer Section */
    .footer-content {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Extra large devices (big desktops, wide screens) */
/* Styles for large screens, ultra-wide monitors */
@media (min-width: 1441px) {

    /* Header Adjustments */

    .header {
        padding: 30px 70px;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    .nav a {
        font-size: 20px;
        padding: 12px 18px;
    }

    .btn,
    .dropbtn {
        font-size: 1.5rem;
    }

    /* Project Adjustments */

    .project h3 {
        font-size: 1.6em;
    }

    .project {
        padding: 50px;
    }

    .project p {
        font-size: 1.4em;
    }

    .project .btn {
        display: inline-block;
        margin: 10px;
    }

    .iframe-container {
        padding-bottom: 75%;
        /* Standard 4:3 aspect ratio */
    }

    /* Footer Section */
    .footer-content {
        flex-direction: row;
        justify-content: space-around;
    }
}