/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fafb;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container for content width */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #0d6efd;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 2rem;
}
nav ul li:first-child {
    margin-left: 0;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link:focus {
    color: #ffdd57;
    outline: none;
}

/* Hamburger (for mobile nav) */
#nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}
#nav-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

/* Main Sections Styling */
.section {
    padding: 3rem 0;
    background: white;
    border-radius: 10px;
    margin-top: 2.5rem;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.05);
}

h2 {
    border-bottom: 4px solid #0d6efd;
    display: inline-block;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    color: #0d6efd;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.project-card {
    background: #e7f1ff;
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: 0 4px 12px rgba(13,110,253,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-card:hover,
.project-card:focus-within {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(13,110,253,0.3);
}
.project-card h3 {
    margin-bottom: 0.75rem;
    color: #0747a6;
}
.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Buttons */
.btn {
    text-align: center;
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover,
.btn:focus {
    background: #0d6efd;
    color: white;
    outline: none;
}

.btn-primary {
    background: #0d6efd;
    color: white;
    border: none;
   
}
.btn-primary:hover,
.btn-primary:focus {
    background: #084bb5;
    color: white;
    outline: none;
}

/* Contact List */
.contact-list {
    list-style: none;
    font-size: 1rem;
}
.contact-list li {
    margin: 0.5rem 0;
}
.contact-list a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}
.contact-list a:hover,
.contact-list a:focus {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Fade in animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: ease-out;
}
.delay-1 {
    animation-delay: 0.3s;
}
.delay-2 {
    animation-delay: 0.6s;
}
.delay-3 {
    animation-delay: 0.9s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 72px;
        right: 0;
        height: calc(100vh - 72px);
        background-color: #0d6efd;
        flex-direction: column;
        width: 200px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 1rem;
        z-index: 99;
        border-radius: 0 0 0 8px;
    }
    nav ul.show {
        transform: translateX(0);
    }
    nav ul li {
        margin: 1rem 0;
    }
    #nav-toggle {
        display: flex;
    }
}