﻿/* General Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a, #068000); /* Deeper dark blue gradient */
    color: #333;
}

/* Style for the header */
header {
    background: #333;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: center; /* Center the content */
    align-items: center; /* Vertically align items in the center */
    height: 100px; /* Adjust header height as necessary */
    position: relative;
}

    /* Style for the logo */
    header .logo {
        position: absolute; /* Position the logo on the left */
        left: 20px; /* Space from the left side */
    }

        header .logo img {
            width: 60px; /* Adjust the size of the logo */
            height: auto;
        }

    /* Style for the title and bridging message (Centered) */
    header div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-grow: 1; /* Allow this section to take up available space */
    }

    header h1 {
        margin: 0;
        font-size: 2em; /* Adjust font size for the heading */
    }

    header p {
        margin: 10px 0; /* Adds margin between the heading and the paragraph */
        font-size: 1.2em;
    }

/* Add responsiveness */
@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 20px 0;
    }

    /* Center logo on mobile */
    header .logo {
        position: relative;
        display: block;
        margin-bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

    header .logo img {
        width: 60px;
        height: auto;
    }

    /* Adjust title and paragraph section */
    header div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-grow: 1;
        width: 100%;
        padding: 0 20px; /* ✅ ADDED: horizontal padding to prevent edge hugging */
        box-sizing: border-box; /* ✅ ENSURES padding doesn't cause overflow */
    }

    header h1 {
        margin: 10px 0;
        font-size: 2em;
        max-width: 700px; /* ✅ OPTIONAL: prevents overly wide text on larger phones */
    }

    header p {
        margin: 5px 0;
        font-size: 1.2em;
        line-height: 1.4; /* ✅ ADDED: improves legibility */
        max-width: 700px; /* ✅ OPTIONAL: keep it visually balanced */
    }
}

/* Regular Navigation */
nav {
    display: flex;
    justify-content: center;
    background-color: #222;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    position: relative;
}

.nav-toggle {
    display: none; /* Hidden unless mobile */
}

/* Wrapper for 'Menu' + hamburger */
.nav-toggle-wrapper {
    display: none; /* hidden on desktop */
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    margin: 0 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    border: 2px solid transparent;
}

.nav-links li a:hover {
    color: white;
    border-color: white;
}

@media screen and (max-width: 1100px) {
  nav {
    position: relative; /* required for absolute dropdown positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    z-index: 10;
  }

  .nav-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    z-index: 20; /* ensure it’s above the dropdown */
  }

  .menu-label {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: inline-block;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100%; /* directly below the nav */
    left: 0;
    width: 100%;
    background-color: #222;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links.show {
    max-height: 400px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    width: 100%;
    font-size: 1.1rem;
    padding: 8px 12px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
  }

  .nav-links li a:hover {
    border-color: white;
  }
}


/* Overview Section Styles */
.overview {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 30px;
    margin: 25px auto;
    width: 85%; /* Slightly narrower for balance */
    max-width: 1000px; /* Reduced max-width for sleeker feel */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .overview:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.1);
    }

    .overview::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
        opacity: 0.6;
        z-index: 0;
    }

    .overview h2 {
        font-size: 2em; /* Slightly smaller for elegance */
        color: #ffffff;
        letter-spacing: 2px;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        animation: fadeInDown 1s ease-out;
        font-family: 'SF Pro Display', sans-serif;
    }

    .overview p {
        font-size: 1.1em; /* Adjusted for readability */
        line-height: 1.8;
        color: #d0d0d0; /* Brighter gray for contrast */
        margin-top: 20px;
        text-align: left;
        position: relative;
        z-index: 1;
        opacity: 0;
        animation: fadeInUp 1s ease-out 0.3s forwards;
        font-family: 'SF Pro Text', sans-serif;
    }

/* Keyframe Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Project Section */
.projects {
    padding: 50px 30px;
    background: linear-gradient(to bottom, #0f0f0f 0%, #1c1c1c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

    .projects::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.6" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="20" r="0.8" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="80" r="0.5" fill="rgba(255,255,255,0.12)"/></svg>');
        opacity: 0.1;
        pointer-events: none;
    }

    .projects h2 {
        font-size: 2.8em; /* Slightly smaller for refinement */
        color: #ffffff;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
        letter-spacing: 2px;
        animation: fadeInDown 1s ease-out;
        font-family: 'SF Pro Display', sans-serif;
        text-align: center;
    }

.project-category {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 900px; /* Constrain width for sleekness */
    margin-left: auto;
    margin-right: auto;
}

    .project-category:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.1);
    }

    .project-category h3 {
        font-size: 2em;
        margin-bottom: 20px;
        color: #ff9500;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        position: relative;
        font-family: 'SF Pro Display', sans-serif;
        text-align: left;
    }

        .project-category h3::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 40px;
            height: 2px;
            background: #ff9500;
            border-radius: 1px;
            transition: width 0.4s ease;
        }

        .project-category:hover h3::after {
            width: 80px;
        }

    .project-category p {
        font-size: 1.1em;
        color: #c0c0c0;
        text-align: left;
        line-height: 1.7;
        font-family: 'SF Pro Text', sans-serif;
    }

.project-item {
    margin-top: 20px;
    padding: 15px;
    color: #c0c0c0;
    border-left: 3px solid #ff9500;
    transition: all 0.4s ease;
    display: block; /* Ensures left alignment */
    text-align: left;
}

    .project-item:hover {
        background: rgba(255, 149, 0, 0.05);
        transform: translateX(8px);
    }

    .project-item h4 {
        font-size: 1.5em; /* Smaller for better hierarchy */
        margin-bottom: 10px;
        color: #ffffff;
        font-weight: 600;
        font-family: 'SF Pro Text', sans-serif;
    }

    .project-item p {
        font-size: 1em; /* Smaller for clarity */
        color: #c0c0c0;
        margin: 10px 0;
        text-align: left;
        font-family: 'SF Pro Text', sans-serif;
    }

    .project-item a {
        font-size: 1em;
        text-decoration: none;
        color: #ff9500;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
    }

        .project-item a::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: #ff9500;
            transition: width 0.3s ease;
        }

        .project-item a:hover::before {
            width: 100%;
        }

        .project-item a:hover {
            color: #ffaa33;
        }

.project-images {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

    .project-images img {
        width: 100%;
        max-width: 300px; /* Reduced size for balance */
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        transition: all 0.4s ease;
        filter: brightness(90%) contrast(110%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        object-fit: cover; /* Ensures images scale nicely */
    }

        .project-images img:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 149, 0, 0.2);
            filter: brightness(100%) contrast(115%);
        }

/* Footer Styling */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

    footer p {
        margin: 0;
        font-size: 0.9rem;
        opacity: 0.7;
    }

    footer a {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }

        footer a:hover {
            text-decoration: underline;
        }
