/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gray: #2a2a2a;
    --color-orange: #ff6b35;
    --color-orange-hover: #ff8c42;
    --color-orange-light: #ffa366;
    --color-white: #ffffff;
    --color-text-light: #e0e0e0;
    --color-text-gray: #a0a0a0;

    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(255, 107, 53, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-orange);
    text-decoration: none;
    transition: transform var(--transition-speed);
    display: flex;
    align-items: center;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

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

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

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

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

/* Language Switcher */
.language-switcher {
    background-color: transparent;
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-speed);
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    z-index: 1001;
}

.language-switcher:hover {
    background-color: var(--color-orange);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.language-switcher:active {
    transform: translateY(0);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-orange);
    transition: all var(--transition-speed);
    border-radius: 3px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.hero-image {
    margin-bottom: 30px;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-orange);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 100%);
    font-size: 60px;
    font-weight: 700;
    color: var(--color-white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-white);
    line-height: 1.2;
}

.highlight {
    color: var(--color-orange);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--color-text-gray);
    transition: all var(--transition-speed);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-gray);
}

/* Increase icon size inside social links */
.social-links a svg {
    width: 40px !important;
    height: 40px !important;
}

.social-links a:hover {
    color: var(--color-orange);
    background-color: rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--color-orange);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--color-orange);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin-bottom: 60px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 100px 20px;
    background-color: var(--color-dark);
}

.about-content {
    margin-top: 60px;
}

.about-text {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.about-text strong {
    color: var(--color-orange);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background-color: var(--color-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.skill-card:hover {
    border-color: var(--color-orange);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 100px 20px;
    background-color: var(--color-black);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 30px;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-view:hover {
    background-color: var(--color-orange-hover);
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.project-info p {
    color: var(--color-text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(255, 107, 53, 0.2);
    color: var(--color-orange);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
    padding: 100px 20px;
    background-color: var(--color-dark);
}

.timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-orange);
    border: 3px solid var(--color-black);
    box-shadow: 0 0 0 4px var(--color-dark);
}

.timeline-content {
    background-color: var(--color-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-orange);
    transition: all var(--transition-speed);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.timeline-date {
    color: var(--color-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content ul {
    margin-left: 20px;
    color: var(--color-text-light);
}

.timeline-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 50%, var(--color-black) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.contact-info-card {
    background-color: var(--color-gray);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.contact-info-card:hover {
    border-color: var(--color-orange);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.contact-info-card a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.contact-info-card a:hover {
    color: var(--color-orange-hover);
}

.contact-info-card p {
    color: var(--color-text-gray);
}

.contact-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--color-gray);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.social-btn:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-black);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer p {
    color: var(--color-text-gray);
    margin-bottom: 5px;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: var(--color-dark);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    color: var(--color-text-gray);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: var(--color-orange);
}

#modalBody h2 {
    color: var(--color-orange);
    margin-bottom: 20px;
}

#modalBody p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

#modalBody .modal-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin: 20px 0;
    border-radius: var(--border-radius);
}

#modalBody .modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

#modalBody .modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

#modalBody .modal-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--color-orange);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
}

#modalBody .modal-link:hover {
    background-color: var(--color-orange-hover);
}

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-gray) 0%,
        var(--color-dark) 50%,
        var(--color-gray) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-gray);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: skeleton-spin 1s linear infinite;
}

@keyframes skeleton-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.skeleton-loader.hidden {
    display: none;
}

.project-image img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.project-image img.loaded {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        padding: 30px 0;
        transition: left var(--transition-speed);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        text-align: center;
        padding: 15px 0;
    }

    .language-switcher {
        margin-left: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 1px;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10% auto;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .image-placeholder {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .social-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s forwards;
}

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