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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Selection Styles */
::selection {
    background-color: #4f46e5;
    color: #ffffff;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar Styles */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
}

nav > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav > div > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #818cf8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.nav-desktop {
    display: none;
}

.nav-desktop > div {
    margin-left: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.nav-desktop a {
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-desktop a:hover {
    background-color: #374151;
    color: #ffffff;
}

.nav-mobile-button {
    display: block;
}

.nav-mobile-button button {
    color: #9ca3af;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-mobile-button button:hover {
    color: #ffffff;
}

.nav-mobile-button i {
    width: 1.5rem;
    height: 1.5rem;
}

#mobile-menu {
    /* Remove border-top */
}

#mobile-menu > div {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#mobile-menu a {
    display: block;
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

#mobile-menu a:hover {
    background-color: #374151;
    color: #ffffff;
}

/* Main Content */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section - Completely clean */
#hero {
    padding: 0;
    text-align: center;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    border: none;
    box-shadow: none;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 1rem;
}

#hero h1 span {
    color: #818cf8;
    transition: opacity 0.5s;
}

#hero p {
    font-size: 1.25rem;
    color: #9ca3af;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

#hero > div {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#hero a {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s;
}

#hero a:first-child {
    background-color: #4f46e5;
    color: #ffffff;
}

#hero a:first-child:hover {
    background-color: #6366f1;
    transform: scale(1.05);
}

#hero a:last-child {
    border: 1px solid #4f46e5;
    color: #818cf8;
    background-color: transparent;
}

#hero a:last-child:hover {
    background-color: #4f46e5;
    color: #ffffff;
    transform: scale(1.05);
}

/* Sections - Remove all borders from hero */
section {
    padding: 4rem 0;
}

section#hero {
    border: none !important;
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Add border only to sections after hero */
section:not(#hero) {
    border-top: 1px solid #1f2937;
}

.section-heading {
    font-size: 1.875rem;
    border-bottom: 2px solid #6366f1;
    display: inline-block;
    padding-bottom: 0.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* About Section */
#about > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

#about > div > div:last-child {
    display: none;
    text-align: center;
}

@media (min-width: 768px) {
    #about > div {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    #about > div > div:last-child {
        display: block !important;
        text-align: center;
    }
}

#about p {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

#about > div > div:last-child i {
    width: 120px;
    height: 120px;
    color: #818cf8;
    margin: 0 auto;
    display: block;
}

#about .text-indigo-400 {
    color: #818cf8;
}

/* About Section - Force icon size with multiple selectors */
#about > div > div:last-child i {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    color: #818cf8 !important;
    margin: 0 auto !important;
    display: block !important;
    opacity: 0.8 !important;
}

/* Additional targeting for Lucide icons */
#about i[data-lucide] {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
}

/* SVG targeting if Lucide renders as SVG */
#about svg {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
}

/* Skills Section */
#skills h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-card {
    background-color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(99, 102, 241, 0.2);
}

.skill-card i {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.5rem;
    display: block;
}

.skill-card .text-indigo-400 {
    color: #818cf8;
}

.skill-card .text-green-400 {
    color: #4ade80;
}

.skill-card .text-yellow-400 {
    color: #facc15;
}


.skill-card p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.project-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.project-card:hover {
    background-color: #1e2430;
    border-color: #6366f1;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #818cf8;
    margin-bottom: 0.5rem;
}

