/*
 * Depras Ardian Portfolio - Custom Styles
 * Dark Theme with Handwritten Typography & Geometric Blue Elements
 */

/* ===========================
   GLOBAL STYLES
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===========================
   GEOMETRIC BLUE BLOCKS
   =========================== */

.geometric-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.block {
    position: absolute;
    background: linear-gradient(135deg, #3D5AFE, #2E3F8F);
    border-radius: 4px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

/* Hero Section Blocks */
.block-1 {
    width: 150px;
    height: 80px;
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
    animation: float 6s ease-in-out infinite;
}

.block-2 {
    width: 200px;
    height: 100px;
    top: 20%;
    right: 15%;
    transform: rotate(10deg);
    animation: float 8s ease-in-out infinite;
}

.block-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 10%;
    transform: rotate(-8deg);
    animation: float 7s ease-in-out infinite;
}

.block-4 {
    width: 180px;
    height: 90px;
    bottom: 30%;
    right: 20%;
    transform: rotate(12deg);
    animation: float 9s ease-in-out infinite;
}

.block-5 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 25%;
    transform: rotate(-20deg);
    opacity: 0.5;
    animation: float 5s ease-in-out infinite;
}

.block-6 {
    width: 140px;
    height: 70px;
    top: 35%;
    right: 8%;
    transform: rotate(18deg);
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}

.block-7 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    left: 15%;
    transform: rotate(-12deg);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.block-8 {
    width: 160px;
    height: 80px;
    bottom: 10%;
    right: 10%;
    transform: rotate(8deg);
    animation: float 7s ease-in-out infinite;
}

/* Portfolio Section Blocks */
.geometric-blocks-portfolio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.block-p1 {
    width: 180px;
    height: 100px;
    top: 15%;
    left: 8%;
    transform: rotate(-10deg);
    animation: float 8s ease-in-out infinite;
}

.block-p2 {
    width: 140px;
    height: 140px;
    top: 60%;
    right: 5%;
    transform: rotate(15deg);
    opacity: 0.6;
    animation: float 9s ease-in-out infinite;
}

.block-p3 {
    width: 120px;
    height: 80px;
    bottom: 10%;
    left: 12%;
    transform: rotate(-18deg);
    opacity: 0.7;
    animation: float 7s ease-in-out infinite;
}

/* Contact Section Blocks */
.geometric-blocks-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.block-c1 {
    width: 150px;
    height: 90px;
    top: 20%;
    right: 10%;
    transform: rotate(12deg);
    animation: float 7s ease-in-out infinite;
}

.block-c2 {
    width: 130px;
    height: 130px;
    bottom: 25%;
    left: 8%;
    transform: rotate(-14deg);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.block-c3 {
    width: 100px;
    height: 70px;
    top: 50%;
    right: 15%;
    transform: rotate(20deg);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate, 0deg));
    }
}

.block:hover {
    transform: scale(1.1) rotate(0deg);
    opacity: 1;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

.design-life-text {
    transform: rotate(-8deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* ===========================
   PROFILE IMAGE
   =========================== */

.profile-image {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* ===========================
   BUTTONS & CTA
   =========================== */

.cta-button {
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.4);
}

.cta-button:hover {
    box-shadow: 0 6px 20px rgba(61, 90, 254, 0.6);
}

/* ===========================
   SOFTWARE BADGES
   =========================== */

.software-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ps-badge {
    background: linear-gradient(135deg, #001E36, #31A8FF);
    color: #31A8FF;
    border: 2px solid #31A8FF;
}

.ai-badge {
    background: linear-gradient(135deg, #300000, #FF9A00);
    color: #FF9A00;
    border: 2px solid #FF9A00;
}

.id-badge {
    background: linear-gradient(135deg, #300000, #FF3366);
    color: #FF3366;
    border: 2px solid #FF3366;
}

.lr-badge {
    background: linear-gradient(135deg, #001E36, #31C5F0);
    color: #31C5F0;
    border: 2px solid #31C5F0;
}

.software-badge-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-card {
    background: rgba(37, 42, 61, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(61, 90, 254, 0.2);
    transition: all 0.3s ease;
}

.software-card:hover {
    background: rgba(37, 42, 61, 0.8);
    border-color: rgba(61, 90, 254, 0.5);
    transform: translateX(10px);
}

/* ===========================
   PORTFOLIO
   =========================== */

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(37, 42, 61, 0.8);
    color: #B0B5C0;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.filter-btn:hover {
    background: rgba(61, 90, 254, 0.2);
    color: #fff;
    border-color: #3D5AFE;
}

.filter-btn.active {
    background: #3D5AFE;
    color: #fff;
    border-color: #3D5AFE;
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.4);
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #252A3D;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 29, 41, 0.95), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item.hidden {
    display: none;
    opacity: 0;
}

/* ===========================
   SKILLS
   =========================== */

.skill-bar-container {
    margin-bottom: 1.5rem;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: rgba(37, 42, 61, 0.8);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3D5AFE, #5C6BC0);
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===========================
   CONTACT FORM
   =========================== */

.contact-input {
    width: 100%;
    padding: 1rem;
    background: rgba(37, 42, 61, 0.5);
    border: 2px solid rgba(61, 90, 254, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #3D5AFE;
    background: rgba(37, 42, 61, 0.8);
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.1);
}

.contact-input::placeholder {
    color: #8F94A3;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(37, 42, 61, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(61, 90, 254, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(37, 42, 61, 0.5);
    border-color: rgba(61, 90, 254, 0.3);
    transform: translateX(5px);
}

/* ===========================
   LIGHTBOX
   =========================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #3D5AFE;
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.25rem;
    text-align: center;
    background: rgba(26, 29, 41, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(-8deg) scale(1);
    }
}

/* Reveal Animations */
.reveal-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.reveal-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.reveal-up {
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}

.reveal-rotate {
    opacity: 0;
    animation: rotateIn 1s ease forwards;
}

/* Stagger animations */
.reveal-left:nth-child(2) { animation-delay: 0.1s; }
.reveal-right:nth-child(2) { animation-delay: 0.1s; }
.reveal-up:nth-child(2) { animation-delay: 0.1s; }
.reveal-up:nth-child(3) { animation-delay: 0.2s; }
.reveal-up:nth-child(4) { animation-delay: 0.3s; }
.reveal-up:nth-child(5) { animation-delay: 0.4s; }
.reveal-up:nth-child(6) { animation-delay: 0.5s; }

/* ===========================
   NAVBAR SCROLL EFFECT
   =========================== */

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets */
@media (max-width: 1024px) {
    .block {
        opacity: 0.5;
    }

    .design-life-text {
        transform: rotate(-5deg);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .block {
        opacity: 0.3;
        width: 80px !important;
        height: 60px !important;
    }

    .design-life-text {
        transform: rotate(-3deg);
    }

    .software-badge {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .software-badge-large {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .portfolio-card {
        aspect-ratio: 3/4;
    }
}

/* ===========================
   SCROLLBAR
   =========================== */

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3D5AFE, #2E3F8F);
    border-radius: 6px;
    border: 2px solid #1A1D29;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5C6BC0, #3D5AFE);
}

/* ===========================
   ACCESSIBILITY
   =========================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3D5AFE;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
