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

html {
    scroll-behavior: smooth;
}

/* Dark Theme Base */
body {
    background: #101014;
    color: #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: #23233a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #fff;
}

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

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e5e7eb;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #18181f 0%, #23233a 100%);
    color: #e5e7eb;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #18181f;
}

.btn-primary:hover {
    background: #f59e0b;
    color: #18181f;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.profile-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fbbf24;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: #23233a;
    display: block;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 80px 0;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fbbf24;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #18181f;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #23233a;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #e5e7eb;
    font-weight: 500;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #18181f 0%, #23233a 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 100%;
    background: transparent;
}

.skill-category {
    background: linear-gradient(145deg, #18181f 0%, #23233a 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #23233a;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    box-sizing: border-box;
    color: #fbbf24;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.skill-category h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    flex: 1;
    align-content: start;
    width: 100%;
    box-sizing: border-box;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #23233a;
    backdrop-filter: blur(10px);
    margin-bottom: 0.3rem;
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    color: #e5e7eb;
}

.skill-item:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: #fbbf24;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.skill-item i {
    font-size: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 16px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
    color: #fbbf24;
}

.skill-item span {
    font-weight: 500;
    color: #e5e7eb;
    font-size: 0.8rem;
    line-height: 1.3;
    letter-spacing: 0.1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
    min-width: 0;
}

/* Projects Section */
.projects {
    background: #18181f;
}

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

.project-card {
    background: #23233a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #e5e7eb;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #23233a 0%, #fbbf24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: #fbbf24;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fbbf24;
}

.project-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: #18181f;
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #fff;
}

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

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.contact-item i {
    color: #fbbf24;
    font-size: 1.25rem;
    width: 20px;
}

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

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

.social-link:hover {
    background: #fbbf24;
    color: #23233a;
    transform: translateY(-3px);
}

.contact-form {
    background: #23233a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #23233a;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #18181f;
    color: #e5e7eb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
}

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

/* Footer */
.footer {
    background: #101014;
    color: #fbbf24;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .profile-placeholder {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }

    .profile-photo {
        width: 220px;
        height: 220px;
        border: 4px solid #fbbf24;
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0.10), 0 8px 32px rgba(0, 0, 0, 0.5);
        background: linear-gradient(135deg, #23233a 60%, #fbbf24 100%);
        margin-bottom: 1.5rem;
    }

    .hero {
        background: linear-gradient(135deg, #23233a 0%, #fbbf24 100%);
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .skill-items {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .skill-category {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding: 0.4rem 0;
    }

    .skill-item {
        padding: 0.3rem 0.5rem;
        min-height: 35px;
    }

    .skill-item span {
        font-size: 0.75rem;
    }

    .skill-item i {
        font-size: 0.9rem;
        min-width: 14px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}

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

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

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

    .profile-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
        border: 3px solid #fbbf24;
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
        margin-bottom: 1.2rem;
    }

    .hero {
        background: linear-gradient(135deg, #23233a 0%, #fbbf24 80%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Scroll to Top Button */
.scroll-to-top {
    background: #23233a;
    color: #fbbf24;
}

.scroll-to-top:hover {
    background: #fbbf24;
    color: #23233a;
}

/* Notification */
.notification {
    background: #23233a !important;
    color: #fbbf24 !important;
    border: 1px solid #fbbf24;
}

.notification-success {
    background: #fbbf24 !important;
    color: #fff !important;
}

.notification-error {
    background: #ef4444 !important;
    color: #fff !important;
}