/* Custom styles for Oikos Web - Web Development Company Theme */

/* Common styles for both themes */
:root {
    /* Modern tech color palette */
    --primary-color: #a96a05d0;      
    --secondary-color: #f7ce2e;   
    --accent-color: #56260a;       
    --code-color: #f8f1d1;         
    --gradient-start: #515465;     
    --gradient-end: #121632;       
    
    --primary-hover: #b45309;      
    --transition-speed: 0.3s;
    
    /* Spacing variables */
    --section-padding: 3rem 0;
    --section-padding-lg: 5rem 0;
}

/* Dark theme (default) */
[data-bs-theme="dark"] {
    --bg-color: #1c1917;           
    --bg-secondary: #292524;      
    --text-color: #f1f5f9;        
    --text-muted: #a8a29e;       
    --navbar-bg: rgba(15, 23, 42, 0.95); 
    --footer-bg: rgba(15, 23, 42, 0.98); 
    --card-bg: #292524;            
    --border-color: rgba(217, 119, 6, 0.2); 
    --shadow-color: rgba(0, 0, 0, 0.6);
}

/* Light theme */
[data-bs-theme="light"] {
    --bg-color: #f3f4f6;           
    --bg-secondary: #e5e7eb;       
    --text-color: #1f2937;         
    --text-muted: #6b7280;     
    --navbar-bg: rgba(248, 250, 252, 0.95); 
    --footer-bg: rgba(248, 250, 252, 0.98); 
    --card-bg: #ffffff;         
    --border-color: rgba(246, 248, 247, 0.792); 
    --shadow-color: rgba(244, 222, 179, 0.484);
    --gradient-start: #b9ac997a;    
    --gradient-end: #f6ce97;
}

/* Base styles - Mobile first */
html {
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

h1, .h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2, .h2 {
    font-size: 1.75rem;
}

.lead {
    font-size: 1.1rem;
}

/* Theme toggle button */
.theme-toggle {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

/* Navbar styling */
.navbar-custom {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.25rem;
}

.navbar-custom .nav-link {
    color: var(--text-color);
    opacity: 0.8;
    transition: all var(--transition-speed);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Footer styling */
.footer-custom {
    background-color: var(--footer-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed);
    position: relative;
    z-index: 10;
    padding: 2rem 0 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

.social-icon:hover {
    color: var(--primary-color);
}

.text-info, .text-info span {
    color: var(--primary-color) !important;
}

/* Button styling */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-info, .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-info:hover, .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Card styling */
.card {
    background-color: var(--card-bg);
    transition: all var(--transition-speed);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    border-radius: 8px;
    height: 100%;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.card-body {
    padding: 1.25rem;
}

/* Feature icons */
.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Section styling */
section {
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed);
    padding: var(--section-padding);
}

section.bg-dark {
    background-color: var(--bg-secondary) !important;
}

/* Hero section specific */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 6rem 0 4rem;
}

.hero-section .btn-outline-light {
    color: white;
    border-color: white;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Quote styling */
.quote-card {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* Continuity line */
.continuity-line {
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    margin: 1.5rem 0;
}

/* Fix for text colors in light mode */
[data-bs-theme="light"] .text-white {
    color: var(--text-color) !important;
}

/* Fix for button outlines in light mode */
[data-bs-theme="light"] .btn-outline-light {
    color: var(--text-color);
    border-color: var(--text-color);
}

/* Code elements */
code, pre {
    color: var(--code-color);
    background-color: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    .lead {
        font-size: 1.15rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 7rem 0 5rem;
    }
    
    .footer-custom {
        padding: 2.5rem 0 1.5rem;
    }
}

/* Desktop Breakpoint */
@media (min-width: 992px) {
    html {
        font-size: 17px;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    section {
        padding: var(--section-padding-lg);
    }
    
    .hero-section {
        padding: 8rem 0 6rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Large Desktop Breakpoint */
@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Extra Large Desktop Breakpoint */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}