/*
====================================
  Global Styles & Reset
====================================
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-purple: #694699;
    --accent-red: #fb2261;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --dark-gray: #333333;
    --text-color: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--off-white);
}

a {
    text-decoration: none;
    color: var(--primary-purple);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    margin-bottom: 0.5em;
    font-weight: 700;
}

section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*
====================================
  Typography & Utility
====================================
*/

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.section-title span {
    color: var(--primary-purple);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-red);
    color: var(--white);
    font-weight: 600;
    border: 2px solid var(--accent-red);
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-red);
}

/*
====================================
  Header & Navigation (Sticky)
====================================
*/

.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 42px;    /* adjust to fit your header */
    width: auto;
    vertical-align: middle;
    /* Removed color var here as it's typically for text logo */
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-purple);
}

.logo span {
    color: var(--accent-red);
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--primary-purple);
    border-bottom: 2px solid var(--accent-red);
}

/* --- MODIFIED: Hamburger Menu & Mobile Nav Styles --- */
.menu-toggle {
    /* DEFAULT: Hidden on desktop */
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--dark-gray);
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle:hover {
    color: var(--primary-purple);
}


/*
====================================
  Hero Section (index.html)
====================================
*/

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url("homeimg.png") no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/*
====================================
  Grid & Layout Components
====================================
*/

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--primary-purple);
}

.card .icon {
    font-size: 2em;
    color: var(--accent-red);
    margin-bottom: 15px;
}

/* --- Reverted Vision Card Styles (Solid Purple) --- */
.vision-card {
    /* Reverted to original purple background */
    background-color: var(--primary-purple); 
    color: var(--white);
    padding: 25px;
    text-align: left;
    /* Removed: height, background-size/position/repeat, position, overflow */
}

/* Removed: .vision-card::before overlay and .vision-card * z-index styles */


.vision-card h3 {
    color: var(--white);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 5px;
    margin-bottom: 10px;
    /* Removed: text-shadow (no longer needed on a solid background) */
}

/* Removed: #mission-card, #vision-card, #values-card unique image selectors */

/* Portfolio Gallery (Used on index page for preview) */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #eee; /* Placeholder background */
    height: 250px;
    display: block; /* Ensures correct JS toggle behavior */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(105, 70, 153, 0.9); /* Purple overlay */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.4em;
}

.portfolio-filters {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-filters a {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border: 1px solid var(--primary-purple);
    border-radius: 20px;
    color: var(--dark-gray);
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.portfolio-filters a:hover,
.portfolio-filters a.active {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
}

.portfolio-item.hidden {
    display: none !important;
}

/*
====================================
  Portfolio Sub-Pages (e.g., digital.html)
====================================
*/

#portfolio-preview {
    padding-top: 100px; /* Offset for fixed header */
    background-color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background-color: var(--off-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--primary-purple);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Animation: Image Scale */
.category-card:hover .card-image-placeholder img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5em;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

/* Modern Button Style */
.explore-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    background-color: var(--accent-red);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.explore-btn:hover {
    background-color: var(--primary-purple);
    transform: scale(1.05);
}

/*
====================================
  Sub-Page Gallery Styles (e.g., digital.html)
====================================
*/

#sub-portfolio-gallery {
    padding-top: 100px; /* Offset for fixed header */
    background-color: var(--off-white);
}

.sub-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.portfolio-image-placeholder {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    width: 100%;
    background-color: #ccc;
    overflow: hidden;
}

.portfolio-image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(105, 70, 153, 0.85); /* Purple with transparency */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

/* Card Hover Animation (Overlay) */
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.4em;
    color: var(--white);
}

.portfolio-overlay p {
    font-size: 0.9em;
    color: var(--off-white);
}

/* Video Specific Styling */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--dark-gray);
    border-radius: 5px;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Short Video Card Styling */
.short-video-card .portfolio-image-placeholder {
    padding-top: 177.77%; /* 9:16 aspect ratio */
}


/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-left: 5px solid var(--accent-red);
    border-radius: 0 8px 8px 0;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.testimonial-card .client-name {
    font-weight: 600;
    color: var(--primary-purple);
    display: block;
    margin-top: 10px;
}

/* Blog Posts */
.blog-post-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

