/*
Theme Name: Diptiman Bora Portfolio
Theme URI: https://example.com/diptiman-bora-theme
Author: Lovable
Author URI: https://lovable.dev
Description: A modern, elegant portfolio theme for researchers and academics. Features a dark design with gold accents, customizable sections for about, achievements, career, publications, and contact information.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diptiman-theme
Tags: portfolio, one-page, custom-colors, custom-logo, featured-images, theme-options
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
    --background: hsl(0 0% 7%);
    --foreground: hsl(45 20% 95%);
    --card: hsl(0 0% 10%);
    --card-foreground: hsl(45 20% 95%);
    --primary: hsl(43 74% 49%);
    --primary-foreground: hsl(0 0% 7%);
    --secondary: hsl(0 0% 14%);
    --secondary-foreground: hsl(45 20% 95%);
    --muted: hsl(0 0% 18%);
    --muted-foreground: hsl(45 10% 60%);
    --accent: hsl(43 74% 49%);
    --accent-foreground: hsl(0 0% 7%);
    --border: hsl(0 0% 20%);
    --gold: hsl(43 74% 49%);
    --gold-light: hsl(43 74% 65%);
    --charcoal: hsl(0 0% 12%);
    --cream: hsl(45 20% 95%);
    --radius: 0.5rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-md {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-slow {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in-slow {
    animation: fade-in-slow 1.2s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.opacity-0 {
    opacity: 0;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .hero-section {
        flex-direction: row;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: var(--background);
}

@media (min-width: 768px) {
    .hero-content {
        padding: 4rem 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 0 5rem;
    }
}

.hero-text-wrapper {
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-text-wrapper {
        margin: 0 0 0 auto;
        margin-right: 4rem;
    }
}

.hero-decorative-line {
    width: 4rem;
    height: 1px;
    background-color: var(--primary);
    margin-bottom: 2rem;
}

.hero-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-title {
    font-size: 3rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-tagline {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.025em;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.25rem;
    }
}

.hero-description {
    color: var(--muted-foreground);
    opacity: 0.8;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.025em;
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
    flex: 1;
    min-height: 60vh;
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        min-height: 100vh;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--background), transparent, transparent);
    opacity: 0.6;
}

@media (min-width: 1024px) {
    .hero-gradient-overlay {
        opacity: 0.4;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 20;
    background: none;
    border: none;
    padding: 0;
}

.scroll-indicator:hover {
    color: var(--foreground);
}

.scroll-indicator svg {
    width: 2rem;
    height: 2rem;
}

.scroll-indicator-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .scroll-indicator-desktop {
        display: block;
        bottom: 2.5rem;
    }
    
    .scroll-indicator-mobile {
        display: none;
    }
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
    .about-section {
        padding: 8rem 1.5rem;
    }
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image-container {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.7s;
}

.about-image-wrapper:hover .about-image {
    filter: grayscale(0%);
}

.about-image-border {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    z-index: -1;
}

.section-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.about-title {
    font-size: 2.25rem;
    color: var(--foreground);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content p {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.75;
}

/* =====================================================
   ACHIEVEMENTS SECTION
   ===================================================== */
.achievements-section {
    padding: 6rem 1.5rem;
    background-color: var(--card);
}

@media (min-width: 768px) {
    .achievements-section {
        padding: 8rem 1.5rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    max-width: 42rem;
    margin: 0 auto;
}

.achievements-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.achievement-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    transition: border-color 0.5s;
}

.achievement-card:hover {
    border-color: var(--primary);
}

.achievement-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: all 0.5s;
}

.achievement-card:hover .achievement-icon-wrapper {
    border-color: var(--primary);
    background-color: var(--primary);
}

.achievement-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    transition: color 0.5s;
}

.achievement-card:hover .achievement-icon {
    color: var(--primary-foreground);
}

.achievement-metric {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.875rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .achievement-metric {
        font-size: 2.25rem;
    }
}

.achievement-card:hover .achievement-metric {
    color: var(--primary);
}

.achievement-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
}

/* =====================================================
   CAREER SECTION
   ===================================================== */
.career-section {
    padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
    .career-section {
        padding: 8rem 1.5rem;
    }
}

.career-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.career-item {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
    transition: border-color 0.5s;
}

.career-item:hover {
    border-left-color: var(--primary);
}

.career-dot {
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    background-color: var(--background);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.career-venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--foreground);
    transition: color 0.3s;
    margin-bottom: 0.25rem;
}

.career-item:hover .career-venue {
    color: var(--primary);
}

.career-company {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.career-role {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.career-description {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.75;
    margin-top: 0.75rem;
}

.career-accolades {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 0.75rem;
}

.career-accolade {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    border: 1px solid hsl(43 74% 49% / 0.3);
    color: var(--primary);
    background-color: hsl(43 74% 49% / 0.05);
}

.career-meta {
    color: var(--muted-foreground);
    opacity: 0.6;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding-top: 0.5rem;
    margin-top: 0.75rem;
}

/* =====================================================
   MEDIA/PROJECTS SECTION
   ===================================================== */
.media-section {
    padding: 6rem 1.5rem;
    background-color: var(--card);
}

@media (min-width: 768px) {
    .media-section {
        padding: 8rem 1.5rem;
    }
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.subsection-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.subsection-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--foreground);
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    transition: all 0.5s;
}

.project-card:hover {
    border-color: var(--primary);
}

.project-platform {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    color: var(--foreground);
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-external-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-external-icon {
    opacity: 1;
}

.project-description {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.publication-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    transition: border-color 0.5s;
}

.publication-card:hover {
    border-color: var(--primary);
}

.publication-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    border: 1px solid hsl(43 74% 49% / 0.3);
    color: var(--primary);
    background-color: hsl(43 74% 49% / 0.05);
    margin-bottom: 0.75rem;
}

.publication-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
}

/* Skills */
.skills-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skill-card {
    padding: 1rem;
    border: 1px solid var(--border);
    background-color: var(--background);
}

.skill-category {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.skill-items {
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
    padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
    .contact-section {
        padding: 8rem 1.5rem;
    }
}

.contact-content {
    text-align: center;
}

.contact-title {
    font-size: 2.25rem;
    color: var(--foreground);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-title {
        font-size: 3.75rem;
    }
}

.contact-description {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    max-width: 36rem;
    margin: 0 auto 3rem;
    line-height: 1.75;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    background-color: var(--foreground);
}

.contact-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .contact-info {
        flex-direction: row;
        gap: 2rem;
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-link svg {
    width: 1rem;
    height: 1rem;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--muted-foreground);
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary);
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        text-align: left;
    }
}

.footer-copyright {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-primary {
    color: var(--primary);
}

.bg-card {
    background-color: var(--card);
}

.grayscale {
    filter: grayscale(100%);
}

.grayscale:hover {
    filter: grayscale(0%);
}

.mb-16 {
    margin-bottom: 4rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* WordPress specific */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
