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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --border: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    cursor: none;
}

/* Custom Glowing Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0.4) 50%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 40px rgba(99, 102, 241, 0.4);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section with Animated Background */
.hero {
    padding: 8rem 0 6rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Animated particles background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(99, 102, 241, 0.4) 2px, transparent 2px),
        radial-gradient(circle, rgba(139, 92, 246, 0.3) 3px, transparent 3px),
        radial-gradient(circle, rgba(99, 102, 241, 0.25) 1px, transparent 1px);
    background-size: 60px 60px, 100px 100px, 40px 40px;
    background-position: 0 0, 50px 50px, 25px 25px;
    animation: particleFloat 15s linear infinite;
    z-index: 0;
    opacity: 1;
}

/* Floating animation */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-150px) translateX(100px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--bg-gray);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

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

.image-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Sections */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* About Section */
.about {
    background: var(--bg-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.about-card strong {
    color: var(--primary);
    font-weight: 600;
}

/* Work Section */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-image svg {
    width: 100%;
    height: 100%;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 2rem;
}

.project-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-description strong {
    color: var(--primary);
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

/* Contact Section */
.contact {
    background: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {

    .hero-content,
    .about-grid,
    .project-card,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .project-image {
        min-height: 250px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

/* Custom Modals Styling */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-gray);
}

.custom-modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.modal-icon.error {
    background: #ef4444;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-content .btn {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Skills Section Styling */
.skills {
    padding: 6rem 0;
    background: var(--bg-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.skill-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* GitHub Stats Dashboard */
.github-stats {
    padding: 6rem 0;
    background: #f8fafc;
}

.github-dashboard {
    background: #0d1117;
    border-radius: 2rem;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.dashboard-header {
    text-align: center;
    width: 100%;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.typing-container {
    background: rgba(99, 102, 241, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    display: inline-block;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.stats-grid img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.stats-grid img:hover {
    transform: scale(1.02);
}

.dashboard-footer {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Hide broken images automatically */
img:not([src]),
img[src=""] {
    display: none !important;
}

@media (max-width: 768px) {
    .github-dashboard {
        padding: 1.5rem;
    }

    .stats-grid {
        gap: 1rem;
    }
}
/* Social Badges */
.social-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-badges img {
    height: 35px;
    transition: transform 0.3s ease;
}

.social-badges a:hover img {
    transform: translateY(-3px);
}

/* Professional Skills Section */
.professional-skills {
    padding: 6rem 0;
    background: #ffffff;
}

.prof-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.prof-skill-card {
    padding: 2.5rem;
    background: var(--bg-gray);
    border-radius: 2rem;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.prof-skill-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.prof-skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.prof-skill-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.prof-skill-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}