/* Generic styles for all post images */
.blog-post-card .post-image {
    width: 100%;
    height: 200px;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Specific image URLs for each card */
.blog-post-card.post-1 .post-image {
    background-image: url('future.png');
}

.blog-post-card.post-2 .post-image {
    background-image: url('content.png');
}

.blog-post-card.post-3 .post-image {
    background-image: url('trend.png');
}

.blog-post-card.post-4 .post-image {
    background-image: url('seo.jpg');
}

.blog-post-card.post-5 .post-image {
    background-image: url('ai.jpg');
}

.blog-post-card.post-6 .post-image {
    background-image: url('strategies.jpg');
}

.blog-post-card.post-7 .post-image {
    background-image: url('voice.jpg');
}

.blog-post-card.post-8 .post-image {
    background-image: url('shopping.jpg');
}

.blog-post-card.post-9 .post-image {
    background-image: url('ethical.jpg');
}

.blog-post-card.post-10 .post-image {
    background-image: url('privacy.jpg');
}

.blog-post-card.post-11 .post-image {
    background-image: url('ar.jpg');
}

.blog-post-card.post-12 .post-image {
    background-image: url('influence.jpg');
}

.blog-post-card .post-content {
    padding: 20px;
}

.blog-post-card h4 {
    font-size: 1.2em;
}

/* Rule to hide the full content by default */
.blog-post-card .post-full-content {
    display: none;
}

/* Rule to display the summary only in the default state */
.blog-post-card .post-summary {
    /* Limit height/lines for the summary view */
    max-height: 4.5em; /* Approximately 3 lines of text */
    overflow: hidden;
    margin-bottom: 10px;
}

.blog-post-card .read-more-toggle {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-red);
    font-weight: 600;
    cursor: pointer; /* Indicate it's clickable */
}

/* --- ACTIVE STATE RULES (When 'active' class is added by JS) --- */

/* SHOW full content and HIDE summary */
.blog-post-card.active .post-full-content {
    display: block; /* Show the full text */
    margin-top: 15px;
}

/* HIDE the summarized text */
.blog-post-card.active .post-summary {
    display: none;
}

/* Team Section */
.team-member {
    text-align: center;
}

/* 1. GENERIC STYLES FOR ALL CIRCLES */
.team-member .team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-red);
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 2. SPECIFIC STYLES FOR EACH IMAGE */
.team-member-sahil .team-image {
    background-image: url('sahil.png');
}

.team-member-manjiree .team-image {
    background-image: url('manjiree.png');
}

.team-member-harshala .team-image {
    background-image: url('harshala.jpg');
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member p {
    color: var(--primary-purple);
    font-weight: 600;
}
/*
====================================
  Forms & Contact
====================================
*/

.contact-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-wrapper, .contact-details {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-details p {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.contact-details p::before {
    content: "📞"; /* Example Icons (using emojis as placeholders) */
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 1.2em;
}

.contact-details p.email-detail::before { content: "📧"; }
.contact-details p.address-detail::before { content: "📍"; }

.google-map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-weight: 600;
    margin-top: 20px;
    border-radius: 8px;
}

/*
====================================
  Footer
====================================
*/

.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--accent-red);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-column p, .footer-column a {
    color: #bbb;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--white);
}

.social-icons a {
    display: inline-block;
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--white);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-red);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 0.9em;
}

/*
====================================
  Responsiveness (Mobile First)
====================================
*/

/* Tablet (up to 768px) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }
    
    /* MODIFIED: Show hamburger menu */
    .menu-toggle {
        display: block; 
    }
    
    /* MODIFIED: Initial state of navigation on small screens (Hidden, translated up) */
    .nav {
        /* Full-width container for mobile menu */
        position: absolute;
        top: 72px; /* Based on header height (42px logo + 15px top/bottom padding) */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        
        /* Smooth transition for opening/closing */
        transform: translateY(-100%); 
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        
        /* Hide by default, will be shown with .nav.active */
        opacity: 0; 
        pointer-events: none; /* Prevents scrolling/clicking on hidden menu */
    }
    
    /* ADDED: Styles when JavaScript adds the 'active' class */
    .nav.active {
        transform: translateY(0); /* Slide down */
        opacity: 1;
        pointer-events: all; /* Allows clicking on links */
    }

    .nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--off-white);
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul li a {
        display: block; /* Make links full width of menu item */
        padding: 15px 20px;
        color: var(--dark-gray);
        border-bottom: none; /* Remove bottom border from a element */
    }

    .nav ul li a:hover,
    .nav ul li a.active {
        color: var(--accent-red);
        background-color: var(--off-white);
        border-bottom: none; 
    }

    .contact-flex {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (up to 576px) */
@media (max-width: 576px) {
    .header .container {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.5em;
    }
    
    /* Adjust top position of mobile nav for smaller header */
    .nav {
        top: 62px; /* Smaller header height (42px logo + 10px top/bottom padding) */
    }

    .section-title {
        font-size: 2em;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}