/*
Theme Name: CD Portfolio
Theme URI: https://chandrachurdasgupta.com
Author: Chandrachur Dasgupta
Author URI: https://chandrachurdasgupta.com
Description: Custom portfolio theme for Chandrachur Dasgupta.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cd-portfolio
*/

/* General Base Configuration */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background-color: #fcfbfa;
    color: #333;
}

/* Helper Utilities */
.section-padding {
    padding: 80px 10%;
}

.bg-alt {
    background-color: #f1ede4;
}

.bg-dark {
    background-color: #1b5e4b;
}

.text-white {
    color: #fff !important;
}

.section-title {
    font-size: 2.2rem;
    color: #1b5e4b;
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
}

/* Header Top Bar */
.top-bar {
    background-color: #1b5e4b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    position: relative;
    z-index: 1001;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1b5e4b;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.info-item i {
    background: #ffb400;
    color: #1b5e4b;
    padding: 10px;
    border-radius: 4px;
}

.info-item span {
    color: #ffb400;
    font-weight: bold;
}

/* Navigation System */
.navbar {
    background-color: #ffb400;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 20px 15px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    color: white;
    background-color: rgba(0,0,0,0.1);
}

.social-links a {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    margin-left: 5px;
    font-size: 0.9rem;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: #ffb400;
}

/* Social menu via wp_nav_menu */
.social-menu-wrap ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.social-menu-wrap ul li a {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social-menu-wrap ul li a:hover {
    background: #ffb400;
    color: #1b5e4b;
}

/* Hide menu item labels, show only icons in social menu */
.social-menu-wrap .menu-item a .menu-label {
    display: none;
}

/* Hero Slider Section */
.hero {
    display: flex;
    min-height: 60vh;
    position: relative;
    background-color: #faf7f2;
    align-items: stretch;
}

.hero-content {
    flex: 1;
    padding: 50px 5% 50px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: #ddd;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrows Positioning */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffb400;
    border: none;
    padding: 20px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.arrow:hover {
    background: #1b5e4b;
    color: white;
}

.arrow-left {
    left: 0;
}

.arrow-right {
    right: 0;
}

/* Card Elements (Expertise) */
.cards-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.card {
    background: white;
    padding: 40px 30px;
    flex: 1;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid #ffb400;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: #1b5e4b;
    margin-bottom: 20px;
}

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

.card p {
    color: #666;
    line-height: 1.6;
}

/* Case Studies Layout */
.case-studies-container {
    display: flex;
    gap: 30px;
}

.case-box {
    background: #fff;
    padding: 40px;
    flex: 1;
    border-left: 5px solid #1b5e4b;
}

.case-meta {
    color: #ffb400;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.case-box h3 {
    margin-bottom: 15px;
}

.case-box p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Posts & Articles */
.articles-grid {
    display: flex;
    gap: 30px;
}

.article-card {
    flex: 1;
    padding: 25px;
    background: #fbfbfb;
    border: 1px solid #eee;
}

.article-card h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #222;
}

.article-card .date {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.article-card p {
    color: #555;
    line-height: 1.6;
}

/* Testimonials Setup */
.testimonial-slider {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial p {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial cite {
    font-size: 1rem;
    color: #ffb400;
    font-weight: bold;
}

/* Contact & Interactive Map Layout */
.contact-map-section {
    display: flex;
    height: 500px;
}

.contact-left {
    flex: 1;
    background: #fdfcfb;
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left h2 {
    color: #1b5e4b;
    margin-bottom: 15px;
}

.contact-left p {
    margin-bottom: 25px;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    background: #fff;
    outline: none;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #1b5e4b;
}

.map-right {
    flex: 1;
    padding: 40px;
    background-color: white;
}

/* Footer Section */
.main-footer {
    background: #111;
    color: #aaa;
    padding: 30px 10%;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content p {
    margin: 5px 0;
}

/* --- BUTTONS --- */
.cta-btn {
    display: block;
    width: fit-content;
    padding: 14px 30px;
    background-color: #1b5e4b;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid #1b5e4b;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: #ffb400;
    border-color: #ffb400;
    color: #1b5e4b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    color: #1b5e4b;
    border: 2px solid #1b5e4b;
}

.btn-outline:hover {
    background-color: #1b5e4b;
    color: #fff;
}

/* --- LINKS --- */
.nav-links a {
    position: relative;
    color: #1b5e4b;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: #1b5e4b;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.read-more {
    color: #1b5e4b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffb400;
}

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

/* Simple Responsiveness Adjustments */
@media (max-width: 768px) {
    .top-bar, .navbar, .hero, .cards-container, .case-studies-container, .articles-grid, .contact-map-section {
        flex-direction: column;
        height: auto;
    }
    .hero-image {
        height: 350px;
    }
    .image-wrapper {
        clip-path: none;
    }
    .contact-info {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    .contact-map-section {
        height: auto;
    }
    .map-right {
        height: 300px;
    }
    .arrow {
        padding: 10px;
    }
}
