/* Reset and base styles */
html {
    scroll-behavior: smooth;
}

/* =========================
   CURSOR GLOW
========================= */

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(255,105,180,0.18) 0%,
            rgba(255,182,193,0.08) 40%,
            transparent 75%
        );

    filter: blur(35px);

    z-index: 0;

    transform:
        translate(-50%, -50%);

    transition:
        transform 0.08s linear;
}

/* SOFT BACKGROUND */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,105,180,0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(255,182,193,0.08),
            transparent 35%
        );

    z-index: -1;
}

/* =========================
   PREMIUM CARD EFFECT
========================= */

.project-card-board {

    transform-style: preserve-3d;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card-board:hover {

    box-shadow:
        0 30px 60px rgba(255,105,180,0.3);

    transform:
        rotateX(6deg)
        rotateY(-6deg)
        translateY(-10px)
        scale(1.03);
}

.project-image {

    transition:
        transform 0.4s ease;
}

.project-card-board:hover .project-image {

    transform:
        scale(1.04);
}

/* GLASS SECTIONS */

section {

    backdrop-filter: blur(8px);

    padding: 120px 0;
}

/* HERO TEXT GLOW */

.hero-content h1 {

    text-shadow:
        0 0 25px rgba(255,255,255,0.35);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF69B4 0%, #FFB6C1 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 3s ease-in-out 4s forwards;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-reveal {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    clip-path: circle(0% at center);
    animation: revealLogo 2.5s ease-in-out 0.5s forwards;
}

.actual-logo {
    width: 150px;
    height: auto;
    opacity: 0;
    animation: fadeInLogo 1s ease-in-out 2s forwards;
}

@keyframes revealLogo {
    0% {
        clip-path: circle(0% at center);
    }
    50% {
        clip-path: circle(75% at center);
    }
    100% {
        clip-path: circle(150% at center);
    }
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 2rem;
    font-weight: 300;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Header */
header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-radius: 40px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 105, 180, 0.18);
}

.logo img {
    height: 52px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #2D3748;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.16), rgba(255, 182, 193, 0.12));
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}

.nav-links a:hover {
    color: #FF3D8E;
    transform: translateY(-1px);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #FF69B4 0%, #FFB6C1 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: left;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-container {
    flex-shrink: 0;
}

.profile-container {
    margin-bottom: 2rem;
}

.profile-image {
    position: relative;
    display: inline-block;
    width: 350px;
    height: 350px;
    border-radius: 15px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 105, 180, 0.3);
    margin: 0 auto;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-radius: 19px;
    animation: border-draw 4s linear infinite;
}

@keyframes border-draw {
    0% {
        border-top-color: #FF69B4;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    12.5% {
        border-top-color: #FF69B4;
        border-right-color: #FF69B4;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    25% {
        border-top-color: #FF69B4;
        border-right-color: #FF69B4;
        border-bottom-color: #FF69B4;
        border-left-color: transparent;
    }
    37.5% {
        border-top-color: #FF69B4;
        border-right-color: #FF69B4;
        border-bottom-color: #FF69B4;
        border-left-color: #FF69B4;
    }
    50% {
        border-top-color: transparent;
        border-right-color: #FF69B4;
        border-bottom-color: #FF69B4;
        border-left-color: #FF69B4;
    }
    62.5% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #FF69B4;
        border-left-color: #FF69B4;
    }
    75% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: #FF69B4;
    }
    87.5% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    100% {
        border-top-color: #FF69B4;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
}

#profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

#profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.image-placeholder span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    color: #FF69B4;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.4);
    background: white;
}

/* Sections */

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2D3748;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    border-radius: 2px;
}

/* About Section */
#about {
    background: linear-gradient(135deg, rgba(255,105,180,0.05), rgba(255,182,193,0.05));
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.7;
}

.skills h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #2D3748;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags span:hover {
    transform: scale(1.05);
}

/* =========================
   BULLETIN BOARD PROJECTS
========================= */

#projects {
    background: linear-gradient(135deg, rgba(255,182,193,0.05), rgba(255,105,180,0.05));
}

