/* CSS Variables for Color Palette */
:root {
    --primary: #6366f1;       /* Indigo-500 */
    --secondary: #f97316;     /* Orange-500 */
    --background: #0f172a;    /* Slate-900 */
    --card: #1e293b;          /* Slate-800 */
    --text-light: #f1f5f9;    /* Slate-100 */
    --text-muted: #94a3b8;    /* Slate-400 */
    --accent-bg: #111827;     /* Slate-900 slightly darker */
}

/* Base Styles and Typography */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
}

/* Layout Utility */
.container {
    max-width: 1280px; /* Equivalent to max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

/* Spacing */
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.9); /* background/90 */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 4rem; /* h-16 */
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.25rem; /* text-xl */
    font-weight: 800; /* font-extrabold */
    color: var(--primary);
    transition: color 300ms;
}

.logo:hover {
    color: var(--secondary);
}

.nav-links {
    display: none; /* Hidden by default */
    gap: 1rem; /* space-x-4 */
}

.nav-link {
    color: var(--text-muted);
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    border-radius: 0.375rem; /* rounded-md */
    transition: color 300ms, transform 300ms;
}

.nav-link:hover {
    color: var(--text-light);
    transform: scale(1.05);
}

.mobile-menu-button {
    display: block; /* Shown by default */
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-muted);
    transition: color 150ms;
}

.mobile-menu-button:hover {
    color: var(--text-light);
}

.mobile-menu {
    display: none;
    background-color: var(--card);
    border-top: 1px solid rgb(71, 85, 105); /* border-slate-700 */
    padding: 0.5rem 0; /* py-2 */
}

.mobile-menu a {
    display: block;
    color: var(--text-light);
    padding: 0.5rem 1rem; /* px-4 py-2 */
    margin: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 300ms;
}

.mobile-menu a:hover {
    background-color: rgba(99, 102, 241, 0.2); /* primary/20 */
}


/* Hero Section */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    /* Max width to prevent text from spanning huge monitors */
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    text-align: center;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name-heading {
    font-size: 3rem; /* text-4xl */
    font-weight: 900; /* font-black */
    line-height: 1.25;
    color: var(--text-light);
}

.name-highlight {
    color: var(--secondary);
    display: block;
    font-size: 4rem; /* sm:text-5xl for mobile is fine, will adjust for desktop */
}

.tagline {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 300; /* font-light */
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.description-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem; /* space-x-4 */
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem; /* px-8 py-3 */
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 9999px; /* rounded-full */
    text-decoration: none;
    transition: background-color 300ms, transform 300ms, box-shadow 300ms;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2), 0 4px 6px -2px rgba(249, 115, 22, 0.1);
}

.btn-primary:hover {
    background-color: #ea580c; /* Orange-600 */
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: rgba(99, 102, 241, 0.2); /* primary/20 */
    transform: scale(1.05);
}

/* Separator */
.separator {
    border-top: 1px solid rgb(51, 65, 85); /* border-slate-700 */
}

/* Section Headings */
.section-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
}

/* Cards (About, Skill, Project) */
.card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(71, 85, 105, 0.5); /* border-slate-700/50 */
    transition: transform 500ms, box-shadow 500ms;
}

.about-card {
    max-width: 56rem; /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
}

/* Skills/Capabilities Section Grid */
.skills-grid {
    display: grid;
    gap: 2rem; /* gap-8 */
}

.skill-card:hover {
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.3); /* hover:shadow-primary/30 */
}

.skill-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
    color: var(--text-light);
}

.skill-icon {
    color: var(--primary);
    font-size: 1.25rem; /* text-xl */
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 2rem; /* gap-8 */
}

.project-card {
    overflow: hidden;
    background-color: var(--card);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: transform 500ms, box-shadow 500ms;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.project-card:hover {
    transform: translateY(-4px); /* hover:-translate-y-1 */
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.3); /* hover:shadow-secondary/50 */
}

.project-image {
    width: 100%;
    height: 10rem; /* h-40 */
    object-fit: cover;
    border-bottom: 1px solid rgb(51, 65, 85);
}

.project-info {
    padding: 1.5rem; /* p-6 */
}

.project-info h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.875rem; /* text-sm */
}

.project-tech {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.project-links a {
    text-decoration: none;
    transition: color 300ms;
}

.project-links a:first-child {
    color: var(--primary);
    font-weight: 600;
}

.project-links a:first-child:hover {
    color: var(--secondary);
}

.project-links a:last-child {
    color: var(--text-muted);
}

.project-links a:last-child:hover {
    color: var(--text-light);
}


/* Contact Section */
.contact-form-container {
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    background-color: var(--card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem; /* px-4 py-3 */
    background-color: var(--background);
    border: 1px solid rgb(51, 65, 85); /* border-slate-700 */
    border-radius: 0.5rem; /* rounded-lg */
    color: var(--text-light);
    transition: border-color 300ms, box-shadow 300ms;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary);
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background-color 300ms, transform 300ms;
}

.contact-form button[type="submit"]:hover {
    background-color: #ea580c; /* Orange-600 */
    transform: scale(1.01);
}

/* Footer */
.footer {
    background-color: var(--card);
    border-top: 1px solid rgb(51, 65, 85);
    padding: 2rem 0;
    text-align: center;
}

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

.social-links a {
    color: var(--text-muted);
    transition: color 300ms;
}

.social-links a:hover {
    color: var(--text-light);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}


/* --- Responsive Design (Media Queries) --- */
@media (min-width: 640px) { /* sm breakpoint */
    .container {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem; /* sm:px-6 */
    }
    .name-highlight {
        font-size: 4.5rem; /* sm:text-7xl */
    }
}

@media (min-width: 768px) { /* md breakpoint */
    .container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem; /* lg:px-8 */
    }
    
    /* Navigation */
    .nav-links {
        display: flex;
    }
    .mobile-menu-button {
        display: none;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .name-highlight {
        font-size: 5rem; /* lg:text-8xl */
    }
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
