/* CSS Variables for Theme Management */
:root {
    --primary-color: #cd3e51;
    --primary-dark: #bc3a5b;
    --secondary-color: #c63e4e;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #150837;
    --error-color: #ef4444;
    
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f16371 0%, #9546d6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #4b7ba2 100%);
}

/* Dark Theme */
body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--gradient-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.theme-toggle i {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#moon-icon {
    display: none;
}

body.dark-mode #sun-icon {
    display: none;
}

body.dark-mode #moon-icon {
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: all 0.3s ease;
}

body.dark-mode .header {
    background: rgba(15, 23, 42, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.login-button,
.logout-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-button:hover,
.logout-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    margin: 10% auto;
    padding: 0;
    border: none;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-large);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--error-color);
}

.login-container {
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-toggle {
    right: 1rem !important;
    left: auto !important;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.demo-credentials {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-color);
}

.demo-credentials p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: var(--gradient-hero);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.cta-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(1) {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.float-element:nth-child(3) {
    bottom: 10%;
    right: 30%;
    animation-delay: 4s;
}

.float-element i {
    font-size: 2rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* News Section */
.news-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    /* Required for line clamping today */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;      /* Webkit version (widely supported now) */
    line-clamp: 2;              /* Standard property for future compatibility */
    overflow: hidden;
    /* Your existing styles */
}

.news-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    /* Your existing styles */
}


.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-source {
    font-weight: 500;
}

.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.news-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.about-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-avatar i {
    font-size: 3rem;
    color: white;
}

.about-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tech-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Chatbot Styles */
.chatbot-container {

    position: fixed;
    bottom: 100px;
    right: 250px;
    width: 1000px;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;

    height: 500px;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-large);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    z-index: 1000;
     /* ...your existing styles... */
  background: url('https://t3.ftcdn.net/jpg/09/22/01/20/360_F_922012043_DQe3SsAg0RC5IyjhkSOVpO0IQdJT6kt3.jpg') no-repeat center center;
  background-size: cover;
}

.code-example {
  background: #23272f;
  color: #f9f9f9;
  padding: 18px 13px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 1em;
  max-width: 100%;
  overflow-x: auto;               /* Enables horizontal scrolling for very long lines */
  box-sizing: border-box;
  
  /* Ensure long words and code lines wrap or break */
  white-space: pre-wrap;           /* Preserve formatting but wrap as needed */
  word-wrap: break-word;           /* Legacy name for overflow-wrap */
  overflow-wrap: break-word;       /* Modern property to break long words */
  word-break: break-word;          /* Break words at arbitrary points if needed */
}

