/* 
   Modern Portfolio Styles
   Author: Saya Mubiana (Redesign)
   Description: Premium dark-themed portfolio with vibrant accents and glassmorphism
*/

:root {
    /* Colors */
    --bg-color: #0f172a; /* Slate 900 */
    --bg-alt: #1e293b; /* Slate 800 */
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    
    --accent-color: #d946ef; /* Fuchsia 500 */
    --accent-hover: #c026d3; /* Fuchsia 600 */
    --accent-glow: rgba(217, 70, 239, 0.4);
    
    --secondary-accent: #6366f1; /* Indigo 500 */
    --gradient-main: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    
    /* Layout & Effects */
    --card-bg: rgba(30, 41, 59, 0.7); /* Translucent Slate 800 */
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-filled {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow); 
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    transition: var(--transition);
}

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

.nav-link.btn-primary {
    padding: 10px 24px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
}

.nav-link.btn-primary::after {
    display: none;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('saya.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), var(--bg-color));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 strong {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero .subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero .strike {
    text-decoration: line-through;
    opacity: 0.6;
    text-decoration-thickness: 2px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Section Header */
.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header .line {
    width: 80px;
    height: 6px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 50px;
}

.section-desc {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.about-text .lead {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1.8rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05); /* Very subtle track */
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 100px;
    width: 0; /* Animated via JS */
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Shine effect on progress bar */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    to { transform: translateX(100%); }
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(217, 70, 239, 0.2);
}

.project-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--accent-color);
    position: relative;
}

.project-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card:hover h3 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: auto;
}

.link-arrow i {
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--accent-color);
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* Hackathons & Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4));
    display: flex;
    align-items: flex-end; /* Text at bottom */
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding-bottom: 2rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .text {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    width: 100%;
    padding: 0 1rem;
}

.gallery-item:hover .text {
    transform: translateY(0);
}

.gallery-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Quote Section */
.quote-section {
    background: var(--gradient-main);
    color: white;
    padding: 120px 0;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)); /* darken slightly */
}

blockquote {
    font-size: 2rem;
    font-style: italic;
    font-family: var(--font-heading);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
    position: relative;
}

blockquote::before {
    content: '\201C';
    font-size: 5rem;
    position: absolute;
    top: -40px;
    left: -40px;
    opacity: 0.3;
}

/* Contact */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.15);
}

.full-width {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
}

/* Footer */
#footer {
    background: #0b1120;
    padding: 5rem 0 3rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.social-icon:hover {
    background: var(--gradient-main);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px -5px rgba(217, 70, 239, 0.4);
    border-color: transparent;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-alt);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-icon {
    font-size: 5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

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

/* Animations classes */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {opacity: 1; transform: translateY(0);}
}

.delay-1 {animation-delay: 0.1s;}
.delay-2 {animation-delay: 0.2s;}
.delay-3 {animation-delay: 0.3s;}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1000;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    blockquote {
        font-size: 1.4rem;
    }
}
