
/* =================================
   RAJESWARI PARIDA - PORTFOLIO CSS
================================= */

:root {
    --bg: #080a16;
    --card: #121629;
    --text: #ffffff;
    --muted: #a8adc2;
    --purple: #a78bfa;
    --blue: #60a5fa;
    --pink: #f0abfc;
    --border: rgba(255,255,255,0.12);
    --gradient: linear-gradient(110deg, #a78bfa, #60a5fa, #f0abfc);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: 0.3s;
}

body.light-theme {
    --bg: #f5f6fc;
    --card: #ffffff;
    --text: #17182a;
    --muted: #646a7e;
    --border: rgba(30,35,65,0.15);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

.section {
    padding: 110px 0;
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.eyebrow {
    color: var(--purple);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* LOADER */

.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader h1 {
    font-size: 50px;
    font-family: 'Space Grotesk';
    background: var(--gradient);
    background-clip: text;
    color: transparent;
}

.loader-bar {
    width: 100px;
    height: 3px;
    background: var(--gradient);
    margin-top: 15px;
    animation: loading 1s infinite alternate;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

@keyframes loading {
    from { width: 20px; }
    to { width: 120px; }
}

/* NAVBAR */

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(8,10,22,0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.light-theme header {
    background: rgba(245,246,252,0.9);
}

.navbar {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Space Grotesk';
}

.logo span {
    color: var(--pink);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--pink);
}

.theme-toggle,
.menu-toggle {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.menu-toggle {
    display: none;
}

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    background:
        radial-gradient(circle at 10% 20%, rgba(130,80,255,0.15), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(70,130,255,0.12), transparent 35%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font: 700 clamp(42px, 6vw, 75px)/1.1 'Space Grotesk';
    margin-bottom: 20px;
    letter-spacing: -3px;
}

.hero h2 {
    font-size: 25px;
    margin-bottom: 20px;
    min-height: 40px;
}

.cursor {
    color: var(--pink);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.description {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    transition: 0.3s;
}

.primary {
    background: var(--gradient);
    color: #101020;
}

.secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(167,139,250,0.25);
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 35px;
    color: var(--muted);
    font-size: 14px;
}

.social-links a:hover {
    color: var(--pink);
}

/* HERO IMAGE */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
}

.hero-image img {
    width: 320px;
    height: 410px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 180px 180px 25px 25px;
    border: 5px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
                var(--gradient) border-box;
    box-shadow: 0 0 60px rgba(167,139,250,0.3);
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: #8855ff;
    filter: blur(140px);
    opacity: 0.3;
}

.floating-card {
    position: absolute;
    background: var(--card);
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 4s infinite ease-in-out;
    font-size: 13px;
}

.card-one {
    top: 65px;
    right: 0;
}

.card-two {
    bottom: 65px;
    left: 0;
    animation-delay: 1s;
}

@keyframes float {
    50% { transform: translateY(-15px); }
}

/* SECTION HEADINGS */

.section-title {
    font: 700 clamp(32px, 5vw, 55px)/1.2 'Space Grotesk';
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.section-description {
    color: var(--muted);
    margin-bottom: 35px;
}

.about {
    background: var(--card);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 18px;
}

.about-content .lead {
    color: var(--text);
    font-size: 21px;
    font-weight: 600;
}

.about-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-box div {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.about-box div:last-child {
    grid-column: span 2;
}

.about-box h3 {
    font-size: 38px;
    background: var(--gradient);
    background-clip: text;
    color: transparent;
}

.about-box p {
    font-size: 13px;
    margin: 0;
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    background: var(--card);
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(167,139,250,0.12);
}

.skill-card h3 {
    font-family: 'Space Grotesk';
    margin-bottom: 5px;
}

.skill-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.progress {
    height: 5px;
    background: rgba(150,150,180,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress span {
    display: block;
    width: var(--level);
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
}

/* PROJECTS */

.projects {
    background: var(--card);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: var(--purple);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.project-art {
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Space Grotesk';
    overflow: hidden;
}

.project-art h2 {
    font-size: 27px;
}

.portfolio-art {
    background: linear-gradient(135deg,#46317e,#151b42);
}

.portfolio-art span {
    font-size: 45px;
    color: #d9c7ff;
}

.quiz-art {
    background: linear-gradient(135deg,#155b7b,#10233f);
}

.quiz-art span {
    font-size: 65px;
}

.calculator-art {
    background: linear-gradient(135deg,#653a77,#21172e);
}

.calc-display {
    background: #161323;
    padding: 10px 40px;
    margin-bottom: 10px;
    font-size: 35px;
    border-radius: 10px;
}

.calc-symbols {
    background: #29213a;
    padding: 7px 20px;
    border-radius: 5px;
    margin: 3px;
}

.car-art {
    background: linear-gradient(135deg,#243d67,#101728);
}

.car-art span {
    font-size: 13px;
    letter-spacing: 8px;
    color: #f0abfc;
}

.project-info {
    padding: 25px;
}

.project-number {
    color: var(--pink);
    font-size: 11px;
    letter-spacing: 2px;
}

.project-info h3 {
    margin: 10px 0;
    font: 600 22px 'Space Grotesk';
}

.project-info p {
    color: var(--muted);
    font-size: 14px;
}

.project-links {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.project-links a {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

.project-links a:hover {
    color: var(--blue);
}

/* EDUCATION */

.timeline {
    border-left: 2px solid var(--purple);
    margin-left: 12px;
    padding-left: 35px;
}

.timeline-item {
    position: relative;
    padding-bottom: 45px;
}

.timeline-dot {
    position: absolute;
    left: -43px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 15px var(--pink);
}

.timeline-date {
    color: var(--pink);
    font-size: 12px;
    letter-spacing: 2px;
}

.timeline-item h3 {
    font: 600 23px 'Space Grotesk';
    margin: 10px 0;
}

.timeline-item h4 {
    color: var(--blue);
    margin-bottom: 8px;
}

.timeline-item p:last-child {
    color: var(--muted);
}

/* CERTIFICATES */

.certificate-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(120deg,rgba(167,139,250,0.12),rgba(96,165,250,0.08));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.certificate-section p:not(.eyebrow) {
    color: var(--muted);
}

.certificate-card {
    text-align: center;
    padding: 35px;
    border: 1px dashed var(--purple);
    border-radius: 15px;
    background: var(--card);
}

.certificate-card span {
    color: var(--pink);
    font-size: 35px;
}

.certificate-card p {
    font-size: 13px;
}

/* CONTACT */

.contact {
    background: var(--card);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.contact-info h3 {
    font: 600 28px 'Space Grotesk';
}

.contact-info p {
    color: var(--muted);
    margin: 20px 0;
}

.contact-info > a {
    color: var(--pink);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    color: var(--muted);
    font-size: 13px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
}

.contact-form textarea {
    resize: vertical;
}

/* FOOTER */

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: var(--muted);
    font-size: 13px;
}

.footer-content > a:last-child {
    color: var(--pink);
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    height: 45px;
    width: 45px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 50;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        gap: 25px;
    }

    .hero-image img {
        width: 280px;
        height: 360px;
    }

    .about-content,
    .contact-grid {
        gap: 35px;
    }
}

@media (max-width: 700px) {

    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        margin-right: 12px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        padding: 20px 5%;
        background: var(--card);
        flex-direction: column;
        gap: 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        min-height: 400px;
    }

    .hero-image img {
        width: 260px;
        height: 340px;
    }

    .description {
        margin-inline: auto;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .about-content,
    .contact-grid,
    .certificate-section {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 430px) {

    .skills-grid {
        gap: 10px;
    }

    .skill-card {
        padding: 17px;
    }

    .about-box div {
        padding: 18px;
    }

    .certificate-section {
        padding: 22px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .footer-content p {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