.project-card > p:first-of-type {
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.project-card > p:nth-of-type(2) {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.project-card > div {
    display: flex;
    gap: 1rem;
}

.project-card a {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #818cf8;
    text-decoration: none;
    transition: color 0.3s;
}

.project-card a:hover {
    color: #a5b4fc;
}

.project-card a i {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Experience Section */
#experience > div {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 1rem;
    top: 1rem;
    bottom: 0;
    width: 0.125rem;
    background-color: #374151;
}

.experience-item {
    position: relative;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.timeline-marker {
    position: absolute;
    left: 0.375rem;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    background-color: #4f46e5;
    border-radius: 9999px;
    z-index: 10;
    border: 4px solid #111827;
}

.experience-content {
    margin-left: 2.5rem;
    padding: 1.5rem;
    background-color: #1f2937;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #374151;
}

.experience-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.25rem;
}

.experience-content > p {
    color: #818cf8;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.experience-content ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    color: #d1d5db;
}

.experience-content li {
    margin-bottom: 0.25rem;
}

/* Contact Section */
#contact > p {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

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

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

.contact-info > p {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    color: #e5e7eb;
}

.contact-info i {
    width: 1.5rem;
    height: 1.5rem;
    color: #818cf8;
    margin-right: 0.75rem;
}


.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
}

.social-icons a {
    color: #9ca3af;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffffff;
}

.social-icons i,
.social-icons svg {
    width: 2rem;
    height: 2rem;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #1f2937;
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #374151;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
    font-family: inherit;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #9ca3af;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #6366f1;
    border-color: #6366f1;
}

#contact-form button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #6366f1;
}

#form-status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

#form-status.bg-green-900 {
    background-color: #14532d;
}

#form-status.text-green-300 {
    color: #86efac;
}

#form-status.bg-red-900 {
    background-color: #7f1d1d;
}

#form-status.text-red-300 {
    color: #fca5a5;
}

/* Footer */
footer {
    background-color: #111827;
    border-top: 1px solid #1f2937;
    margin-top: 3rem;
    padding: 2rem 0;
}

footer > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    color: #6b7280;
}

/* Utility Classes */
.hidden {
    display: none;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* Color Utility Classes */
.text-indigo-400 {
    color: #818cf8;
}

.text-green-400 {
    color: #4ade80;
}

.text-yellow-400 {
    color: #facc15;
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-white {
    color: #ffffff;
}

/* Responsive Design - Tablet and Up */
@media (min-width: 640px) {
    nav > div {
        padding: 0 1.5rem;
    }

    main {
        padding: 0 1.5rem;
    }

    #hero {
        min-height: 100vh;
        padding: 0;
    }

    #hero h1 {
        font-size: 3.75rem;
    }

    #hero p {
        font-size: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #mobile-menu > div {
        padding: 0.5rem 0.75rem;
    }

    #contact > p {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Responsive Design - Desktop and Up */
@media (min-width: 768px) {
    nav > div {
        padding: 0 2rem;
    }

    main {
        padding: 0 2rem;
    }

    .nav-desktop {
        display: block;
    }

    .nav-mobile-button {
        display: none;
    }

    #hero {
        min-height: 100vh;
        padding: 0;
    }

    #hero h1 {
        font-size: 4.5rem;
    }

    #about > div {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    #about > div > div:first-child {
        grid-column: span 1;
    }

    #about > div > div:last-child {
        display: block;
        grid-column: span 1;
        text-align: center;
    }

    #about > div > div:last-child i {
        width: 320px !important;
        height: 320px !important;
        color: #818cf8 !important;
        margin: 0 auto !important;
        display: block !important;
        opacity: 0.8;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .experience-item {
        display: flex;
    }

    .experience-item:nth-child(odd) {
        justify-content: flex-start;
    }

    .experience-item:nth-child(even) {
        justify-content: flex-end;
    }

    .timeline-marker {
        left: 50%;
        transform: translateX(-50%);
    }

    .experience-content {
        margin-left: 0;
        width: 41.666667%;
        padding: 2rem;
        text-align: left;
    }
}

/* Responsive Design - Large Desktop */
@media (min-width: 1024px) {
    nav > div,
    main,
    footer > div {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #hero {
        min-height: 100vh;
        padding: 0;
    }

    #hero h1 {
        font-size: 4.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Force About Icon Size */
@media (min-width: 768px) {
    section#about div div:last-child i[data-lucide="laptop-2"] {
        width: 450px !important;
        height: 450px !important;
        min-width: 450px !important;
        min-height: 450px !important;
        color: #818cf8 !important;
        opacity: 0.8 !important;
    }
}

/* Extra large screens */
@media (min-width: 1024px) {
    section#about div div:last-child i[data-lucide="laptop-2"] {
        width: 500px !important;
        height: 500px !important;
        min-width: 500px !important;
        min-height: 500px !important;
    }
}
