/* ==========================================================================
   Modern & Professional Light Theme by MW DASHBOARD
   ========================================================================== */
body {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
}

:root {
    --primary-color: #0056b3; /* A deeper, professional blue */
    --secondary-color: #495057; /* A neutral dark gray for accents */
    --bg-color: #D1D1D1;
    --surface-color: rgba(255, 255, 255, 0.75); /* Frosted white panels */
    --surface-border: rgba(0, 0, 0, 0.1);
    --surface-shadow: rgba(90, 90, 90, 0.1);
    --text-color: #343a40;
    --heading-color: #000000;
    --link-color: var(--primary-color);
    --border-radius: 12px;
    --transition-speed: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- DYNAMIC BACKGROUND PLACEHOLDER --- */
#dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

main {
    padding-top: 100px; /* Space for the fixed header */
}

section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--surface-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(230, 230, 230, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

#profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.logo-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
nav a:hover {
    color: var(--primary-color);
}

/* --- HERO INTRO SECTION --- */
.hero-intro {
    background: none;
    box-shadow: none;
    border: none;
    text-align: center;
    margin-top: 0;
    padding: 2rem;
}

.hero-intro h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--heading-color);
    text-shadow: none;
    margin-bottom: 0.5rem;
}
.hero-intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* --- PORTFOLIO GRIDS --- */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.portfolio-item {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--surface-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
}
.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px var(--surface-shadow);
}
.portfolio-item a { text-decoration: none; color: inherit; display: block; }

.portfolio-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-text-content { 
    padding: 1.5rem; 
    text-align: center; 
}
.portfolio-title { 
    font-weight: 600; 
    font-size: 1.2rem; 
    color: var(--heading-color); 
    margin-bottom: 0.5rem; 
}
.portfolio-description { 
    font-size: 0.95rem; 
    color: var(--text-color); 
    line-height: 1.6; 
}

/* --- ADDITIONAL SERVICES “FAKE IMAGE” --- */
.portfolio-item .services-placeholder {
    width: 100%; height: 240px; background: #000000;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 2.8rem; font-weight: 800; text-align: center; padding: 1rem;
    transition: transform 0.4s ease, background 0.4s ease;
}
.portfolio-item:hover .services-placeholder { transform: scale(1.05); background: #111111; }

/* --- SERVICES CARD ADJUSTMENT --- */
.portfolio-item.services-card .portfolio-text-content {
    display: none;
}
.portfolio-item.services-card a {
    height: 100%;
}
.portfolio-item.services-card .services-placeholder {
    height: 100%;
}


/* --- SERVICES & SKILLS --- */
.skills-list { 
    list-style: none; 
    padding: 0; 
}
.skills-list li {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.skills-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px var(--surface-shadow);
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* --- PROJECT PAGE LAYOUT --- */
#project-page .project-hero {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius: var(--border-radius);
}
.project-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
.project-brief {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}
.project-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}
.logo-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.logo-system-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--surface-shadow);
}
.logo-system-item.logo-display-dark-bg {
    background: #000000;
}
.logo-system-item img {
    max-width: 100%;
    height: auto;
    display: block;
}
.mockup-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.mockup-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Styles for the new Design Process Gallery */
.process-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.process-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- CONTACT --- */
.contact-list {
    list-style: none;
    padding: 0;
    text-align: center;
}
.contact-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.contact-list strong {
    color: var(--heading-color);
}
.contact-list a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.contact-list a:hover {
    text-decoration: underline;
}


/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--surface-border);
    color: var(--secondary-color);
}
.hidden { display: none; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1.5rem; }
    .hero-intro h1 { font-size: 2.5rem; }
    .hero-intro p { font-size: 1rem; }
    h2 { font-size: 2.5rem; margin-bottom: 2rem; }
    section { padding: 2rem 1.5rem; }
    .project-content { padding: 1rem; }
    .logo-system-grid, .mockup-gallery { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NEW STYLES FOR ORDER PAGE
   ========================================================================== */

/* --- General Button Styles --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}
.btn:hover {
    background-color: #004080;
}
.btn-secondary {
    background-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #343a40;
}

/* --- Orders Page Specific Styles --- */
#auth-container {
    text-align: center;
    margin-bottom: 3rem;
}
#user-info p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
#order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem auto;
}
#order-form label {
    font-weight: 600;
    margin-bottom: -1rem;
}
#order-form input,
#order-form select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
#price-calculation {
    text-align: right;
    font-size: 1.2rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
}
#payment-details {
    padding: 1rem;
    background-color: #f0f4f8;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
#order-history-container {
    margin-top: 4rem;
}
.order-history-item {
    background: #ffffff;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--surface-shadow);
    border-left: 4px solid var(--secondary-color);
}
.order-history-item p { margin: 0.5rem 0; }
.status-paid {
    color: #28a745;
    font-weight: 600;
}
.status-pending-confirmation {
    color: #fd7e14;
    font-weight: 600;
}
/* ==========================================================================
   NEW STYLES FOR AUTHENTICATION
   ========================================================================== */

.auth-wrapper {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--surface-shadow);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

#login-form, #signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#login-form label, #signup-form label {
    font-weight: 600;
    margin-bottom: -1rem;
}

#login-form input, #signup-form input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--secondary-color);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--surface-border);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #fff;
    color: #444;
    border: 1px solid var(--surface-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background-color: #f8f8f8;
}

