/* Basic Reset & Font Setup */
/* Styles & colors inspired by Tailwind CSS library */
:root {
    --color-gray-900: #111827;
    --color-gray-800: #1F2937;
    --color-gray-700: #374151;
    --color-gray-500: #6B7280;
    --color-gray-400: #9CA3AF;
    --color-gray-200: #E5E7EB;
    --color-cyan-300: #93C5FD;
    --color-cyan-400: #60A5FA;
    --color-cyan-500: #3B82F6;
    --color-cyan-600: #2563EB;
    --color-white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--color-gray-900);
    color: var(--color-gray-200);
    margin: 0;
    line-height: 1.6;
}

/* Generic Styles */
.text-link {
    color: var(--color-cyan-400);
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.3s;
}
.text-link:hover {
    text-decoration: underline;
}
a {
    color: inherit;
    text-decoration: none;
}
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    scroll-margin-top: 64px;
}
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.header-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-white);
    transition: color 0.3s;
}
.header-logo:hover {
    color: var(--color-cyan-400);
}
.main-nav {
    display: none; /* Hidden on mobile */
}
.main-nav a {
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--color-cyan-400);
}
.mobile-menu-button {
    display: block; /* Shown on mobile */
    background: none;
    border: none;
    color: var(--color-gray-200);
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    background-color: var(--color-gray-800);
}
.mobile-menu.hidden {
    display: none;
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-align: center;
}
.mobile-menu a:hover {
    background-color: var(--color-gray-700);
}


/* Main Content */
main {
    padding-top: 6rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-text {
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin: 0;
}
.hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-cyan-400);
    margin-top: 0.5rem;
}
.hero p {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--color-gray-400);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}
.btn-primary {
    background-color: var(--color-cyan-500);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-cyan-600);
    transform: scale(1.05);
}
.btn-secondary {
    border: 2px solid var(--color-cyan-500);
    color: var(--color-cyan-500);
}
.btn-secondary:hover {
    background-color: var(--color-cyan-500);
    color: var(--color-white);
}
.hero-socials {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.hero-socials a {
    color: var(--color-gray-400);
    font-size: 1.5rem;
    transition: color 0.3s;
}
.hero-socials a:hover {
    color: var(--color-cyan-400);
}
.hero-image {
    margin-top: 2.5rem;
}
.hero-image img {
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid var(--color-cyan-500);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.icon {
    width: 1.5rem;
    height: 1.5rem;
    /* This filter turns the black SVG white */
    filter: invert(1); 
}


/* About Section */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 3rem;
}
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
.about-text p {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin-bottom: 1rem;
}
.skills-card {
    background-color: var(--color-gray-800);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}
.skills-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 1rem;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--color-cyan-300);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Experience Section */
.timeline {
    position: relative;
}
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background-color: var(--color-gray-700);
    height: 100%;
    display: none;
}
.timeline-item {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.timeline-content {
    width: 100%;
    box-sizing: border-box;
}
.timeline-info {
     text-align: center;
     margin-bottom: 1rem;
}
 .timeline-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-cyan-400);
    margin: 0;
}
.timeline-info p {
    color: var(--color-gray-400);
    margin: 0.25rem 0;
}
.timeline-dot {
    z-index: 10;
    background-color: var(--color-gray-800);
    border: 2px solid var(--color-cyan-500);
    border-radius: 9999px;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}
.timeline-dot-inner {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--color-cyan-500);
    border-radius: 9999px;
}
.timeline-card {
    background-color: var(--color-gray-800);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}
.timeline-card ul {
    list-style-position: inside;
    color: var(--color-gray-400);
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.project-card {
    background-color: var(--color-gray-800);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.project-card:hover {
    transform: translateY(-0.5rem);
}
.project-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}
.project-card-content {
    padding: 1.5rem;
}
.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.project-card p {
    color: var(--color-gray-400);
    margin-bottom: 1rem;
}
.project-card-links a {
    color: var(--color-cyan-400);
    margin-right: 1rem;
}
 .project-card-links a:hover {
     text-decoration: underline;
 }

/* Contact Section */
.contact {
    text-align: center;
}
.contact p {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin-top: 1rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.contact .btn {
    margin-top: 2rem;
    padding: 1rem 2rem;
}

/* Footer */
.footer {
    background-color: var(--color-gray-800);
    border-top: 1px solid var(--color-gray-700);
}
.footer .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    color: var(--color-gray-400);
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-socials a {
    color: var(--color-gray-400);
    font-size: 1.5rem;
    transition: color 0.3s;
}
.footer-socials a:hover {
    color: var(--color-cyan-400);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .main-nav { display: flex; gap: 0.5rem; }
    .mobile-menu-button { display: none; }
    .mobile-menu { display: none !important; }
    main { padding-top: 5rem; }
    .container {
        max-width: 768px;
    }
    .hero {
        flex-direction: row;
        text-align: left;
    }
    .hero-text {
        width: 60%;
    }
    .hero p {
        margin-left: 0;
        margin-right: 0;
    }
     .hero-buttons, .hero-socials {
        justify-content: center;
    }
    .hero-image {
        width: 40%;
        margin-top: 0;
        display: flex;
        justify-content: center;
    }
    .hero-image img {
        width: 20rem;
        height: 20rem;
    }
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
    .about-text { width: 66.66%; }
    .timeline-line { display: block; }
    .timeline-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
    }
    .timeline-content {
        width: calc(50% - 2rem);
    }
     .timeline-info {
        text-align: right;
    }
     .timeline-item:nth-child(even) .timeline-info {
         text-align: left;
     }
    .timeline-dot {
        margin: 0;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
     .container {
        max-width: 1024px;
    }
     .hero h1 {
        font-size: 4rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
