/*
Theme Name: Ayushika Portfolio
Theme URI: https://ayushikachakraborty.com
Author: Ayushika Chakraborty
Author URI: https://ayushikachakraborty.com
Description: Custom portfolio theme for Ayushika Chakraborty - Digital Marketer
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ayushika-portfolio
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --text-color: #1a1a1a;
    --border-color: #1a1a1a;
    --bg-base: #f9f6ef;
    --bg-pink: rgba(239, 204, 222, 0.7);
    --bg-yellow: rgba(246, 238, 201, 0.7);
    --bg-purple: rgba(216, 201, 239, 0.5);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-base);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.background-gradient {
    position: fixed;
    top: -50%; left: -50%;
    width: 200vw; height: 200vh;
    z-index: -1;
    background: radial-gradient(circle at 30% 30%, var(--bg-purple) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, var(--bg-yellow) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, var(--bg-pink) 0%, transparent 50%);
    filter: blur(80px);
    animation: driftBg 30s infinite alternate ease-in-out;
}

@keyframes driftBg {
    0%   { transform: scale(1) rotate(0deg) translate(0, 0); }
    100% { transform: scale(1.1) rotate(5deg) translate(-2%, -2%); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
}

a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.section-spaced { margin-bottom: 6rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 4rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a { font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-headers h2 {
    font-size: 1.5rem;
    padding: 0.5rem 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}
.service-item h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.service-item p {
    font-weight: 300;
    line-height: 1.5;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================================
   PORTFOLIO / BLOG GRID
   ============================================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.portfolio-item {
    display: flex;
    flex-direction: column;
}
.blog-item {
    border: 1px solid rgba(26, 26, 26, 0.1);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 20px;
}
.blog-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.blog-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.blog-item .post-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}
.blog-item p {
    font-weight: 300;
    line-height: 1.6;
}
.item-link {
    margin-top: 1.5rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
    display: inline-block;
    align-self: flex-end;
}
.item-link a { font-size: 0.85rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.cta-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--text-color);
    color: var(--bg-base);
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    color: var(--bg-base);
}
.cta-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid var(--text-color);
    border-radius: 30px;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    background-color: var(--text-color);
    color: var(--bg-base);
}
.social-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================================
   CERTIFICATES CAROUSEL
   ============================================================ */
.cert-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.cert-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}
.cert-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--text-color);
}
.cert-view-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}
.cert-view-btn:hover {
    background: var(--text-color);
    color: #fff;
}

.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 3rem auto 0 auto;
    overflow: hidden;
    padding-bottom: 3rem;
    touch-action: pan-y;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 1rem;
    opacity: 0.5;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    justify-content: center;
}
.carousel-slide.active {
    opacity: 1;
    transform: scale(1.05);
}
.carousel-slide .cert-card {
    width: 100%;
    max-width: 450px;
}
.carousel-btn-left,
.carousel-btn-right {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
}
.carousel-container:hover .carousel-btn-left,
.carousel-container:hover .carousel-btn-right { opacity: 1; }
.carousel-btn-left:hover,
.carousel-btn-right:hover { background: var(--text-color); color: #fff; }
.carousel-btn-left { left: 10px; }
.carousel-btn-right { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    display: block;
    transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dots span.carousel-dot-active {
    background: var(--text-color);
    transform: scale(1.3);
}

/* ============================================================
   CONTACT & FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-post-wrap {
    max-width: 760px;
    margin: 4rem auto;
    padding: 0 2rem;
}
.single-post-wrap .post-header {
    margin-bottom: 2.5rem;
}
.single-post-wrap h1.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.single-post-wrap .post-meta-bar {
    font-size: 0.85rem;
    color: rgba(26,26,26,0.6);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.single-post-wrap .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
}
.single-post-wrap .post-content h2 { font-size: 1.8rem; font-weight: 600; margin: 2rem 0 1rem; }
.single-post-wrap .post-content h3 { font-size: 1.4rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.single-post-wrap .post-content p  { margin-bottom: 1.25rem; }
.single-post-wrap .post-content img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.single-post-wrap .post-content blockquote {
    border-left: 3px solid var(--text-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    opacity: 0.75;
}
.single-post-wrap .post-content a {
    text-transform: none;
    font-size: inherit;
    text-decoration: underline;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    header { justify-content: center; gap: 1rem; }
    .hero { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .carousel-btn-left, .carousel-btn-right { opacity: 1; width: 35px; height: 35px; font-size: 1rem; }
}
