/* --- Variables & Reset --- */
:root {
    --primary-color: #0d7c66; /* Elegant Unani Green */
    --secondary-color: #f4a261; /* Warm Accent */
    --bg-color: #fdfdfd;
    --text-main: #333333;
    --text-light: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }


.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }

.logo h1 { font-family: var(--font-heading); font-size: 1.8em; color: var(--primary-color); }
.logo span { font-size: 0.6em; color: var(--text-light); font-family: var(--font-body); }

.navbar ul { list-style: none; display: flex; gap: 20px; }
.navbar a { text-decoration: none; color: var(--text-main); font-weight: 700; transition: color 0.3s; }
.navbar a:hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero { padding: 80px 0; background: linear-gradient(to right, #f4f9f4, #ffffff); }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.hero-content { flex: 1; }
.hero-content h2 { font-family: var(--font-heading); font-size: 3em; margin-bottom: 20px; color: #222; line-height: 1.2; }
.hero-content p { font-size: 1.1em; color: var(--text-light); margin-bottom: 30px; }

.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 8px solid white; }

/* --- Global Smooth Scrolling --- */
html {
    scroll-behavior: smooth; /* This makes the button gracefully glide down to the section! */
}

/* --- Philosophy Section --- */
.philosophy-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.philosophy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.philosophy-text {
    flex: 2;
    max-width: 800px;
}

.philosophy-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.philosophy-text .subtitle {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 400;
}

.philosophy-text p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.core-pillars {
    list-style: none;
    margin-top: 30px;
    background: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.core-pillars li {
    font-size: 1.05em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.core-pillars li:last-child {
    margin-bottom: 0;
}

.philosophy-accent {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* A modern, abstract circle design that fits the "holistic balance" theme */
.circle-accent {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 124, 102, 0.1), rgba(244, 162, 97, 0.2));
    position: relative;
}

.circle-accent::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
}
/* --- Buttons --- */
.btn { 
    display: inline-block; padding: 12px 28px; border-radius: 30px; 
    text-decoration: none; font-weight: bold; transition: all 0.3s ease; 
    border: none; cursor: pointer; font-family: var(--font-body); 
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: #0a5f4e; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(13, 124, 102, 0.3); }
.btn-secondary { background-color: var(--secondary-color); color: white; }
.btn-secondary:hover { background-color: #e08b4a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(244, 162, 97, 0.3); }
.btn:disabled { background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- AI Generator Section --- */
.ai-generator { padding: 80px 0; background-color: #f8f9fa; }
.ai-card { 
    background: white; border-radius: 16px; padding: 50px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); max-width: 800px; margin: 0 auto; 
}

.ai-header { text-align: center; margin-bottom: 30px; }
.ai-header h3 { font-family: var(--font-heading); font-size: 2em; color: var(--primary-color); margin-bottom: 10px; }
.ai-header p { color: var(--text-light); font-size: 1.1em; }

.ai-controls { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.ai-controls input { 
    flex: 1; min-width: 250px; padding: 15px 25px; border: 2px solid #eaeaea; 
    border-radius: 30px; font-size: 1em; font-family: var(--font-body); 
    outline: none; transition: border-color 0.3s; 
}
.ai-controls input:focus { border-color: var(--primary-color); }

/* --- Output Display --- */
.loading-state { display: none; text-align: center; color: var(--primary-color); font-weight: bold; margin-top: 20px; }
.output-area { 
    display: none; margin-top: 30px; padding: 30px; background: #fdfdfd; 
    border-left: 5px solid var(--primary-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}
.draft-content h1, .draft-content h2, .draft-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin: 20px 0 10px; }
.draft-content p { margin-bottom: 15px; }
.draft-content ul { margin-left: 20px; margin-bottom: 15px; }
.draft-content li { margin-bottom: 5px; }

/* --- Footer --- */
.footer { background-color: #222; color: white; text-align: center; padding: 30px 0; font-size: 0.9em; }