/* ========================================
   NISHADSL.COM - COMPLETE STYLESHEET
   Fixed contact spacing: more after heading, less between items
   ======================================== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #eff6ff;
    --success: #10b981;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

body.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #60a5fa;
    --accent-dark: #3b82f6;
    --accent-light: #1e293b;
}

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

body {
    font-family: -apple-system, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container, 
.hero-content, 
.services-grid,
.company-grid,
.contact-container,
.resume-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1600px) {
    .container, 
    .hero-content, 
    .services-grid,
    .company-grid,
    .contact-container,
    .resume-container {
        max-width: 1400px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 2560px) {
    .container, 
    .hero-content, 
    .services-grid,
    .company-grid,
    .contact-container,
    .resume-container {
        max-width: 1600px;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    backdrop-filter: blur(10px);
}

body.dark .navbar {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.dark .logo {
    background: linear-gradient(135deg, #f1f5f9 0%, #60a5fa 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.dark .logo span {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.right-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

body.dark .theme-toggle {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.hero {
    padding: 5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

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

.stats {
    max-width: 1000px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.services {
    padding: 4rem 1.5rem;
    background: var(--bg-secondary);
}

.services-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.experience-summary {
    padding: 4rem 1.5rem;
}

.company-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.role-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.cta {
    background: var(--accent-light);
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-content p {
    margin-bottom: 1rem;  /* ← ADD THIS LINE */
}

.resume-container {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.resume-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.resume-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.resume-title {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    font-size: 0.85rem;
}

.resume-section h2 {
    font-size: 1.3rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.summary-text {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.job {
    margin-bottom: 1.5rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.job-title {
    font-weight: 700;
}

.job-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.job-company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.job ul {
    list-style: none;
    padding-left: 1.25rem;
}

.job ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.job ul li::before {
    content: "▹";
    position: absolute;
    left: -1.25rem;
    color: var(--accent);
}

.skills-list, .strengths-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list, .strengths-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.education {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.edu-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.edu-degree {
    font-weight: 600;
    flex: 2;
}

.edu-year {
    color: var(--accent);
    font-weight: 500;
}

.edu-school {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-page {
    padding: 3rem 1.5rem;
    flex: 1;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card, .contact-form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* More space after "Get in Touch" heading */
/* More space after headings with underline for both */
.contact-info-card h2,
.contact-form-card h2 {
    margin-bottom: 2rem;
    /* Remove padding-bottom and border-bottom */
}

/* Less space between contact items */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* FIXED: Proper alignment for icon and text - all on one line */
.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.contact-detail a, 
.contact-detail span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--accent);
}

.availability {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}

.status-badge.available {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

body.dark .status-badge.available {
    background: #14532d;
    color: #86efac;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.success-message {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #bbf7d0;
}

body.dark .success-message {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #22c55e;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

.social-links a, .footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.social-links a:hover, .footer-links a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* ========================================
   MODERN BACK TO TOP BUTTON (2026 STYLE)
   ======================================== */

.back-to-top-modern {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0;
    visibility: hidden;
    z-index: 99999;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top-modern.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-modern:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--accent-dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body.dark .back-to-top-modern {
    background: #3b82f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark .back-to-top-modern:hover {
    background: #60a5fa;
}

.back-to-top-modern span {
    transition: transform 0.2s ease;
    display: inline-block;
}

.back-to-top-modern:hover span {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top-modern {
        width: 48px;
        height: 48px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu.active {
        display: flex;
    }
}

@media print {
    .navbar, .theme-toggle, .mobile-menu-btn, .hero-buttons, .cta, .footer, .resume-actions, .right-buttons, .back-to-top-modern {
        display: none;
    }
}