@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a1a;
    color: #e5e5e5;
    line-height: 1.6;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2a2a2a;
    border-top: 3px solid #e5e5e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #9a9a9a;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.loaded .loader {
    opacity: 0;
    visibility: hidden;
}

.loaded {
    overflow-y: auto;
    animation: fadeIn 0.5s ease-in;
}

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

.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    max-width: 1200px;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e5e5;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e5e5e5;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e5e5e5;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 50%;
    background: #e5e5e5;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #e5e5e5;
}

.nav-links a:hover::before {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: #1a1a1a;
    padding: 8rem 0 6rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: heroFadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

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

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 2.5rem;
    background-image: url('image/sigma.jpg');
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #e5e5e5, #9a9a9a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);
}

.avatar:hover::after {
    opacity: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.tagline {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: #a3a3a3;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

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

.cta-button {
    padding: 0.875rem 2rem;
    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.cta-button.secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #e5e5e5;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: #ffffff;
    position: relative;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e5e5e5, transparent);
    border-radius: 10px;
}

.section p {
    font-size: 1.0625rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #a3a3a3;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

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

.detail-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.detail-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.detail-card p {
    font-size: 0.9375rem;
    color: #a3a3a3;
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.01em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.75rem 0;
    color: #a3a3a3;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li:hover {
    color: #e5e5e5;
    padding-left: 0.5rem;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

#contactForm {
    margin-top: 2.5rem;
    text-align: left;
}

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

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

input,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #e5e5e5;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
    letter-spacing: -0.01em;
}

input::placeholder,
textarea::placeholder {
    color: rgba(229, 229, 229, 0.3);
}

input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

textarea {
    resize: none;
    min-height: 120px;
    line-height: 1.6;
}

.status-message {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: slideIn 0.4s ease;
    letter-spacing: -0.01em;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.stories-slider {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    overflow: visible;
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: none;
}

.story-item {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    padding: 1.5rem;
    align-items: center;
    backdrop-filter: blur(10px);
}

.story-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.story-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.story-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    background: rgba(26, 26, 26, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.story-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.story-image:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.story-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
}

.story-content h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #e5e5e5, transparent);
    border-radius: 10px;
}

.story-content p {
    font-size: 0.9375rem;
    color: #a3a3a3;
    line-height: 1.7;
    margin: 0;
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
}

.stories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: #9a9a9a;
}

.stories-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2a2a2a;
    border-top: 3px solid #e5e5e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-image {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: imageZoom 0.4s ease;
}

@keyframes imageZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-fullscreen {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
}

.footer {
    padding: 3rem 0;
    text-align: center;
    background: #151515;
    color: #737373;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.footer .container {
    max-width: 600px;
}

.footer p {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 3rem; }
    .section h2 { font-size: 2rem; }
    .fullscreen-image { width: 85vw; height: 85vh; }
    .story-item { grid-template-columns: 380px 1fr; gap: 1.5rem; }
    .story-image { height: 240px; }
}

@media (max-width: 768px) {
    .hamburger { 
        display: block; 
        position: absolute; 
        right: 2rem; 
        top: 50%; 
        transform: translateY(-50%); 
    }
    
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(26, 26, 26, 0.98); 
        flex-direction: column; 
        padding: 2rem; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); 
        border-radius: 0 0 8px 8px; 
        backdrop-filter: blur(20px); 
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links ul { 
        flex-direction: column; 
        align-items: center; 
        gap: 1.5rem; 
    }
    
    .nav-links a { 
        font-size: 1rem; 
        padding: 0.5rem 0; 
    }
    
    .hero { padding: 6rem 0 4rem; }
    .hero h1 { font-size: 2.5rem; }
    .tagline { font-size: 1rem; }
    .avatar { width: 140px; height: 140px; }
    .hero-buttons { flex-direction: column; gap: 0.75rem; }
    .cta-button { padding: 0.875rem 1.75rem; font-size: 0.875rem; }
    .about-details, .skills-grid { grid-template-columns: 1fr; }
    .section { padding: 5rem 0; }
    .fullscreen-image { width: 80vw; height: 80vh; }
    
    .story-item {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .story-image {
        height: 220px;
    }
    
    .story-content h3 {
        font-size: 1.25rem;
    }
    
    .story-content p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .navbar { padding: 1rem 0; }
    .logo { font-size: 1.25rem; }
    .hamburger { right: 1.5rem; }
    .avatar { width: 120px; height: 120px; }
    .hero h1 { font-size: 2rem; }
    .tagline { font-size: 0.9375rem; }
    .section h2 { font-size: 1.75rem; }
    .fullscreen-image { width: 75vw; height: 75vh; }
    .detail-card, .skill-category { padding: 1.5rem; }
    
    .stories-slider {
        margin: 2rem auto;
    }
    
    .story-item {
        gap: 1rem;
        padding: 1rem;
    }
    
    .story-image {
        height: 180px;
    }
    
    .story-content {
        padding: 0.5rem;
    }
    
    .story-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .story-content p {
        font-size: 0.8125rem;
    }
}

[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
