/* Base Styles (Mobile First) */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #a777e3;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Times New Roman", Times, serif;
    /*'Segoe UI', system-ui, -apple-system, sans-serif; */
    line-height: 1.6;
    color: #100f0f;
    scroll-behavior: smooth;
    /* white-space: nowrap; */
    min-width: fit-content;
}

/* Enable horizontal scroll only when content overflows */
html {
    overflow-x: auto;
    /* Shows scrollbar only if needed */
    /* overflow-y: scroll; */
}


html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.scrollable-container {
    width: 100%;
    overflow-x: auto;
    /* Horizontal scroll if content overflows */
    overflow-y: hidden;
    /* No vertical scroll */
}

.wide-content {
    min-width: 1200px;
    /* Example: Force content to be wider than container */
    /* OR: */
    width: max-content;
    /* Expands to fit child elements */
}

section {
    width: 100%;
    margin: 0;
    padding: 6rem 0;
}

.container {
    width: 100%;
    padding: 0 1rem;
    max-width: 100%;
}



.hero-section {
    background: bg-light;
    color: rgb(6, 0, 0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.hero-section .row {
    display: flex;
    align-items: center;
    margin-right: 10%;
    margin-left: 5%;
}

.colright {
    width: 40%;
    padding: 20px 50px;
}

.colleft {
    width: 60%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}


/* Icon Box */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.icon-box i {
    font-size: 2rem;
}

/* Cards */
.card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    /* Ensures equal height for all cards */
    display: flex;
    flex-direction: column;
}

/* Image Container */

.portfolio-item img {
    width: 100%;
    height: 250px;
    /* Or any fixed height you prefer */
    object-fit: cover;
    display: block;
    padding: 10px;
}

.portfolio-overlay .overlay-content {
    padding: 10px;
    background-color: #d6e0f3;
}

.portfolio-img-container {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    /* Maintains consistent image proportions */
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-fluid {
    height: 70%;
    width: 70%;
    object-fit: cover;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Content Container */
.portfolio-details {
    background-color: #d6e0f3;
    padding: 1.25rem;
    flex-grow: 1;
    /* Takes remaining space */
    border-top: 1px solid #eee;
    /* Optional separator */
}

/* Hover Effects */
.portfolio-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-details {
        padding: 1rem;
    }
}

/* Navigation */

.active {
    background-color: #b4b9d7c9;
    color: white;
}

.navbar-custom .navbar-nav .nav-link {
    color: rgb(4, 3, 31);
    font-weight: normal;
    font-size: 20px;
    padding: 0.5rem 1rem;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: rgb(214, 220, 23);
}

.navbar-brand img {
    width: 120px;
    height: auto;
}

.dropdown-menu {
    min-width: 200px;
}


.dropdown-menu .dropdown-item {
    color: rgba(6, 9, 177, 0.97);
    font-weight: bold;
    font-size: 15px;
}

.registration {
    padding-left: 10px;
}

.button {
    border: none;
    color: white;
    border-radius: 2%;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    transition-duration: 0.4s;
    cursor: pointer;
}

.button1 {
    background-color: #d1deeb;
    color: black;
    border-radius: 5%;
}

.button1:hover {
    background-color: #b9bbe8;
    color: white;
    font-weight: bold;
}

#registerFormContainer {
    position: absolute;
    top: 70%;
    right: 1rem;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    max-width: 320px;
    display: none;
    /* Hidden by default */
}

#registerFormContainer>h2 {
    text-align: center;
    color: #0069d9;
}

/* Form element styling */
#registerForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Space between form elements */
}

#registerForm input:not([type="submit"]) {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#registerForm input[type="submit"] {
    align-self: center;
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 50%;
}

#registerForm input[type="submit"]:hover {
    background-color: #0069d9;
}

/* Make sure Bootstrap doesn't override these */
#registerFormContainer .dropdown-menu,
#registerFormContainer .navbar-nav {
    box-shadow: none !important;
}

.navbar {
    position: fixed;
    top: 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Scrolled state */
.navbar.scrolled {
    background-color: #d6e0f3 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.navbar-brand img {
    height: 40px;
    width: auto;
}


/* Forms */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border-color: #0069d9;
    color: #0069d9;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 110%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-color: #a777e3;
}

