/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(to bottom, #1a1f2c, #121620);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    height: 60px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #1a1f2ccc;
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav img.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

nav a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #93c5fd;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    height: 2px;
    width: 20px;
    background: #60a5fa;
    margin: 4px 0;
    transition: 0.4s;
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
}

.dots {
    display: flex;
    gap: 1rem;
}

.dots span {
    width: 12px;
    height: 12px;
    background: #60a5fa;
    border-radius: 50%;
}

.cta-button {
    background: #60a5fa;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
    margin: 0; /* Remove auto margin */
    display: block; /* Ensure the button is treated as a block element */
}

.hero-content a {
    text-decoration: none;
}

.cta-button:hover {
    background: #3b82f6;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.5rem;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 60%;
    max-width: 500px;
    height: auto;
    border-radius: 0.5rem;
    margin-left: 150px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    color: #60a5fa;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #93c5fd;
}

.copyright {
    margin-top: 2rem;
    color: #9ca3af;
    text-align: center;
}


#contact .container {
    text-align: center; /* Center the content inside the container */
}

/* Slideshow */

#portfolio img {
    width: 45vh;
    height: 45vh;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    user-select: none;
}
#portfolio .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    transform-style: preserve-3d;
    overflow-x: hidden;
}

.box {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: 1s;
}

.box span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
    /* backface-visibility: hidden; */
    -webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #0004);
}

.btns {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.btns .btn {
    position: relative;
    width: 50px;
    height: 50px;
    border: 2px solid #60a5fa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btns .btn:active {
    background-color: #fff;
}


.btns .btn::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid #60a5fa;
    border-right: 2px solid #60a5fa;
    transform: rotate(45deg) translate(-2.5px, 2.5px);
}

.btns .btn:active::before {
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    
}

.btns .btn.prev::before {
    transform: rotate(225deg) translate(-2.5px, 2.5px);
}

.portfolio-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    font-size: 2.5rem;
    color: #60a5fa;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
    border-bottom: 2px solid #60a5fa;
    width: fit-content;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #1a1f2c;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader img {
    width: 500px;
    height: 500px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {

    .box span {
        backface-visibility: hidden;
    }
    .hero,
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .dots {
        justify-content: center;
    }

    .cta-button {
        margin: 0 auto;
    }

    .hero-image {
        order: 1;
        display: block;
        width: 50%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-image {
        display: none;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(30vh - 60px);
        background: rgba(26, 31, 44, 0.8);
        backdrop-filter: blur(8px);
        padding: 1rem 0;
        border-radius: 0 0 10px 10px;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger-menu {
        display: flex;
    }

    nav ul {
        gap: 1rem;
        padding: 0 2.5rem;
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .slide {
        padding: 0 5px;
    }

    .slide img {
        height: 300px;
    }

    .slide .overlay {
        margin: 0 5px;
    }
}

@media (min-width: 769px) {
    .hero {
        margin: 0 auto;
    }
    .hero-image {
        display: block;
        width: 60%;
        max-width: 500px;
        margin: 0 auto;
    }
}