* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #111827;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
    text-transform: capitalize;
}

.nav-link:hover {
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #d1d5db;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(126, 34, 206, 0.2), #111827);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.shape-1 {
    top: 25%;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: rgba(59, 130, 246, 0.1);
}

.shape-2 {
    bottom: 25%;
    right: 25%;
    width: 20rem;
    height: 20rem;
    background: rgba(168, 85, 247, 0.1);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    padding: 0 1rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: #d1d5db;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #9ca3af;
    margin-bottom: 3rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #374151;
    color: #d1d5db;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transform: scale(1.1);
}

.scroll-indicator {
    cursor: pointer;
    animation: bounce 2s infinite;
    color: #9ca3af;
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 6rem;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin: 0 auto 2rem;
}

.section-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
}

/* About Section */
.about {
    background: rgba(55, 65, 81, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 2s ease-out;
    width: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(55, 65, 81, 0.7);
    transform: scale(1.05);
}

.feature-card i {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #d1d5db;
}

/* Projects Section */
.projects {
    background: rgba(55, 65, 81, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8), transparent);
    display: flex;
    align-items: end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    transition: background 0.3s ease;
}

.project-btn:hover {
    background: #2563eb;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    color: #93c5fd;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #d1d5db;
    margin: 0;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h4 {
    color: white;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-form {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.contact-form textarea {
    resize: none;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(55, 65, 81, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Animation for skill bars */
.skill-progress.animate {
    animation: fillBar 2s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.loading.visible {
    opacity: 1;
    transform: translateY(0);
}
.nav-link.active {
    color: #60a5fa;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Toast notification styles (optional) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

/* n8n Chatbot Styles */
#n8n-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Custom styling for n8n chat widget */
.n8n-chat .chat-widget {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

.n8n-chat .chat-trigger {
    background: linear-gradient(135deg, #60a5fa, #a855f7) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4) !important;
    transition: all 0.3s ease !important;
}

.n8n-chat .chat-trigger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6) !important;
}

.n8n-chat .chat-header {
    background: linear-gradient(135deg, #60a5fa, #a855f7) !important;
    color: white !important;
}

.n8n-chat .chat-message.user {
    background: linear-gradient(135deg, #60a5fa, #a855f7) !important;
    color: white !important;
}

.n8n-chat .chat-message.bot {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #f9fafb !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
}

.n8n-chat .chat-input {
    background: rgba(31, 41, 55, 0.8) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    color: white !important;
}

.n8n-chat .chat-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1) !important;
}

.n8n-chat .send-button {
    background: linear-gradient(135deg, #60a5fa, #a855f7) !important;
    border: none !important;
}

.n8n-chat .send-button:hover {
    opacity: 0.9 !important;
}

/* Fallback Chat Widget Styles */
.chat-widget-fallback {
    position: relative;
}

.chat-trigger-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-trigger-fallback:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

.chat-message-fallback {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 400px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #f9fafb;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content h4 {
    color: #60a5fa;
    margin-bottom: 10px;
    font-size: 18px;
}

.message-content p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.contact-link {
    display: block;
    color: #60a5fa;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #a855f7;
}

.contact-link i {
    margin-right: 8px;
    width: 16px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f9fafb;
}

/* Mobile responsiveness for chatbot */
@media (max-width: 768px) {
    #n8n-chat {
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .chat-message-fallback {
        width: 280px !important;
        height: 320px !important;
        right: 10px !important;
        bottom: 80px !important;
    }
    
    .chat-trigger-fallback {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}
