/* ==============================
   GLOBAL RESET / BASE
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto Condensed", Arial, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    overflow-x: hidden;
}

section {
    padding: 60px 20px;
    text-align: center;
}


/* ==============================
   LOADING OVERLAY
   ============================== */

#overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    right: 31px;
    width: 62px;
    height: 62px;
    color: #460000;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: spin 1s linear infinite;
}

.loader::after {
    color: #FF3D00;
    transform: rotateY(70deg);
}

@keyframes spin {
    0%, 100% { box-shadow: .2em 0 0 0 currentcolor; }
    12% { box-shadow: .2em .2em 0 0 currentcolor; }
    25% { box-shadow: 0 .2em 0 0 currentcolor; }
    37% { box-shadow: -.2em .2em 0 0 currentcolor; }
    50% { box-shadow: -.2em 0 0 0 currentcolor; }
    62% { box-shadow: -.2em -.2em 0 0 currentcolor; }
    75% { box-shadow: 0 -.2em 0 0 currentcolor; }
    87% { box-shadow: .2em -.2em 0 0 currentcolor; }
}


/* ==============================
   FIXED BANNER / NAV
   ============================== */

#banner {
    background: rgba(255, 255, 255, 0.8);
    color: black;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.banner-title {
    font-size: 24px;
    font-weight: bold;
}

#menu-button {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-icon {
    width: 30px;
    height: 2px;
    background-color: black;
    margin: 6px 0;
}


/* ==============================
   SIDEBAR MENU
   ============================== */

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    right: -250px;
    background-color: #333;
    overflow: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 1003;
}

.sidebar.show {
    right: 0;
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin: 20px 0;
}

nav ul li a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

nav ul li a i {
    margin-right: 10px;
}

nav ul li a:hover {
    color: #00b4d8;
    box-shadow: 0 0 5px #00b4d8;
    text-shadow: 0 0 5px #00b4d8;
}


/* ==============================
   HOME / HERO SECTION
   ============================== */

#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
        270deg,
        #FBF8CC,
        #FDE4CF,
        #FFCFD2,
        #F1C0E8,
        #CFBAF0,
        #A3C4F3,
        #90DBF4,
        #8EECF5,
        #98F5E1,
        #B9FBC0
    );
    background-size: 2400% 2400%;
    animation: gradient 17s ease infinite;
}

.square {
    position: relative;
    margin: 0 10px;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 2px solid black;
    transition: 0.5s;
}

.square span:nth-child(1) {
    border-radius: 32% 58% 69% 43% / 48% 32% 59% 55%;
    animation: animate 6s linear infinite;
}

.square span:nth-child(2) {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    animation: animate 4s linear infinite;
}

.square span:nth-child(3) {
    border-radius: 31% 45% 74% 35% / 38% 56% 51% 87%;
    animation: animate2 10s linear infinite;
}

.intro:hover span:nth-child(1) {
    border: none;
    background: #48cae4;
}

.intro:hover span:nth-child(2) {
    border: none;
    background: #90e0ef;
}

.intro:hover span:nth-child(3) {
    border: none;
    background: #00b4d8;
}

.content {
    position: relative;
    padding: 40px 60px;
    text-align: center;
    transition: 0.5s;
    z-index: 2;
}

.content a {
    position: relative;
    display: inline-block;
    margin-top: 2px;
    border: 2px solid black;
    padding: 6px 18px;
    text-decoration: none;
    color: black;
    font-weight: 600;
    border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}

.content a:hover {
    background: white;
    color: #333;
}

.intro {
    color: black;
    position: relative;
    z-index: 2;
    padding: 20px;
    border-radius: 10px;
}

.intro p {
    display: none;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.15em solid orange;
    width: 100%;
}

.intro p.active {
    display: inline-block;
    animation: typewriter 2s steps(40, end), blink 0.75s step-end infinite;
}

iframe {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border: none;
}

@keyframes animate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes animate2 {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ==============================
   ABOUT SECTION
   ============================== */

#about {
    padding: 90px 20px;
    background: #f4f8fb;
}

