/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #1f2937;
    color: white;
}

.btn-secondary:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: #1f2937;
}

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

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4b5563;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.nav-mobile.active {
    display: flex;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #d1fae5 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-decoration-1 {
    top: -160px;
    right: -160px;
    background: #dbeafe;
    animation: pulse 4s ease-in-out infinite;
}

.hero-decoration-2 {
    bottom: -160px;
    left: -160px;
    background: #d1fae5;
    animation: pulse 4s ease-in-out infinite 2s;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-greeting {
    font-size: 1.25rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 4rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.5rem;
    color: #6b7280;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:nth-child(1) { background: #1f2937; }
.social-link:nth-child(2) { background: #2563eb; }
.social-link:nth-child(3) { background: #10b981; }

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
}

.about-text h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-paragraphs p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.about-facts {
    background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
    padding: 2rem;
    border-radius: 16px;
}

.about-facts h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fact-dot-blue { background: #2563eb; }
.fact-dot-emerald { background: #10b981; }
.fact-dot-purple { background: #7c3aed; }
.fact-dot-orange { background: #ea580c; }

.skills-section h3 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 3rem;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: #2563eb;
    color: white;
}

.skill-card h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: #6b7280;
    margin: 0;
}

/* Experience Section */
.experience {
    background: #f9fafb;
}

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

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 0;
    width: 14px;
    height: 14px;
    background: #2563eb;
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    margin-left: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-content h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-period {
    color: #2563eb;
    font-weight: 600;
}

.job-description {
    list-style: none;
    margin-bottom: 1.5rem;
}

.job-description li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.job-description li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.job-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Projects Section */
.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-content > p {
    color: #6b7280;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

.project-actions .btn-primary,
.project-actions .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.projects-cta {
    text-align: center;
}

/* Contact Section */
.contact {
    background: #f9fafb;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-text h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.contact-text p {
    color: #6b7280;
    margin: 0;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #dbeafe;
    transform: translateX(5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: #2563eb;
    color: white;
}

.contact-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.contact-value {
    color: #1f2937;
    font-weight: 600;
    margin: 0;
}

.contact-social h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.social-links .social-link {
    width: 50px;
    height: 50px;
    background: white;
    color: #6b7280;
}

.social-links .social-link:hover {
    color: white;
}

.social-links .social-link:nth-child(1):hover { background: #1f2937; }
.social-links .social-link:nth-child(2):hover { background: #2563eb; }
.social-links .social-link:nth-child(3):hover { background: #1da1f2; }

.availability {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.5rem;
}

.availability h4 {
    color: #065f46;
    margin-bottom: 0.5rem;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.availability-status span {
    color: #065f46;
    font-weight: 600;
}

.availability p {
    color: #047857;
    font-size: 0.9rem;
    margin: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.booking-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1rem;
}

/* Cal.com embed styling */
#my-cal-inline-30min {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
    min-height: 600px;
}

#my-cal-inline-30min iframe {
    border-radius: 12px;
    border: none;
}

#my-cal-inline-30min img {
    height: 5vh;
}

/* Custom scrollbar for Cal.com embed - Always visible */
#my-cal-inline-30min {
    overflow-y: scroll !important; /* Always show scrollbar, even with no scroll */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #dbdbdb #f5f5f5;
}

/* Chrome, Edge, Safari */
#my-cal-inline-30min::-webkit-scrollbar {
    width: 12px;
}

#my-cal-inline-30min::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
}

#my-cal-inline-30min::-webkit-scrollbar-thumb {
    background: #dbdbdb;
    border-radius: 6px;
    border: 2px solid #f5f5f5;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
}

#my-cal-inline-30min::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

#my-cal-inline-30min::-webkit-scrollbar-corner {
    background: #f5f5f5;
}


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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #9ca3af;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-text .fa-heart {
    color: #ef4444;
}

.footer-text .fa-code {
    color: #3b82f6;
}

.footer-tech {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

    h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-line {
        left: 16px;
    }

    .timeline-dot {
        left: 10px;
    }

    .timeline-content {
        margin-left: 2.5rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-text {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-social {
        gap: 0.75rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .timeline-content {
        margin-left: 2rem;
        padding: 1.5rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}