/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Markazi+Text:wght@400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    font-family: Raleway, sans-serif;
    --stripe-color: #fff;
    --bg: var(--stripe-color);
    --maincolor: var(--bg);
}
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    background: rgb(20,20,20) 
}
body.overlay-open{
    overflow: hidden;
}
/* Hero Section */
.hero {
    width: 100%;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(26,162,193,1) 0%, rgba(206,147,218,1) 25%, rgba(237,93,131,1) 50%, rgba(206,147,218,1) 75%, rgba(26,162,193,1) 100%);
    color: white;
    background-size: 300%, 200%;
    background-position: 50% 50%, 50% 50%;
    animation: smoothBg 60s linear infinite;
    z-index: 1;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #000 40%, transparent 70%);
    mix-blend-mode: difference;
}
@keyframes smoothBg {
    from {
    background-position: 50% 50%, 50% 50%;
}
    to {
    background-position: 350% 50%, 350% 50%;
}
}
/* Hero Content */
.hero h1, .hero p {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
}
.hero p {
    font-size: 1.25rem;
}
#scroll-down-arrow {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    color: #fff;
    margin-top: 1rem;
    animation: blink 2s infinite;
    cursor: pointer;
}
#hero div{
    position: relative;
    text-align: center;
}
@keyframes blink {
    0%, 100% {
    opacity: 1;
}
    50% {
    opacity: 0;
}
}
/* Sections */
.section {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}
.section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section p {
    font-size: 1rem;
    line-height: 1.5;
}
/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.project {
    background: rgb(35,35,35);
    padding: 1rem;
    border-radius: 8px;
    -webkit-box-shadow: 10px 10px 269px -83px rgba(153,153,153,1);
    -moz-box-shadow: 10px 10px 269px -83px rgba(153,153,153,1);
    box-shadow: 10px 10px 269px -83px rgba(153,153,153,1);
    text-align: left;
    transition: transform 0.1s ease-in-out, box-shadow 0.3s ease-in-out; /* Add transition for box-shadow */
    transform-style: preserve-3d;
    perspective: 1000px; /* Add perspective for better 3D effect */
}

.project:hover {
    /* Add white glow effect on hover with a blur */
    box-shadow: 0 0 50px 5px rgba(255, 255, 255, 0.7); /* White glow with subtle blur */
    cursor: pointer;
}
.project:active{
    scale: 0.9
}

/* Project hover state */
.project h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.project p {
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: #fff;
}

#main{
    width: 100%;
}

/* Overlay that dims the background */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);  /* Dimmed background */
    display: none;  /* Initially hidden */
    z-index: 9998;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* The iframe container styles */
#iframe-container {
    width: 80%;
    height: 90%;
    margin-left: 10%;
    margin-right: 10%;
    background: rgb(20,20,20);
    border-radius: 20px 20px 0 0;  /* Rounded corners at top */
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease-in-out forwards;
}

/* The iframe itself */
#iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animation for the iframe appearing from the bottom */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animation for the iframe appearing from the bottom */
@keyframes slideDown {
    to {
        transform: translateY(100%);
    }
    from {
        transform: translateY(0);
    }
}

/*captcha*/
#captcha-container{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    z-index: 9999;
}