/* --- Font Import Fixed --- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Righteous&display=swap');

/* --- Base & Variables --- */
:root {
    --bg-body: #171717;
    --bg-card: #262626;
    --bg-card-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-dark: #1f2937;
    --border-light: #374151;
    --accent: #ffffff;
    --shadow-glow: 0 0 15px rgba(255, 255, 255, 0.1); 
    
    /* Font Variables */
    --font-heading: 'Righteous', cursive;
    --font-body: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body); 
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Heading Typography */
h1, h2, h3, h4, .nav-brand span {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease; 
}

/* --- Layout --- */
.container {
    max-width: 1080px; 
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-dark);
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05); 
}

.nav-links {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover { 
    color: #ffffff; 
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-outline {
    border: 1px solid var(--border-light);
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-outline:hover { 
    background-color: var(--border-dark); 
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 0;
    border-top: none;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.typewriter-text {
    color: var(--text-secondary);
}

.cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover { 
    background-color: #e5e7eb; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite; 
}

/* --- Skills Section --- */
.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.skills-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 350px; 
    margin: 0 auto 3rem auto;
}

.skills-logo-grid img {
    width: 100%;
    height: auto;
    border-radius: 1rem; 
    transition: all 0.3s ease;
    cursor: pointer;
}

.skills-logo-grid img:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.skills-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.skills-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.skills-list {
    list-style: none;
    color: #d1d5db;
    font-size: 1rem;
}

.skills-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.skills-list li:hover {
    transform: translateX(5px); 
    color: #ffffff;
}

.skills-list i {
    color: var(--accent);
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

/* --- Projects Section --- */
.projects-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.projects-header p {
    color: var(--text-secondary);
    max-width: 38rem;
    margin: 0 auto;
    font-size: 0.95rem;
}

.carousel-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.nav-btn {
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--border-dark);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.projects-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-top: 1rem; 
    padding-bottom: 2rem; 
    scrollbar-width: none; 
}

.projects-track::-webkit-scrollbar {
    display: none; 
}

.project-card {
    flex: 0 0 100%; 
    scroll-snap-align: start;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; 
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.project-card i.fa-quote-left {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.project-card p.desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #4b5563;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.project-card:hover .project-icon {
    background-color: var(--accent);
    color: #000;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--bg-card);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover { 
    background-color: var(--accent); 
    color: #000;
}

.footer-bottom {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 2rem;
    padding-top: 2rem;
}

/* --- Media Queries for Desktop --- */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .hero { flex-direction: row; text-align: left; }
    .hero-content { width: 50%; text-align: left; margin-bottom: 0; }
    .hero p { margin-left: 0; }
    .hero h1 { font-size: 3.25rem; }
    .hero-image { width: 50%; justify-content: flex-end; }
    .hero-image img { max-height: 420px; }
    .skills-container { flex-direction: row; }
    .skills-logo-grid { width: 50%; max-width: none; margin-bottom: 0; padding-right: 2rem; }
    .skills-text { width: 50%; padding-left: 4rem; }
    .projects-header-wrapper { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; }
    .projects-header p { margin: 0; }
    .project-card { flex: 0 0 calc(33.333% - 1rem); }
    .footer-content { flex-direction: row; justify-content: space-between; }
}