/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* ROOT COLORS (Cool Tech Theme) */
:root {
    --bg: #0a0f1c;
    --primary: #00c6ff;
    --secondary: #0072ff;
    --glass: rgba(255, 255, 255, 0.05);
    --text: #e6f1ff;
    --muted: #8aa0b8;
}

/* BODY */
body {
    color: #e6f1ff;
    line-height: 1.6;

    /* animated gradient */
    background: linear-gradient(-45deg,
        #0a0f1c,
        #0d1b2a,
        #001f3f,
        #0a0f1c
    );
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}

/* animation keyframes */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* subtle glow overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: radial-gradient(circle at top,
        rgba(0, 198, 255, 0.15),
        transparent 60%
    );

    pointer-events: none;
    z-index: -1;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(10, 15, 28, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav h1 {
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,198,255,0.6);
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 25px;
    position: relative;
    transition: 0.3s;
}

/* NAV HOVER */
nav a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0,198,255,0.4);
}

.hero p {
    margin: 15px 0;
    color: var(--muted);
}

/* BUTTON */
.btn {
    padding: 12px 25px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,198,255,0.5);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0,198,255,0.8);
}

/* SECTION */
section {
    padding: 80px 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* CARD */
.card {
    background: var(--glass);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(14px);
    transition: 0.4s;
    border: 1px solid rgba(0,198,255,0.2);
}

/* CARD HOVER */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0,198,255,0.3);
}

/* TEXT */
.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
}

/* FADE-IN */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}
.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    background: rgba(10, 15, 28, 0.5);
    margin-top: 40px;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}
.cursor {
    animation: blink 1s infinite;
    color: #ff8c42;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== PROJECT IMAGE HOVER ===== */
.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* hidden image container */
.image-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s ease;
}

/* image style */
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* dark overlay (for readability) */
.image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
}

/* show image on hover */
.project-card:hover .image-box {
    opacity: 1;
    transform: scale(1);
}

/* bring text above image */
.project-card h3,
.project-card p {
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

/* optional: text glow on hover */
.project-card:hover h3 {
    color: #fff;
}

.project-card:hover p {
    color: #eee;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

/* ===== ABOUT SECTION ===== */
.about-container {
    padding: 100px 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* IMAGE */
.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    transition: 0.4s;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* TEXT */
.about-text h2 {
    margin-bottom: 15px;
    color: #1C9fff;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* INFO BOXES */
.about-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.about-info div {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    transition: 0.3s;
}

.about-info div:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

//* ===== SKILLS PAGE (Cool Theme) ===== */
.skills-container {
    padding: 100px 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* skill card */
.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 198, 255, 0.2);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #00c6ff;
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.3);
}

.skill-card h3 {
    color: #00c6ff;
    margin-bottom: 10px;
}

/* progress bar */
.bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-top: 10px;
    overflow: hidden;
}

/* animated fill */
.fill {
    height: 100%;
    width: 0;
    border-radius: 20px;
    animation: load 2s forwards;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
}

/* skill levels (only width now, color unified) */
.html { width: 40%; }
.backend { width: 35%; }
.database { width: 70%; }
.uiux { width: 80%; }
.security { width: 65%; }
.tools { width: 85%; }

/* animation */
@keyframes load {
    from { width: 0; }
}

.fill {
    position: relative;
    overflow: hidden;
}

.fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}
/* ===== PROJECT PAGE (Cool Theme) ===== */
.projects-container {
    padding: 100px 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* project card */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(0, 198, 255, 0.2);
    backdrop-filter: blur(12px);
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00c6ff;
    box-shadow: 0 15px 30px rgba(0, 198, 255, 0.3);
}

/* IMAGE HOVER EFFECT */
.image-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* TAGS */
.tags {
    margin-top: 10px;
}

.tags span {
    display: inline-block;
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

/* BUTTONS */
.buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.7);
}


/* ===== CONTACT PAGE (Cool Theme) ===== */
.contact-container {
    padding: 100px 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* cards */
.contact-info,
.contact-form {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 198, 255, 0.2);
}

/* FORM */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #e6f1ff;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

/* SOCIAL LINKS */
.socials {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.socials a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
    font-size: 13px;
    transition: 0.3s;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.socials a:hover {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== PAGE TRANSITION OVERLAY ===== */
#page-transition {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fff5e6, #ffe3c2);
    z-index: 9999;

    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* active state */
#page-transition.active {
    transform: translateY(0);
}

/* page fade animation */
body.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ===== MOTION SYSTEM ===== */

/* initial hidden state */
.motion {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

/* visible state */
.motion.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* smooth easing like Framer Motion */
.motion {
    transition: 
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* hero special animation */
.hero h2 {
    animation: heroFade 1s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.education-section {
    padding: 100px 60px;
}

/* ===== TITLE ===== */
.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 80px;
    color: #3aa0ff; /* tech blue */
}

/* ===== WRAPPER ===== */
.education-wrapper {
    position: relative;
    max-width: 900px;
    margin: auto;
}

/* ===== PROGRESS RAIL ===== */
.progress-rail {
    position: absolute;
    left: 50px;
    top: 0;
    width: 4px;
    height: 100%;

    background: rgba(58, 160, 255, 0.15);
    border-radius: 10px;
}

.progress-fill {
    width: 100%;
    height: 0%;

    background: linear-gradient(
        180deg,
        #3aa0ff,
        #4db8ff,
        #6fd3ff,
        #9be7ff
    );

    background-size: 100% 300%;

    box-shadow:
        0 0 15px rgba(58, 160, 255, 0.6),
        0 0 40px rgba(100, 200, 255, 0.4);

    animation: flowLine 3s linear infinite;
    transition: height 0.2s ease-out;
}

@keyframes flowLine {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

/* ===== CARD ===== */
.edu-card {
    position: relative;
    width: calc(100% - 120px);
    margin-left: 100px;
    margin-bottom: 50px;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);

    border-radius: 16px;
    padding: 20px;

    border: 1px solid rgba(58, 160, 255, 0.2);

    box-shadow: 0 10px 25px rgba(58, 160, 255, 0.2);

    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
}

/* alternating slide */
.edu-card.left {
    transform: translateX(-40px) translateY(40px);
}
.edu-card.right {
    transform: translateX(40px) translateY(40px);
}

/* active reveal */
.edu-card.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* hover */
.edu-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 10px 30px rgba(58, 160, 255, 0.35),
        0 0 40px rgba(100, 200, 255, 0.25);
}

/* ===== DOT ===== */
.edu-card::before {
    content: "";
    position: absolute;
    left: -58px;
    top: 25px;

    width: 14px;
    height: 14px;

    background: #3aa0ff;
    border-radius: 50%;

    box-shadow: 0 0 12px rgba(58, 160, 255, 0.7);
}

/* ===== TEXT ===== */
.year {
    font-size: 13px;
    color: #3aa0ff;
    font-weight: bold;
}

.edu-card h3 {
    margin: 5px 0;
}

.edu-card p {
    color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .progress-rail {
        left: 20px;
    }

    .edu-card {
        width: calc(100% - 60px);
        margin-left: 50px;
    }

    .edu-card::before {
        left: -35px;
    }

    .edu-card.left,
    .edu-card.right {
        transform: translateY(40px);
    }
}