.code-example h1, 
.code-example h2, 
.code-example h3,
.code-example strong {
  font-size: 1em;            /* Prevents huge headers inside box */
  font-weight: bold;
  word-break: break-word;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: var(--gradient-primary);
    color: rgb(157, 23, 23);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;

    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.message i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message i {
    background: var(--gradient-primary);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message i {
    background: var(--gradient-secondary);
    color: white;
}

.message-content {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 0.9rem;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.chatbox-input {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f9f9f9;
  gap: 10px;
}

.chatbox-input input {
  flex: 1;
  height: 50px;                  /* 🔼 HEIGHT increased */
  font-size: 16px;               /* 🔼 Text size */
  padding: 10px 15px;            /* 🔼 More spacing inside */
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  outline: none;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbox-input button {
  height: 50px;                  /* Match button height */
  padding: 0 20px;
  background-color: #b66b26;
  color: rgb(182, 198, 13);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 999;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-medium);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1002;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    background: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
      .code-example {
    font-size: 0.93em;
    padding: 9px 5px;
    border-radius: 7px;
  }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        flex-direction: column;
        text-align: center;
    }
    
    .chatbot-container {
        width: 300px;
        height: 400px;
        padding: 8px;
        margin: 10px auto;
        border-radius: 7px;

    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth Animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* === Chatbox Hot-Fix & Animated Background ================================= */
@keyframes cbGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/* Universal anti-overflow guard for every text-bearing child */
.chatbot-container,
.chatbot-messages,
.message-content,
.code-example,
.code-example pre,
.code-example code {
  overflow-wrap: anywhere;         /* modern overflow control */
  word-break: break-word;          /* fallback for old engines */
  white-space: pre-wrap;           /* respect \n but allow wrap */
}

/* === FINAL LEFT-EDGE GUARD FOR CHATBOX === */
.chatbot-container *,
.chatbot-messages *,
.message-content,
.code-example,
.code-example pre,
.code-example code {
  max-width: 100% !important;           /* Constrain width to container */
  box-sizing: border-box !important;    /* Include padding in width */
  overflow-wrap: anywhere !important;   /* Break long words/URLs anywhere */
  word-break: break-word !important;    /* Fallback for older engines */
  margin-left: 0 !important;            /* Eliminate negative or inherited offsets */
}

/* Prevent the messages pane itself from scrolling past left border */
.chatbot-messages {
  overflow-x: hidden !important;
  padding-left: 1rem !important;        /* Give a consistent inner margin */
}

/* === Center & Slightly Wider Chatbox === */
.chatbot-container {
  max-width: 650px !important;    /* ↑ increase from 600px to 650px */
  margin: 0 auto !important;      /* center horizontally */
}

/* Centered chat container with increased maximum width and fixed right space */
.chatbot-container {
  max-width: 1000px !important;      /* Increased width for a roomier chatbox */
  width: 100% !important;           /* Expands to maximum up to 800px */
  margin: 0 auto !important;        /* Always centered horizontally */
  padding-right: 20px !important;   /* Fixed right-hand spacing */
  box-sizing: border-box !important;
}

/* Responsiveness: On smaller screens, adjust to fit the viewport */
@media (max-width: 768px) {
  .chatbot-container {
    max-width: 80vw !important;
    padding-right: 20px !important;
  }
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.content-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.features-list {
    list-style: none;
    margin: 1.5rem 0 2rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.cta-section {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-section {
        flex-direction: column;
    }
    
    .features-list li {
        font-size: 0.95rem;
    }
}

/* Internal Navigation Styles */
.internal-nav {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.nav-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-card p a {
    color: var(--accent-color);
    text-decoration: underline;
}

.related-links {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1rem;
}

.related-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-links li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.related-links li a:hover {
    text-decoration: underline;
}

/* Social Media Platform Colors */
.social-link.youtube { background: #FF0000; }
.social-link.twitter { background: #000000; }
.social-link.linkedin { background: #0077B5; }
.social-link.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.social-link.facebook { background: #1877F2; }
.social-link.github { background: #333333; }

.social-link.youtube:hover { background: #CC0000; }
.social-link.twitter:hover { background: #333333; }
.social-link.linkedin:hover { background: #005885; }
.social-link.facebook:hover { background: #1465C0; }
.social-link.github:hover { background: #555555; }

/* Make GitHub icon bigger and centered */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.social-link.github {
    font-size: 4rem; /* Makes icon bigger */
    color: #24292e; /* GitHub's black color */
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(36, 41, 46, 0.1);
}

.social-link.github:hover {
    font-size: 4.5rem; /* Slightly bigger on hover */
    color: #0366d6; /* GitHub blue on hover */
    background: rgba(3, 102, 214, 0.1);
    transform: translateY(-3px);
}

/* Dark mode support */
.dark-mode .social-link.github {
    color: #f0f0f0;
    background: rgba(240, 240, 240, 0.1);
}

.dark-mode .social-link.github:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}
/* Mobile responsive GitHub icon */
@media (max-width: 768px) {
    .social-link.github {
        font-size: 3rem; /* Smaller on mobile */
    }
    
    .social-link.github:hover {
        font-size: 3.3rem;
    }
}

@media (max-width: 480px) {
    .social-link.github {
        font-size: 2.5rem; /* Even smaller on small phones */
    }
    
    .social-link.github:hover {
        font-size: 2.8rem;
    }
}










