/* ============================================
   IRFAN RASHID - PERSONAL WEBSITE
   Upgraded CSS - All Enhancements Applied
   ============================================ */

/* Google Fonts - Upgraded Typography */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* CSS Variables */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --accent: #f72585;
    --accent-2: #4cc9f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(67, 97, 238, 0.08);
    --shadow-md: 0 10px 30px rgba(67, 97, 238, 0.12);
    --shadow-lg: 0 20px 50px rgba(67, 97, 238, 0.18);
    --radius: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;

    /* Dark mode variables */
    --dm-bg: #0f172a;
    --dm-surface: #1e293b;
    --dm-border: #334155;
    --dm-text: #e2e8f0;
    --dm-muted: #94a3b8;
}

/* Dark Mode */
body.dark-mode {
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --light-bg: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    background-color: var(--dm-bg);
    color: var(--dm-text);
}

body.dark-mode .feature-card,
body.dark-mode .edu-exp-card,
body.dark-mode .expertise-item,
body.dark-mode .article-card,
body.dark-mode .contact-form,
body.dark-mode .contact-option,
body.dark-mode .coming-soon-card,
body.dark-mode .achievement {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

body.dark-mode .education-experience {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

body.dark-mode .features {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

body.dark-mode .expertise {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

body.dark-mode .about-hero {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

body.dark-mode .portfolio {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

body.dark-mode .coming-soon {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
}

body.dark-mode .contact {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

body.dark-mode h1,
body.dark-mode .article-content h3,
body.dark-mode .edu-exp-card h3,
body.dark-mode .feature-card h3,
body.dark-mode .expertise-item h4,
body.dark-mode .section-title h2 {
    color: var(--accent-2);
}

body.dark-mode .feature-card p,
body.dark-mode .edu-exp-card p,
body.dark-mode .article-content p,
body.dark-mode .expertise-item p,
body.dark-mode .profile-intro p,
body.dark-mode .hero p {
    color: var(--dm-muted);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

body.dark-mode .form-group label {
    color: var(--accent-2);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

/* ============================================
   STICKY NAVIGATION
   ============================================ */

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    width: 100%;
}

header.scrolled {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.97) 0%, rgba(58, 12, 163, 0.97) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd166;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd166;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dark Mode Toggle */
.nav-extras {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(20deg);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: var(--transition);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.5);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: flex;
    align-items: center;
    min-height: calc(90vh - var(--nav-height));
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.07) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: pulse-bg 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.05) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
    animation: pulse-bg 8s ease-in-out infinite reverse;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 85%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(67, 97, 238, 0.2);
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    line-height: 1.2;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   CTA BUTTON
   ============================================ */

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.35);
    font-size: 1rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cta-button:hover::before { opacity: 1; }

.cta-button span { position: relative; z-index: 1; }

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.45);
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   EDUCATION & EXPERIENCE SECTION
   ============================================ */

.education-experience {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f0f4ff, #e6eeff);
}

.edu-exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.edu-exp-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.edu-exp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.edu-exp-card:hover::before { transform: scaleX(1); }

.edu-exp-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.logo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff, #e6eeff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.15);
    border: 3px solid var(--primary);
    overflow: hidden;
    transition: var(--transition);
}

.edu-exp-card:hover .logo-container {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(247, 37, 133, 0.2);
}

.logo-placeholder {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo-container img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.edu-exp-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.4;
    font-weight: 700;
}

.edu-exp-card p {
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.institute-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: auto;
    letter-spacing: 0.5px;
}

/* ============================================
   FEATURES SECTION (with icons)
   ============================================ */

.features {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f0f4ff);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::after { transform: scaleX(1); }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: var(--transition);
    border: 2px solid rgba(67, 97, 238, 0.15);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 1200px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.cta-section h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8fafc, #eef2ff);
}

.about-hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-image {
    flex: 1;
    text-align: center;
}

.profile-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-image img:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(67, 97, 238, 0.2);
}

.profile-intro {
    flex: 2;
}

.profile-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* ============================================
   STAT COUNTERS (NEW)
   ============================================ */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: 0;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #ffd166;
    font-family: 'Sora', sans-serif;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   CAREER TIMELINE (NEW)
   ============================================ */

.career-timeline {
    padding: 6rem 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
    top: 8px;
    transition: var(--transition);
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent);
    transform: translateX(-50%) scale(1.3);
}

.timeline-content {
    flex: 1;
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: calc(50% - 2rem);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */

.expertise {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #eef2ff, #e6eeff);
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.expertise-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.expertise-item:hover {
    transform: translateY(-5px) translateX(3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}

.expertise-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.achievement::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.achievement h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.achievement p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   ABOUT CTA
   ============================================ */

.about-cta {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 1200px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.about-cta h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */

.portfolio {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8fafc, #eef2ff);
}

/* Filter Tabs (NEW) */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-tab {
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.article-card.hidden {
    display: none;
}

.article-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.article-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
}

.article-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-date {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Reading time badge (NEW) */
.read-time {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    background: rgba(247, 37, 133, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: inline-block;
}

.read-more {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.88rem;
}

.read-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* Article category tag */
.article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tag-tech { background: #e0f2fe; color: #0369a1; }
.tag-finance { background: #f0fdf4; color: #15803d; }
.tag-book { background: #fef3c7; color: #92400e; }
.tag-personal { background: #fce7f3; color: #9d174d; }

.substack-link {
    text-align: center;
    margin-top: 3.5rem;
}

.substack-button {
    display: inline-flex;
    align-items: center;
    background: #ff6719;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 103, 25, 0.35);
    gap: 0.5rem;
}

.substack-button:hover {
    background: #e05a14;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 103, 25, 0.4);
}

/* ============================================
   COMING SOON SECTION
   ============================================ */

.coming-soon {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #eef2ff, #e6eeff);
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.coming-soon-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed var(--primary);
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-style: solid;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff, #e6eeff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.15);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.coming-soon-card:hover .coming-soon-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.coming-soon-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.coming-soon-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8fafc, #eef2ff);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.contact-option {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-option:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff, #e6eeff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.15);
    border: 3px solid var(--primary);
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.contact-option:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.contact-option h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-option p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.email-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.email-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

/* Form Styles */
.contact-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    width: 100%;
}

.submit-button:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.35);
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #b91c1c;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 4px solid var(--accent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-2), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.2rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(247, 37, 133, 0.4);
    border-color: var(--accent);
}

.footer-cta {
    margin: 1.2rem 0;
}

.footer-cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-cta-button:hover {
    background: #b5179e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.35);
}

.footer-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 100%;
    font-size: 0.85rem;
}
