* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #0c1022;
    color: #fff;
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 1% 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    
}

/* Navbar AFTER Scrolling */
.header.scrolled {
    background: #0c1022;

}

.logo {
    display: flex;
    align-items: center; 
    gap: 5px;
    margin-top: 8px; 
}

.navbar {
    display: flex;
    gap: 20px;
    
}

.navbar a {
    font-size: 1.2vw;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    font-size: 18px;
    padding: 10px;
}

.navbar.open {
    display: flex;
    flex-direction: column;
}

.navbar a[href="#contact"] {
    display: block !important;
} 

.navbar a.active,
.navbar a:hover {
    background: linear-gradient(45deg, #f06, #3cf);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/* Sections */
section {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Home Section */
.home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    padding: 5%;
    gap: 5%;
}

/* Image in Home Section */
.home-img {
    width: 35vw;
    height: 35vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circular glowing effect */
.home-img .glowing-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f06, #3cf);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glowing-circle .image {
    position: relative;
    width: 90%;
    height: 90%;
    background: #0c1022;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#f06, #3cf);
    border-radius: 50%;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    align-items: center;
    
}

/* Home Content */
.home-content {
    width: 100%;
    max-width: 600px;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
}

.home-content h3 {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* About Section */
.about {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10% 5%;
    flex-wrap: wrap;
    gap: 5%;
}

/* Image in About Section */
.about .home-img {
    width: 35vw;
    height: 35vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Text in About Section */
.about-content {
    max-width: 50%;
    text-align: left;
}

.about-content h1 {
    font-size: 56px;
    font-weight: 700;
}

.about-content p {
    font-size: 18px;
    line-height: 1.5;
}

/* Ensuring proper alignment */
.about,
.home {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about,
    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img,
    .about .home-img {
        width: 50vw;
        order: -1;
        height: 50vw;
    }

    .home-content,
    .about-content {
        max-width: 80%;
        text-align: center;
        order: -1;
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column-reverse;
    }
}


/* Photos Section */
.photos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5%;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Custom Grid Layout for Images */
.images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

/* Ensuring images fit well */
.images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.images img:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar a {
        font-size: 16px;
    }

    .home-content h1,
    .about-content h1 {
        font-size: 48px;
    }

    .home-content h3 {
        font-size: 28px;
    }
}

/* Footer Styling */
.footer {
    background: #181c2e;
    color: white;
    text-align: center;
    padding: 5px 5px;
    font-size: 16px;
    margin-top: 10px;
}

.footer-container {
    max-width: 800px;
    margin: auto;
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 30px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #3cf;
    transform: scale(1.2);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        font-size: 14px;
    }
    
    .social-icons a {
        font-size: 20px;
    }
}

/*scroll button*/
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: #ff4b5c;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
}

/* Mobile Menu Button */
/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 30px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 25px;
    z-index: 1100;
    transition: transform 0.3s ease-in-out;
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1); 
        backdrop-filter: blur(10px);
        border-radius: 5px;
        transition: height 0.4s ease-in-out;
        z-index: 1000;
    }

    .navbar.open {
        height: 330px; 
    }

    .navbar a {
        padding: 15px;
        text-align: center;
        font-size: 18px;
        color: white;
        font-weight: bold;
        text-transform: uppercase;
        transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .navbar a:hover {
        color: #ff4b5c;
        transform: scale(1.1);
    }
}


/* Modal Background */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
}

/* Close Button */
.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Navigation Buttons */
/* Navigation Buttons */
.nav-button {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 40px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

/* Hover effect */
.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Left Arrow (Previous Button) */
.prev-button {
    left: 10px; 
    top: 50%;
    transform: translateY(-50%);
    display: flex !important; 
}

/* Right Arrow (Next Button) */
.next-button {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
}

/* Adjust for small screens */
@media (max-width: 768px) {
    .nav-button {
        font-size: 30px;
        padding: 12px;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.7);
    }
}

/*page loader*/
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0c1022;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ff4b5c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


/* Mobile Menu Button */
.mobile-menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    z-index: 2000;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 1500%;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1999;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin: 15px 0;
    text-transform: none;
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block; 
    }
}

/*Logo*/
.logo-img {
    height: 250px; 
    width: auto;
    max-width: 100%;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .logo-img {
        height: 200px; 
    }
}

/* Projects Section */
#projects {
    text-align: center;
    padding: 40px 10px;
    background-color: inherit; 
    position: relative;
}

#projects h2 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}


.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.project {
    width: 320px;
    height: auto;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Always Apply Hover Effect (No Click Required) */
.project:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.project img {
    max-width: 80%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
}

.project h3,
.project p {
    color: white;
}

.project a {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: #0c1022;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project a:hover {
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    #projects h2 {
        font-size: 1.8rem; 
    }
    .project-container {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .project-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .project {
        margin-bottom: 10px;
    }

    #projects h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    #projects h2 {
        font-size: 1.4rem;
    }

    .project{
        padding: 12px;
    }
}
