/* =========================
   RESET + BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f8fafc, #eef2ff, #f8fafc);
    color: #0f172a;
    overflow-x: hidden;
    animation: pageFade 0.8s ease-in-out;
}

@keyframes pageFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating background glow */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

body::before {
    top: 10%;
    left: -120px;
}

body::after {
    bottom: 10%;
    right: -120px;
}

@keyframes floatGlow {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(40px) scale(1.2); }
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0px;
    width: 100%;

    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);

    z-index: 9999;

    transform: translateZ(0);
    padding: 20px;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 22px;
    font-weight: bold;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #0f172a;
    position: relative;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background: #2563eb;
    transition: 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center; /* center whole block */
    text-align: center;
}

/* container */
.hero-container {
    width: 100%;
    max-width: 800px;
}

/* stack everything nicely */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers image + text */
}

/* IMAGE */
.hero-image {
    padding: 20px;
    margin: 30px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;

    border-radius: 50%;
    border: 4px solid #2563eb;

    box-shadow: 0 10px 30px rgba(37,99,235,0.2);
}

/* TEXT */
.hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: #475569;
    margin-bottom: 20px;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* FLOAT ANIMATION */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    transition: 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

/* =========================
   SECTIONS
========================= */
section {
    padding: 20px;
}

h2 {
    text-align: center;
    color: #2563eb;
    font-size: 32px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* =========================
   GLASS CARD BASE
========================= */
.glass {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.glass:hover {
    transform: translateY(-8px) scale(1.02);
}

/* =========================
   ABOUT
========================= */
.about-content {
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: center;       /* centers vertically */
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;        /* centers text inside */
}

.stats {
    display: flex;
    justify-content: center;
    gap: auto;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .stats {
        flex-wrap: nowrap;
    }
}

.stat h3 {
    color: #2563eb;
}

.stat {
    padding: 25px 50px;
}

/* =========================
   SKILLS
========================= */

/* Grid layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Skill cards */
.skill-category {
    background: white;
    padding: 24px;
    border-radius: 16px;

    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* subtle top gradient line */
.skill-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* hover effect */
.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

/* Title */
.skill-category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0f172a;

    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon styling */
.skill-category i {
    color: #2563eb;
    background: #eef2ff;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
}

/* Skill list */
.skill-category ul {
    list-style: none;
    padding: 0;
}

/* Individual skills */
.skill-category li {
    padding: 8px 12px;
    margin-bottom: 8px;

    background: #f8fafc;
    border-radius: 8px;

    font-size: 14px;
    color: #475569;

    transition: 0.2s;
}

/* hover on each skill */
.skill-category li:hover {
    background: #e0e7ff;
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Tablets */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-category h3 {
        font-size: 17px;
    }

    .skill-category li {
        font-size: 13.5px;
        padding: 7px 10px;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-category {
        padding: 18px;
        border-radius: 14px;
    }

    .skill-category h3 {
        font-size: 16px;
    }

    .skill-category i {
        padding: 8px;
        font-size: 14px;
    }

    .skill-category li {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* =========================
   PROJECTS
========================= */

/* Grid stays same */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* CARD DESIGN */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 24px;

    border: 1px solid #e2e8f0;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

/* Hover effect (modern subtle lift) */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: #c7d2fe;
}

/* Title */
.project-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

/* Description */
.project-card p {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Tech tags container */
.project-tech {
    margin-top: auto;
}

/* Tags */
.project-tech span {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;

    padding: 5px 10px;
    margin: 4px 6px 0 0;

    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;

    transition: 0.2s;
}

/* Tag hover */
.project-tech span:hover {
    background: #6366f1;
    color: white;
}

/* Tablets */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .project-card h3 {
        font-size: 17px;
    }

    .project-card p {
        font-size: 13.5px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        padding: 18px;
        border-radius: 14px;
    }

    .project-card h3 {
        font-size: 16px;
    }

    .project-card p {
        font-size: 13px;
    }

    .project-tech span {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (hover: none) {
    .project-card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    }
}z

/* =========================
   CONTACT
========================= */
.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* row container */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* 🔥 better than nowrap */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;
    color: inherit;

    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 18px 22px;
    border-radius: 16px;

    border: 1px solid #e2e8f0;

    min-width: 240px;
    max-width: 280px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);

    transition: all 0.3s ease;

    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* subtle glow sweep */
.contact-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(37,99,235,0.08),
        transparent
    );
    transition: 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

/* hover lift */
.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(37,99,235,0.18);
    border-color: #c7d2fe;
}

.contact-item i {
    font-size: 20px;
    color: #2563eb;

    background: #eef2ff;
    padding: 12px;
    border-radius: 12px;

    transition: all 0.3s ease;
}

/* icon hover */
.contact-item:hover i {
    background: #2563eb;
    color: white;
    transform: rotate(5deg) scale(1.05);
}

.contact-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.contact-item a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
}

/* remove underline globally inside card */
.contact-item a:hover {
    color: #2563eb;
}

.contact-item:active {
    transform: scale(0.97);
}

/* =========================
   LIKES SECTION
========================= */
.likes-section {
    display: flex;
    justify-content: center;
}

/* Main card */
.likes-card {
    background: linear-gradient(135deg, #ffffff, #f1f5ff);
    border-radius: 20px;
    padding: 50px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;

    position: relative;
    z-index: 1;
    overflow: hidden;

    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);

    animation: fadeUp 1s ease;
}

/* soft glowing background animation */
.likes-card::before {
    pointer-events: none;
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 60%);
    top: -50%;
    left: -50%;
    animation: glowMove 6s linear infinite;
    z-index: 0;
}

@keyframes glowMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Title */
.likes-card h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 20px;
}

/* Like counter */
.like-count {
    font-size: 36px;
    font-weight: bold;
    color: #2563eb;
    margin: 20px 0;

    animation: pulse 1.5s infinite;
}

/* pulse effect */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* BUTTON */
.like-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;

    border: none;
    padding: 14px 26px;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* hover effect */
.like-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
}

/* click effect */
.like-btn:active {
    transform: scale(0.95);
}

/* subtle fade animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        display: none;
    }

    .about-content {
        flex-direction: column;
    }
}


/* =========================
   GALLERY GRID
========================= */
.gallery-section {
    padding: 20px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr); /* 🔥 fixed columns = perfect distribution */

    gap: 20px;

    justify-items: stretch;
    align-items: stretch;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    border-radius: 16px;

    position: relative;
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0,0,0,0.08);

    transition: all 0.35s ease;

    cursor: pointer;
}

/* hover lift + zoom */
.gallery-grid img:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 25px 50px rgba(37,99,235,0.25);
}

.gallery-grid img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.6s;
}

.gallery-grid img:hover::after {
    transform: translateX(100%);
}

.gallery-item::after {
    content: "View Image";
    position: absolute;
    bottom: 12px;
    left: 12px;

    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 10px;
    font-size: 12px;

    border-radius: 8px;

    opacity: 0;
    transform: translateY(10px);

    transition: 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* tablet */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
