/* Catppuccin Latte Theme Colors */
:root {
    /* Base colors */
    --base: #eff1f5;
    --mantle: #e6e9ef;
    --crust: #dce0e8;
    
    /* Text colors */
    --text: #4c4f69;
    --subtext1: #5c5f77;
    --subtext0: #6c6f85;
    
    /* Surface colors */
    --surface0: #ccd0da;
    --surface1: #bcc0cc;
    --surface2: #acb0be;
    
    /* Accent colors */
    --rosewater: #dc8a78;
    --flamingo: #dd7878;
    --pink: #ea76cb;
    --mauve: #8839ef;
    --red: #d20f39;
    --maroon: #e64553;
    --peach: #fe640b;
    --yellow: #df8e1d;
    --green: #40a02b;
    --teal: #179299;
    --sky: #04a5e5;
    --sapphire: #209fb5;
    --blue: #1e66f5;
    --lavender: #7287fd;
    
    /* Shadows and overlays */
    --shadow: rgba(76, 79, 105, 0.1);
    --overlay: rgba(76, 79, 105, 0.05);
}

/* Dark Mode - Catppuccin Mocha */
.dark-mode {
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
    
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    
    --surface0: #313244;
    --surface1: #45475a;
    --surface2: #585b70;
    
    --rosewater: #f5e0dc;
    --flamingo: #f2cdcd;
    --pink: #f5c2e7;
    --mauve: #cba6f7;
    --red: #f38ba8;
    --maroon: #eba0ac;
    --peach: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --teal: #94e2d5;
    --sky: #89dceb;
    --sapphire: #74c7ec;
    --blue: #89b4fa;
    --lavender: #b4befe;
    
    --shadow: rgba(0, 0, 0, 0.3);
    --overlay: rgba(0, 0, 0, 0.1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(239, 241, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface0);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.dark-mode .navbar {
    background-color: rgba(30, 30, 46, 0.95);
}

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

.nav-logo h2 {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.5rem;
}

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

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

.nav-link:hover {
    color: var(--blue);
}

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

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

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

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.theme-toggle {
    margin-left: 1rem;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background-color: var(--surface0);
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--base) 0%, var(--mantle) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--lavender) 0%, transparent 50%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--mauve) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--subtext1);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--subtext0);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.btn-primary {
    background-color: var(--blue);
    color: var(--base);
}

.btn-primary:hover {
    background-color: var(--sapphire);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

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

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--base);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.projects-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--subtext0);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--mantle);
}

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

.about-card {
    background-color: var(--base);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--surface0);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--subtext0);
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--base);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--surface0);
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow);
    text-decoration: none;
    color: inherit;
}

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

.project-placeholder {
    font-size: 4rem;
    opacity: 0.6;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--subtext0);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--lavender);
    color: var(--base);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Team Section */
.team {
    background-color: var(--mantle);
    padding: 5rem 0;
}

.team-category {
    margin-bottom: 4rem;
}

.team-category h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.team-description {
    text-align: center;
    color: var(--subtext1);
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

.team-card {
    background-color: var(--base);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--surface0);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--lavender) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    color: var(--base);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--blue);
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.team-card p {
    color: var(--subtext0);
    line-height: 1.6;
}

.github-link {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: var(--lavender);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background-color: var(--surface0);
    border-radius: 8px;
    min-width: 50px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--subtext0);
    line-height: 1.6;
}

.contact-form {
    background-color: var(--base);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--surface0);
    text-align: center;
}

.contact-whatsapp h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.contact-whatsapp p {
    color: var(--subtext0);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.contact-whatsapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: var(--crust);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--subtext0);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--subtext0);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--surface0);
    padding-top: 1rem;
    text-align: center;
    color: var(--subtext0);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--base);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        border-top: 1px solid var(--surface0);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid,
    .projects-grid,
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card,
.project-card,
.team-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--base);
}

::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--subtext0);
}

/* Project Page Styles */
.project-hero {
    background: linear-gradient(135deg, var(--base) 0%, var(--mantle) 100%);
    padding: 8rem 0 4rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.project-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--mauve) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--subtext1);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-image-large {
    margin: 2rem 0;
    box-shadow: 0 10px 30px var(--shadow);
}

.project-details {
    padding: 4rem 0;
    background-color: var(--base);
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-overview h2 {
    color: var(--text);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-overview h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.project-overview p {
    color: var(--subtext0);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-overview ul {
    color: var(--subtext0);
    line-height: 1.8;
    margin-left: 1.5rem;
}

.project-overview ul li {
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background-color: var(--surface0);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-sidebar {
    background-color: var(--mantle);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.project-sidebar h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--surface0);
    padding-bottom: 0.5rem;
}

.project-status {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.status-in-progress {
    background-color: var(--yellow);
    color: var(--crust);
}

.status-completed {
    background-color: var(--green);
    color: var(--crust);
}

.status-planning {
    background-color: var(--blue);
    color: var(--base);
}

.project-status p {
    color: var(--subtext0);
    margin: 0.5rem 0;
}

.project-team {
    margin-bottom: 2rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: var(--base);
    border-radius: 8px;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info h4 {
    color: var(--text);
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
}

.member-info p {
    color: var(--subtext1);
    font-size: 0.85rem;
    margin: 0;
}

.project-links {
    margin-bottom: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: var(--text);
    text-decoration: none;
    background-color: var(--base);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.resource-link:hover {
    background-color: var(--surface0);
}

.resource-link span {
    font-size: 1.1rem;
}

/* Responsive Design for Project Pages */
@media screen and (max-width: 768px) {
    .project-title {
        font-size: 2.2rem;
    }
    
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-sidebar {
        position: static;
    }
    
    .project-hero {
        padding: 6rem 0 2rem;
    }
}