/* --- 1. Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* === MAC THEME VARIABLES === */
    --mac-blue-start: #5DA6FF;
    --mac-blue-end: #007AFF;
    --mac-gold: #eb9e26;
    --mac-gold-dark: #d98d1a;
    --mac-dark-grey: #2d2d2d; 
    --text-main: #e2e2e2;
    --btn-radius: 5px; 
    --btn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* === THEME 1: DEFAULT (Ocean Dark - Blue/Grey) === */
    --primary-color: #10b981;       
    --primary-hover: #34d399;
    --bg-main: #0f172a;             
    --bg-secondary: #020617;        
    --bg-card: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --text-title: #ffffff;          
    --text-muted: #9ca3af;
    --border-color: #333333; 
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* === THEME 2: PITCH BLACK (Deep Dark) === */
body.theme-black {
    --primary-color: #10b981;
    --primary-hover: #34d399;
    
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;
    --nav-bg: rgba(0, 0, 0, 0.85);
    
    --text-main: #e5e5e5;
    --text-title: #ffffff;
    --text-muted: #a3a3a3;
    
    --border-color: #262626;
}

/* === THEME 3: CLEAN WHITE (Bright) === */
body.theme-white {
    --primary-color: #059669;       
    --primary-hover: #10b981;
    
    --bg-main: #ffffff;
    --bg-secondary: #f3f4f6;        
    --bg-card: #f9fafb;             
    --nav-bg: rgba(255, 255, 255, 0.9);
    
    --text-main: #4b5563;           
    --text-title: #111827;          
    --text-muted: #6b7280;
    
    --border-color: #e5e7eb;
}

/* === THEME 4: SOFT LIGHT (Warm/Paper) === */
body.theme-soft {
    --primary-color: #059669;
    --primary-hover: #10b981;
    
    --bg-main: #fff0e5;             /* Requested Color */
    --bg-secondary: #fae1cf;        /* Slightly darker warm tone */
    --bg-card: #ffffff;             /* White cards look crisp on this bg */
    --nav-bg: rgba(255, 240, 229, 0.9);
    
    --text-main: #44403c;           /* Warm Dark Grey */
    --text-title: #1c1917;          /* Warm Black */
    --text-muted: #78716c;
    
    --border-color: #ebd5c1;
}

/* --- 2. Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.hidden {
    display: none !important;
}

/* --- 3. Buttons (MAC THEME) --- */
.btn {
    display: inline-block;
    padding: 6px 20px;
    border-radius: var(--btn-radius);
    font-family: var(--btn-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.1s ease;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0.5px);
    filter: brightness(0.95);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(180deg, var(--mac-blue-start) 0%, var(--mac-blue-end) 100%);
    background-color: var(--mac-blue-end);
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

/* --- NEW RED BUTTON (Mac Style) --- */
.btn-red {
    /* Mac Red Gradient */
    background: linear-gradient(180deg, #FF6B6B 0%, #FF2D2D 100%);
    background-color: #FF2D2D;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-red:hover {
    filter: brightness(1.05);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--mac-dark-grey);
    border-color: var(--mac-blue-end);
    color: var(--mac-blue-end);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-gold {
    background: var(--mac-gold);
    border-color: var(--mac-gold-dark);
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.btn-gold:hover {
    background: #f5a623;
    border-color: #f5a623;
    filter: brightness(1.05);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-title);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-left: 20px;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background-color: var(--mac-dark-grey);
    border-color: var(--mac-blue-end);
    color: var(--mac-blue-end);
}

/* --- 4. Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-title);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none; /* Hidden on Desktop */
    background: none;
    border: none;
    color: var(--text-title);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
}

/* Mobile Menu */
.mobile-menu {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(128, 128, 128, 0.05);
    border-radius: 6px;
}

/* --- 5. Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.title {
    font-size: 3.5rem;
    color: var(--text-title);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Hero Image & Animation */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-width: 300px;
    margin-top: 2rem;
    align-items: center; /* Added for vertical centering */
}

