/* 
   Design System: Banita Behera Portfolio
   Colors: Soft Cream (#FDFBF7), Gold (#C5A059), Charcoal (#2A2A2A), Muted Brown (#A08C75)
*/

:root {
    --bg-color: #FDFBF7;
    --text-color: #2A2A2A;
    --accent-color: #C5A059;
    --accent-dark: #A6823F;
    --secondary-color: #A08C75;
    --light-gray: #F5F2ED;
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --pattern-color: rgba(197, 160, 150, 0.05); /* Subtle muted brown for pattern */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

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

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-cta {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 5px;
}

.nav-cta:hover {
    background: var(--accent-dark);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    min-height: 100dvh; /* iOS Friendly */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #F4F1E9 50%, #EFEBE1 100%);
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.highlight {
    color: var(--accent-color);
}

#hero p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--accent-color);
    color: var(--white);
    width: 100%;
}

/* About Section */
#about {
    position: relative;
    background-image: radial-gradient(var(--pattern-color) 1px, transparent 1px);
    background-size: 30px 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.image-frame {
    position: relative;
    z-index: 1;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.lead {
    font-size: 1.3rem;
    color: var(--accent-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Expertise Cards */
#expertise {
    position: relative;
    background-image: 
        linear-gradient(45deg, var(--pattern-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--pattern-color) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--pattern-color) 75%),
        linear-gradient(-45deg, transparent 75%, var(--pattern-color) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px 20px, 20px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.expertise-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--light-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.1);
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.institution {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Philosophy */
.quote-section {
    background: var(--light-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.1;
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.quote-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    filter: blur(150px);
    opacity: 0.1;
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto 80px;
}

.quote-container i {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 30px;
}

blockquote {
    font-size: 2.8rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.3;
}

cite {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.phil-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-dark);
}

.phil-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Projects Slider */
.slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.projects-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    width: 100%;
}

.projects-slider::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: calc(50% - 20px);
    scroll-snap-align: start;
    flex-shrink: 0;
    background: var(--white);

    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.project-img {
    height: 300px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 35px;
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.slider-btn {
    background: var(--white);
    color: var(--accent-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: absolute;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
}

.view-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* Achievements */
.achievements-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.ach-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ach-list i {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 5px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-tags span {
    padding: 10px 20px;
    background: var(--light-gray);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.skills-tags span:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: var(--white);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Staggering */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-content .badge { animation-delay: 0.2s; }
.hero-content h1 { animation-delay: 0.4s; }
.hero-content p { animation-delay: 0.6s; }
.hero-content .hero-btns { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover Enhancements */
.stat-item { transition: var(--transition); }
.stat-item:hover {
    transform: scale(1.1) translateY(-5px);
}

.timeline-content {
    border: 1px solid transparent;
}
.timeline-content:hover {
    border-color: rgba(197, 160, 89, 0.3);
}

.skills-tags span {
    position: relative;
    overflow: hidden;
}
.skills-tags span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}
.skills-tags span:hover::after {
    width: 200px;
    height: 200px;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 3rem !important; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .achievements-container, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 50px;
    }
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; text-align: left !important; padding-left: 80px; }
    .timeline-dot { left: 30px !important; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
    .philosophy-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Global Containers */
    .container, .nav-container { padding: 0 20px; }
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    
    /* Navigation */
    .nav-links { display: none; }
    .menu-toggle { display: flex; flex-direction: column; gap: 6px; }
    .menu-toggle span { width: 30px; height: 2px; background: var(--text-color); }
    .logo { font-size: 1.5rem; }
    
    /* Hero */
    #hero { text-align: center; justify-content: center; padding-top: 100px; padding-bottom: 50px; }
    .hero-content p { font-size: 1.1rem; }
    .hero-btns { justify-content: center; flex-direction: column; gap: 15px; }
    .hero-btns .btn { width: 100%; }
    
    /* Grid Adjustments */
    .expertise-grid, .philosophy-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .all-projects-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* About Stats Fix (The main overflow culprit) */
    .about-stats { flex-wrap: wrap; justify-content: space-between; gap: 20px; }
    .stat-item { flex: 1 1 40%; text-align: center; }
    .stat-item h3 { font-size: 1.8rem; }
    
    /* Philosophy */
    blockquote { font-size: 1.5rem; margin-bottom: 20px; }
    
    /* Projects Slider Mobile Polish */
    .slider-btn { display: none; } /* Hide buttons on mobile, swipe is native */
    .projects-slider { padding: 10px 0; gap: 20px; scroll-padding-left: 20px; }
    .project-card { min-width: 85%; scroll-snap-align: center; }
    
    /* Timeline */
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; text-align: left !important; padding-left: 50px; padding-right: 0px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 10px !important; width: 20px; height: 20px; }
    .timeline-date { position: relative; left: 0; width: auto; text-align: left; margin-bottom: 15px; top: 0; }
    .timeline-item:nth-child(even) .timeline-date { left: 0; text-align: left; }
    
    /* Pages Mobile Tweaks */
    .page-header, .article-header { padding: 120px 0 40px; }
    .page-header h1, .article-header h1 { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    
    /* Contact Form Overflow Fixes */
    .contact-item { flex-direction: column; gap: 10px; align-items:flex-start; }
    .contact-item h4 { margin-top: 5px; }
}
