/* style.css - Abhinav Singwal Portfolio - Fixed Spacing */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    padding-top: 80px;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6 !important;
}

/* Hero Section - Extra spacing added */
.hero-section {
    padding: 80px 0 70px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

.hero-badge {
    display: inline-block;
    background: #e2e8f0;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 20px;
}

.display-4 {
    margin-bottom: 20px;
    line-height: 1.3;
}

.lead {
    margin-bottom: 30px;
    line-height: 1.6;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    margin-right: 25px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #3b82f6;
}

.hero-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 30px !important;
}

.hero-card i {
    color: #3b82f6;
}

/* Buttons */
.btn-primary {
    background: #1e293b;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 8px;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #cbd5e1;
    color: #334155;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-secondary:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    color: #3b82f6;
}

/* Skills Section - Extra spacing */
.skills-section {
    padding: 80px 0;
    background: white;
}

.skills-section .text-center {
    margin-bottom: 60px;
}

.skills-section h2 {
    margin-bottom: 15px;
}

.skills-section .text-secondary {
    font-size: 1.1rem;
}

.skill-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 35px 25px !important;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    margin-bottom: 0;
}

.skill-card i {
    font-size: 2.8rem;
    color: #3b82f6;
    margin-bottom: 20px;
    display: inline-block;
}

.skill-card h5 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skill-card p {
    line-height: 1.6;
    color: #475569;
}

/* Featured Section - Extra spacing */
.featured-section {
    padding: 80px 0;
    background: #f1f5f9;
}

.featured-section .text-center {
    margin-bottom: 60px;
}

.featured-section h2 {
    margin-bottom: 15px;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 30px !important;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.project-card h4 {
    margin-bottom: 15px;
}

.project-card p {
    line-height: 1.6;
    margin: 15px 0;
    color: #475569;
}

.project-card .badge {
    font-size: 0.7rem;
    padding: 5px 12px;
}

.repo-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 15px;
}

/* Writeups Preview */
.writeups-preview {
    padding: 80px 0;
    background: white;
}

.writeups-preview h2 {
    margin-bottom: 20px;
}

.writeups-preview p {
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px !important;
    border-left: 4px solid #3b82f6;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.blog-card i {
    color: #3b82f6;
}

.blog-card h6 {
    margin-bottom: 5px;
}

/* Certifications Section */
.certs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.cert-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.cert-card i {
    color: #3b82f6;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cert-card h4 {
    margin-bottom: 20px;
}

.cert-card ul li {
    margin-bottom: 12px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #3b82f6;
}

/* Section common spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    width: 100%;
}

/* Row spacing */
.row {
    margin-bottom: 0;
}

.row>[class*="col-"] {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        padding: 50px 0 40px 0;
        text-align: center;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .skills-section {
        padding: 50px 0;
    }

    .featured-section {
        padding: 50px 0;
    }

    .writeups-preview {
        padding: 50px 0;
        text-align: center;
    }

    .certs-section {
        padding: 50px 0;
    }

    .cert-card {
        margin-bottom: 20px;
    }

    .footer {
        text-align: center;
    }

    .btn-primary,
    .btn-outline-secondary {
        padding: 10px 24px;
    }
}

/* Extra large screens ke liye bhi spacing */
@media (min-width: 1400px) {
    .hero-section {
        padding: 100px 0 90px 0;
    }

    .skills-section,
    .featured-section,
    .writeups-preview,
    .certs-section {
        padding: 100px 0;
    }
}

/* Add these to the bottom of your existing style.css */

/* Page Header */
.page-header {
    padding: 100px 0 40px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.github-stats .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
    background: #f1f5f9;
    color: #334155;
    border: none;
    padding: 8px 24px;
    margin: 5px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e293b;
    color: white;
}

/* Projects Grid */
.projects-grid-section {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 600px;
}

.project-card-detailed {
    background: white;
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.project-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #1e293b;
}

.tech-badge {
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e40af;
}