.image-frame {
    width: 300px;
    height: 300px;
    background-color: var(--bg-card);
    border-radius: 50%;
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- UPDATED GLOW EFFECT (FAST FADE & CENTERED) --- */
.blob {
    position: absolute;
    /* Center the blob relative to .hero-image */
    top: 50%;
    left: 50%;
    /* transform is handled in keyframes */

    width: 350px; 
    height: 350px;
    
    /* Red gradient creates the core */
    background: radial-gradient(circle, rgba(255, 30, 30, 0.8) 0%, rgba(255, 30, 30, 0) 70%);
    
    border-radius: 50%;
    filter: blur(45px);
    z-index: 1;
    
    /* Red light emission */
    box-shadow: 0 0 70px rgba(255, 30, 30, 0.5);
    
    /* Slowed down animation from 1s to 3s */
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { 
        /* Combine centering translate with scale */
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.3; /* Fades out significantly */
    }
    50% { 
        /* Combine centering translate with scale */
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1; /* Fades in fully */
        filter: blur(45px) brightness(1.5); /* Bright glow peak */
    }
}

/* --- 6. Sections General --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--text-title);
    margin-bottom: 3rem;
}

/* --- 7. About Section --- */
.about-container {
    max-width: 800px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-card h3 {
    color: var(--text-title);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- 8. Projects/Activities Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image i {
    font-size: 3rem;
    color: var(--text-muted);
}

.project-card:hover .card-image i {
    color: var(--primary-color);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

.tech-badges {
    margin: 1rem 0;
    display: flex;
    gap: 10px;
}

.tech-badges small {
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.card-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.card-links a:hover {
    color: var(--primary-color);
}

/* --- 9. Contact/Support Section --- */
.contact-container {
    text-align: center;
    max-width: 700px;
}

.contact-text {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-title);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- 10. Footer --- */
footer {
    background-color: var(--bg-main);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
}

/* --- 11. Responsive Design (Mobile) --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .title {
        font-size: 2.5rem;
    }
}

/* --- 12. Education Cards --- */
.edu-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.edu-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.light-theme .edu-card:hover {
    background-color: #f0fdf4;
}

body.theme-black .edu-card:hover {
    background-color: #1a1a1a;
}

.edu-content {
    padding: 1.25rem;
}

.edu-content h3 {
    color: var(--text-title);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.edu-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* --- 13. Accordion (Expandable List) --- */
.accordion-btn {
    background-color: var(--bg-card);
    color: var(--text-title);
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: 0.4s;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn:hover, .accordion-btn.active {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
}

.accordion-btn i {
    transition: transform 0.3s ease;
}

.accordion-btn.active i {
    transform: rotate(180deg);
}

.panel {
    padding: 0 18px;
    background-color: var(--bg-main);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 10px;
    border-radius: 0 0 8px 8px;
}

.panel-content {
    padding: 20px 0;
    text-align: center;
}

.cert-img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- 14. Support Page Styles (Mac Buttons) --- */
.support-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.support-column {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.support-title {
    color: var(--text-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.support-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: var(--btn-radius);
    font-family: var(--btn-font);
    font-weight: 600;
    transition: all 0.1s ease;
    min-width: 180px;
    margin: 10px;
    color: white;
    text-align: center;
    border: 1px solid transparent;
    font-size: 14px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.support-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn-social {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-social:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-patreon {
    background: #FF424D;
    border-color: #E63B45;
}
.btn-patreon:hover {
    filter: brightness(1.05);
}

.btn-bkash {
    background: #E2136E;
    border-color: #C00E5C;
}
.btn-bkash:hover {
    filter: brightness(1.05);
}

.payment-box {
    background: var(--bg-main);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    width: 100%;
}

.payment-number {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

/* --- 15. QR Codes --- */
.qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 15px auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    padding: 10px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- 16. About Page Alignment (FIXED) --- */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start; 
}

.about-text-col {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-image-col {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .about-image-col {
        margin-top: 85px; 
    }
}

@media (max-width: 991px) {
    .about-image-col {
        margin-top: 40px;
    }
}