.btn-google img {
    width: 18px;
    height: 18px;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}
/* ADD THIS AT THE END OF style.css */

/* Admin Dashboard Layout */
#dashboard-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

#orders-column {
    flex: 3; /* Takes up 3/4 of the space */
}

#chats-column {
    flex: 1; /* Takes up 1/4 of the space */
    position: sticky;
    top: 120px; /* Adjust based on your header height */
}

.chat-list-item {
    background: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--surface-shadow);
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--surface-shadow);
}
.form-feedback {
  margin-bottom: 1rem;
  border-left: 5px solid;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-feedback.success {
  background: #e6f7f0; /* soft green background */
  border-color: #00a86b; /* brand green accent */
  color: #007a50;        /* darker green text */
}

.form-feedback.error {
  background: #fdecea;  /* soft red background */
  border-color: #d93025; /* brand red accent */
  color: #a32015;        /* darker red text */
}
/* === Floating Chat Button (Updated Circle Layout) === */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Magnified circular shape */
    width: 50px; 
    height: 50px;
    background: linear-gradient(45deg, #00bcd4, #e91e63);
    color: white;
    border-radius: 50%; /* Perfect circle */
    
    /* Flexbox to stack items vertically and center them */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9; /* Slightly more visible */
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-chat-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Style for the emoji icon */
.floating-chat-btn .chat-icon {
    font-size: 32px;
    line-height: 1.2; /* Adjust vertical alignment */
}

/* Style for the text below the icon */
.floating-chat-btn .chat-text {
    font-size: 8px;
    font-weight: 600;
    margin-top: 2px; /* Space between icon and text */
}

/* === "For more..." Link Style === */
.ai-message .more-link {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-glow);
    text-decoration: none;
}

.ai-message .more-link:hover {
    text-decoration: underline;
}


.language-switcher {
  display: flex;
  gap: 10px;
  padding: 10px;
  justify-content: flex-end;
  background: #fafafa;
}

.language-switcher button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #f0f0f0;
  transition: background 0.3s;
  font-family: 'Poppins', sans-serif;
}

.language-switcher button:hover {
  background: #ddd;
}

/* =========================================== */
/* STYLING FOR ADDITIONAL SERVICES PAGE      */
/* =========================================== */
.services-container, .service-section {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.service-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.primary-service {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.service-image-container {
    flex: 1 1 40%;
}

.service-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-text-container {
    flex: 1 1 60%;
}

.service-text-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-text-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack on small screens */
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Base border */
}

.btn-primary {
    background-color: #333;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border-color: #333;
}

.btn-secondary:hover {
    background-color: #333;
    color: #ffffff;
}

.secondary-service {
    background-color: #f9f9f9;
    text-align: center;
}

.subsection-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- Responsive Design --- */
@media (max-width: 800px) {
    .primary-service {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .cta-buttons {
        justify-content: center;
    }
}
/* --- Add this to your style.css file --- */

/* Main layout for the service section */
.service-section.primary-service {
    display: flex;        /* Arrange children side-by-side */
    align-items: center;  /* Vertically align items to the center */
    gap: 2rem;            /* Add space between the video and the text */
    margin-bottom: 3rem;  /* Add some space below this section */
}

/* Define the width for the video and text containers */
.service-image-container,
.service-text-container {
    flex: 1; /* Each child will take up an equal amount of space */
    min-width: 0; /* Prevents overflow issues in flexbox */
}

/* Ensure the video scales correctly within its container */
.service-image-container video {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the video */
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .service-section.primary-service {
        flex-direction: column; /* Stack them vertically on smaller screens */
        gap: 1.5rem;
    }
}
/* === Socials Section === */
#external-platforms {
  display: flex;
  justify-content: center;
  gap: 2rem;          /* spacing between each item */
  margin: 2rem 0;
  flex-wrap: nowrap;    /* keep everything in one line */
  overflow-x: auto;     /* allows horizontal scroll if too many */
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-item img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.social-item img:hover {
  transform: scale(1.2);
}

.social-item span {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}
.social-item span {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #444;        /* softer than pure black */
  font-weight: 500;
}

.social-item img {
  width: 42px;          /* slightly bigger */
  height: 42px;
  border-radius: 8px;  /* optional: gives icons rounded corners */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-item img:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);  /* subtle shadow hover */
}
/* Watermark Styles */
.image-container {
    position: relative;
    display: block;
    overflow: hidden;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgba(0, 0, 0, 0.08);
    font-size: 2em;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    font-family: sans-serif;
}
.project-brief p {
  margin-bottom: 1.2rem;
}

.project-brief strong {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}
/* --- HERO BUTTONS --- */
.hero-buttons {
  margin-top: 2rem; /* Add space above the buttons */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Space between the buttons */
}

/* --- Base Button Style (Apply to all CTAs) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- Primary Button (No Change) --- */
.btn.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn.btn-primary:hover {
    background-color: #004080; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- Secondary Button (Modern Outline Style) --- */
.btn.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* --- Project Page Call to Action Section --- */

.project-cta-section {
    background-color: #f8f9fa; /* A light, neutral background */
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-top: 4rem; /* Adds space above the section */
    text-align: center;
}

.project-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-cta-section p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    color: #555; /* A softer text color */
}