#gallery {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 3rem;

    margin-top: 2rem;
}

/* FILTER BUTTONS */

.year-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 2rem;

    margin-bottom: 3rem;
}

.year-btn {
    border: none;

    background:
        rgba(255,255,255,0.9);

    color: #FF69B4;

    padding: 12px 28px;

    border-radius: 50px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow:
        0 5px 20px rgba(255, 105, 180, 0.1);
}

.year-btn:hover {
    background: #FF69B4;

    color: white;

    transform: translateY(-3px);
}

.year-btn.active {
    background:
        linear-gradient(135deg, #FF69B4, #FFB6C1);

    color: white;

    box-shadow:
        0 10px 25px rgba(255, 105, 180, 0.25);
}

/* PROJECT CARD */
.project-card-board {
    position: relative;

    background: rgba(255,255,255,0.96);

    padding: 1rem;

    border-radius: 18px;

    overflow: hidden;

    border: 1px solid rgba(255, 105, 180, 0.08);

    box-shadow:
        0 10px 30px rgba(255, 105, 180, 0.15);

    transform-style: preserve-3d;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    cursor: pointer;

    animation: swing 2s ease-in-out infinite alternate;

    transform-origin: center top;
}

/* PUSH PIN */

.project-card-board::after {
    content: "";

    position: absolute;

    top: 10px;
    left: 50%;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #FF69B4;

    transform: translateX(-50%);

    box-shadow:
        inset -2px -2px 4px rgba(0,0,0,0.35),
        0 2px 8px rgba(0,0,0,0.25);
}

/* RANDOM ROTATION */

.project-card-board:nth-child(3n) {
    rotate: 3deg;
}

.project-card-board:nth-child(3n + 1) {
    rotate: -3deg;
}

.project-card-board:nth-child(3n + 2) {
    rotate: 2deg;
}

/* HOVER */
.project-card-board:hover {

    transform:
        rotateX(8deg)
        rotateY(-8deg)
        translateY(-12px)
        scale(1.03);

    box-shadow:
        0 30px 60px rgba(255,105,180,0.3);

    z-index: 20;
}

/* IMAGE */

.project-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 6px;

    margin-bottom: 1rem;

    display: block;
}

/* TEXT */

.project-card-board h3 {
    font-size: 1.5rem;

    margin-bottom: 1rem;

    color: #2D3748;
}

.project-card-board p {
    color: #4A5568;

    line-height: 1.7;

    margin-bottom: 1.3rem;
}

/* TECH TAGS */

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

    margin-bottom: 1.5rem;
}

.project-tech span {
    background:
        linear-gradient(135deg, #E2E8F0, #CBD5E0);

    color: #4A5568;

    padding: 0.35rem 0.9rem;

    border-radius: 20px;

    font-size: 0.8rem;

    font-weight: 500;
}

/* LINK */

.project-link {
    color: #FF69B4;

    text-decoration: none;

    font-weight: 600;

    position: relative;
}

.project-link::after {
    content: '';

    position: absolute;

    width: 0;

    height: 2px;

    bottom: -3px;

    left: 0;

    background:
        linear-gradient(90deg, #FF69B4, #FFB6C1);

    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

/* SWING */

@keyframes swing {

    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

/* MOBILE */

@media (max-width: 768px) {

    #gallery {
        grid-template-columns: 1fr;
    }

    .project-card-board {
        rotate: 0deg !important;
    }

    .year-buttons {
        gap: 0.7rem;
    }

    .year-btn {
        padding: 10px 20px;
    }
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, rgba(255,105,180,0.08), rgba(255,182,193,0.08));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.7;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-details strong {
    color: #2D3748;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #F7FAFC;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FF69B4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    background-color: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

footer p {
    margin: 0 0 1rem 0;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #FF69B4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;

    bottom: 60px;

    left: 50%;

    transform: translateX(-50%);

    color: #FF69B4;

    font-size: 2rem;

    animation: bounce 2s infinite;

    cursor: pointer;

    z-index: 5;
}

.scroll-indicator:hover {
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }
}