.modal-content {
    background-color: #dfe2e7;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    /* Mobile-first default */
    height: auto;
    max-height: 90%;
    overflow-y: auto;
}

.modal-content .subhead p {
    font-size: large;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #000;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: white;
}



/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 576px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    .responsive-img {
        max-width: 80%;
    }

    .colright,
    .colleft {
        width: 100% !important;
        padding: 15px !important;
        text-align: center;
    }

    .colright {
        padding-top: 30px !important;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .button {
        width: 80%;
        max-width: 250px;
        margin: 0 !important;
    }

    .hero-image {
        max-height: 300px;
        object-fit: cover;
    }

    h1.display-3 {
        font-size: 2rem !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    section {
        padding: 5rem 0;
    }

    .portfolio-item {
        margin-bottom: 0;
    }
    .responsive-img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .hero-section .row {
        flex-direction: column-reverse;
        /* Stack columns vertically */
        gap: 30px;
        /* Space between image & text */
    }

    .colright,
    .colleft {
        width: 100% !important;
        /* Full width for both columns */
        padding: 0 20px !important;
        /* Side padding only */
        text-align: center;
        /* Center-align content */
    }

    .colright {
        padding-bottom: 40px !important;
        /* Extra space below text */
    }

    .hero-image {
        width: 100%;
        /* Full-width image */
        max-height: 400px;
        /* Slightly taller than mobile */
        object-fit: cover;
        /* Smart cropping */
    }

    h1.display-3 {
        font-size: 2.5rem !important;
        /* Medium heading size */
        margin-top: 20px !important;
    }

    .button-group {
        justify-content: center;
        /* Center buttons */
        gap: 15px;
        /* Slightly reduced gap */
    }

    .button {
        min-width: 180px;
        /* Comfortable tap target */
        padding: 12px 24px;
        /* Larger padding */
    }
}

@media (max-width: 1100px) {
    .hero-section .row {
        flex-direction: column-reverse;
        /* Stack columns vertically */
        gap: 30px;
        /* Space between image & text */
    }

    .colright,
    .colleft {
        width: 100% !important;
        /* Full width for both columns */
        padding: 0 20px !important;
        /* Side padding only */
        text-align: center;
        /* Center-align content */
    }

    h1.display-3 {
        font-size: 2.8rem !important;
        /* Slightly reduced heading */
        line-height: 1.3;
    }

    .hero-image {
        max-height: 450px;
        /* Constrain image height */
        object-position: center top;
        /* Smart image cropping */
    }

    .button-group {
        gap: 20px;
        /* Comfortable button spacing */
    }

    .button {
        padding: 12px 28px;
        /* Slightly larger buttons */
        font-size: 1.05rem;
    }
}

/* For screens 1600px and larger (typical for 22" monitors) */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }

    #registerFormContainer {
        width: 320px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    section {
        padding: 4rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1.25rem;
    }

    .dropdown-menu {
        min-width: 250px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    section {
        padding: 6rem 0;
    }

    .navbar-brand img {
        width: 150px;
    }

    #registerFormContainer {
        width: 340px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* XX-Large devices (larger desktops, 1600px and up) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    section {
        padding: 8rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }

    .navbar-brand img {
        width: 180px;
    }

    .dropdown-menu {
        min-width: 300px;
    }

    #registerFormContainer {
        width: 350px;
        right: 5%;
    }
}

/* Special cases for mobile menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.25rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }
}

/* Tablets (≥ 600px) */
@media screen and (min-width: 600px) {
    .modal-content {
        width: 80%;
    }
}

/* Small laptops (≥ 768px) */
@media screen and (min-width: 768px) {
    .modal-content {
        width: 70%;
    }
}

/* Standard desktops (≥ 992px) */
@media screen and (min-width: 992px) {
    .modal-content {
        width: 60%;
        height: 70%;
    }
}

/* Large desktops (≥ 1200px) */
@media screen and (min-width: 1200px) {
    .modal-content {
        width: 50%;
    }
}