.stars-count {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

.project-description {
    color: #475569;
    line-height: 1.6;
    margin: 16px 0;
    flex-grow: 1;
}

.project-footer {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.project-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.repo-link, .demo-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.repo-link {
    color: #1e293b;
}

.repo-link:hover {
    color: #3b82f6;
}

.demo-link {
    color: #3b82f6;
}

.demo-link:hover {
    text-decoration: underline;
}

/* GitHub Callout */
.github-callout {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

.github-callout i {
    color: #1e293b;
}

.github-callout .btn-primary {
    background: #1e293b;
}

.github-callout .btn-primary:hover {
    background: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 30px 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .filter-section {
        padding: 30px 0;
    }
    
    .filter-btn {
        padding: 6px 18px;
        font-size: 0.85rem;
    }
    
    .projects-grid-section {
        padding: 40px 0;
    }
    
    .project-name {
        font-size: 1rem;
    }
}


/* Redirect Section */
.redirect-section {
    padding: 120px 0 60px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    min-height: 70vh;
}

.redirect-card {
    background: white;
    border-radius: 32px;
    padding: 50px 30px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.redirect-icon i {
    font-size: 5rem;
    color: #3b82f6;
}

.redirect-message {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.redirect-buttons .btn-primary {
    background: #1e293b;
    border: none;
}

.redirect-buttons .btn-primary:hover {
    background: #3b82f6;
}

/* Featured Writeups Section */
.featured-writeups {
    padding: 60px 0;
    background: white;
}

.writeup-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.writeup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.writeup-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.writeup-card h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

.writeup-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.writeup-card:hover .read-link {
    gap: 10px;
}

@media (max-width: 768px) {
    .redirect-section {
        padding: 100px 0 40px 0;
    }
    
    .redirect-card {
        padding: 30px 20px;
    }
    
    .redirect-icon i {
        font-size: 3.5rem;
    }
    
    .redirect-message {
        padding: 20px;
    }
    
    .redirect-buttons .btn {
        display: inline-block;
        margin: 5px;
    }
    
    .featured-writeups {
        padding: 40px 0;
    }
    
    .writeup-card {
        padding: 25px;
    }
}

/* Tools Page Styles */
.tools-header {
    padding: 100px 0 50px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.tools-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tools-badge i {
    color: #3b82f6;
    margin-right: 8px;
}

.tools-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.stat-badge i {
    margin-right: 6px;
}

/* Tools Grid */
.tools-grid-section {
    padding: 60px 0;
    background: #f8fafc;
}

.tool-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -15px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon i {
    font-size: 28px;
    color: white;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tool-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #1e293b;
}

.tool-badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-lang-badge {
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e40af;
}

.tool-type-badge {
    background: #dbeafe;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1d4ed8;
}

.tool-description {
    color: #475569;
    line-height: 1.6;
    margin: 16px 0;
    flex-grow: 1;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.tool-features span {
    font-size: 0.75rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.tool-github-link {
    background: #1e293b;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-github-link:hover {
    background: #3b82f6;
    color: white;
}

.tool-demo-link {
    background: #eff6ff;
    color: #3b82f6;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-demo-link:hover {
    background: #3b82f6;
    color: white;
}

.tool-copy-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.tool-copy-btn:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
}

/* How to Use Section */
.howto-section {
    padding: 70px 0;
    background: white;
}

.howto-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.howto-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #3b82f6;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.howto-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin: 15px 0;
}

.howto-card h5 {
    margin-bottom: 12px;
    font-weight: 600;
}

.howto-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.howto-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: inline-block;
    font-family: monospace;
}

@media (max-width: 768px) {
    .tools-header {
        padding: 80px 0 40px 0;
    }
    
    .tools-header h1 {
        font-size: 1.8rem;
    }
    
    .tools-grid-section {
        padding: 40px 0;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-name {
        font-size: 1.1rem;
    }
    
    .tool-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tool-github-link,
    .tool-demo-link,
    .tool-copy-btn {
        text-align: center;
        justify-content: center;
    }
    
    .howto-section {
        padding: 50px 0;
    }
    
    .howto-card {
        margin-bottom: 30px;
    }
}


/* Contact Page Styles */
.contact-section {
    padding: 120px 0 70px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
}

.contact-info-card {
    background: white;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.contact-badge {
    display: inline-block;
    background: #eff6ff;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 500;
}

.contact-badge i {
    margin-right: 6px;
}

.contact-details {
    margin: 30px 0;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 22px;
    color: #3b82f6;
}

.contact-detail-item h6 {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.contact-detail-item p {
    margin-bottom: 0;
    font-weight: 500;
    color: #1e293b;
}

.contact-availability {
    background: #ecfdf5;
    padding: 14px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-availability i {
    font-size: 1.2rem;
}

.contact-availability span {
    font-weight: 500;
    color: #065f46;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

.contact-form-card .btn-primary {
    background: #1e293b;
    padding: 14px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.2s;
}

.contact-form-card .btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.contact-form-card .btn-primary:disabled {
    background: #94a3b8;
    transform: none;
}

/* Alert styles for form status */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 100px 0 50px 0;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
    
    .contact-detail-item {
        padding: 12px 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
}