/* Global Styles */
:root {
    --bg-color: #020617; /* Deepest blue-black */
    --bg-alt: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #4DD091;
    --primary-hover: #3bb87d;
    --primary-glow: rgba(77, 208, 145, 0.3);
    --secondary-color: #1e293b;
    --accent-color: #6366f1; /* Indigo accent for depth */
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
    scroll-margin-top: 80px; /* Offset for fixed header */
}

.bg-alt {
    background-color: var(--bg-alt);
    position: relative;
}

.bg-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.section-title span {
    background: linear-gradient(to right, var(--primary-color), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
}

.projects-note {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #020617;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    margin-left: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(77, 208, 145, 0.4);
    border-radius: 8px;
    font-size: 0.85rem;
    background: transparent;
    color: var(--text-color) !important;
}

.nav-links a.btn:hover {
    background: rgba(77, 208, 145, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(77, 208, 145, 0.08);
    border: 1px solid rgba(77, 208, 145, 0.2);
    border-radius: 100px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    font-weight: 800; /* Refined weight for a more Swiss-style look */
    letter-spacing: -0.02em; /* Tighter for a premium feel */
    line-height: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.hero h2 span {
    background: linear-gradient(to right, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

.interests {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.interests h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.interests li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
}

.interests li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(77, 208, 145, 0.2);
    transform: translateY(-5px);
}

.skill-category h4 {
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem; /* Standardized label size */
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background-color: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Experience Section */
.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-date {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
    border-color: rgba(77, 208, 145, 0.3);
}

.project-img {
    height: 220px;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    filter: grayscale(20%);
    transition: var(--transition);
}

.project-card:hover .project-img {
    filter: grayscale(0%);
}

/* Individual Project Gradients & Images */
.project-glyco { 
    background: url('../assets/glycosense-new-logo.jpg');
    background-size: cover;
    background-position: center;
}
.project-sari { 
    background: url('../assets/sari-sari-logo.png');
    background-size: cover;
    background-position: center;
}
.project-secretary { 
    background: url('../assets/mysecretary-hero.png');
    background-size: cover;
    background-position: center;
}
.project-tuna { 
    background: url('../assets/tunaflow-icon.png');
    background-size: cover;
    background-position: center;
}
.project-techcare { 
    background: url('../assets/techcare-new-logo.png');
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 2rem;
}

.project-info h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    height: 4.5rem;
    overflow: hidden;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: rgba(77, 208, 145, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.project-links a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-links a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.private-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

/* Contact Section */
.contact {
    text-align: center;
    width: 100%;
    min-height: 80vh; /* Ensures section can scroll to top of viewport */
    display: flex;
    align-items: center;
}

.contact .container {
    max-width: 700px;
    margin: 0 auto;
}

.contact p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .hero h2 { font-size: 1.75rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 4rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 2rem 0;
        margin-left: 0;
    }

    .section-title { font-size: 2.25rem; }
    
    .btn.secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }
}