.about-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #eff6f9;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.about-content {
    text-align: left;
}

.section-label {
    color: #00b4d8;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-content h2 {
    font-size: 2em;
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-tile {
    background: #eef6f9;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s ease;
}

.about-tile:hover {
    transform: translateY(-4px);
    background: #00b4d8;
    color: white;
}

.about-tile i {
    color: #00b4d8;
    font-size: 1.3em;
}

.about-tile:hover i {
    color: white;
}


/* ==============================
   TECHNOLOGIES SECTION
   ============================== */

#technologies {
    padding: 60px 20px;
    background: #f4f8fb;
}

.tech-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-group {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.tech-group h3 {
    margin-bottom: 15px;
    color: #00b4d8;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tech-item {
    position: relative;
    background: #eef6f9;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: 0.2s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: #00b4d8;
    color: white;
}

.tech-item i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.skill-dots {
    font-size: 0.8em;
    margin-top: 5px;
}

.skill-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    width: 180px;
    font-size: 0.75em;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 10;
}

.tech-item:hover .skill-tooltip {
    opacity: 1;
}

/* ==============================
   PROJECTS SECTION
   ============================== */

#projects {
    padding: 80px 20px;
    background: #a8e0eb;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    max-width: 700px;
    margin-bottom: 40px;
    text-align: left;
}

.section-header h2 {
    font-size: 2.7em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1em;
    color: #244047;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: #eff6f9;
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.project-card-wide {
    grid-column: span 2;
}

.project-card h3 {
    font-size: 1.5em;
    margin-top: 6px;
}

.project-badge {
    display: inline-block;
    background: #dff7fb;
    color: #008fab;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.8em;
    font-weight: 700;
}

.project-icon {
    color: #00b4d8;
    font-size: 2em;
}

.project-date {
    display: inline-block;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9em;
    margin-bottom: 16px;
}

.project-summary {
    font-size: 1.05em;
    line-height: 1.5;
    margin-bottom: 16px;
}

.project-points {
    padding-left: 18px;
    margin-bottom: 18px;
}

.project-points li {
    margin-bottom: 8px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tech span {
    background: #ffffff;
    color: #1d3940;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85em;
    font-weight: 600;
}

.featured-project .project-tech span {
    background: #eef6f9;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.project-links a {
    text-decoration: none;
    background: #00b4d8;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}

.project-links a:hover {
    background: #008fab;
    transform: translateY(-2px);
}

@media (max-width: 950px) {
    .projects-list {
        grid-template-columns: 1fr;
    }

    .featured-project {
        grid-column: auto;
    }

    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ==============================
   FOOTER
   ============================== */

#footer {
    background: #eff6f9;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

#footer ul li a {
    width: 80px;
    height: 80px;
    background-color: #fff;
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    margin: 0 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    z-index: 1;
}

#footer ul li a .icon {
    position: relative;
    color: #262626;
    transition: 0.5s;
    z-index: 3;
}

#footer ul li a:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
}

#footer ul li a::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00b4d8;
    transition: 0.5s;
    z-index: 2;
}

#footer ul li a:hover::before {
    top: 0;
}

#footer ul li:nth-child(1) a::before {
    background: #0077b5;
}

#footer ul li:nth-child(2) a::before {
    background: #51b500;
}

#footer ul li:nth-child(3) a::before {
    background: #b5003c;
}

#footer ul li:nth-child(4) a::before {
    background: #dd4b39;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {
    .tech-groups {
        grid-template-columns: 1fr;
    }

    .tech-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        flex-direction: column;
        gap: 25px;
    }

    .skill-card {
        width: 100%;
    }

    .projects-list {
        flex-direction: column;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 850px) {
    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .about-tiles {
        grid-template-columns: 1fr;
    }

    .projects-list {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card-wide {
        grid-column: span 1;
        width: 100%;
    }

    #footer ul li a{
        margin-left: 4px;
        margin-right: 4px;
    }
}
