/* --- CSS VARIABLES --- */
:root {
    --bg-main: #06040d;
    --bg-card: rgba(20, 15, 35, 0.6);
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.5);
    --secondary: #d8b4fe;
    --text-main: #ffffff;
    --text-muted: #a19bb0;
    --border-color: rgba(168, 85, 247, 0.25);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: #6b21a8;
    bottom: 20%;
    right: -50px;
    animation-delay: -3s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

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

/* Glass Card Global */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px var(--primary-glow);
    transform: translateY(-5px);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Buttons */
button {
    font-family: var(--font-body);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.8rem 1.8rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.primary-btn:hover {
    background: var(--secondary);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary);
    padding: 0.8rem 1.8rem;
}

.secondary-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: 800;
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-line {
    width: 60%;
    height: 3px;
    background: var(--primary);
    margin-top: 5px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background: rgba(6, 4, 13, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title .subtitle {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: none;
    text-shadow: 0 0 15px var(--primary-glow);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    width: 320px;
    height: 450px;
    border-radius: 24px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid #23193e;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

.square-border {
    position: absolute;
    width: 350px;
    height: 480px;
    background: transparent;
    border: 2px dashed var(--primary);
    border-radius: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 0 30px var(--primary-glow);
    animation: pulseBorder 4s ease-in-out infinite;
}

@keyframes pulseBorder {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

/* --- ABOUT SECTION --- */
.about {
    padding: 5rem 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-hex {
    flex: 0 0 250px;
    height: 250px;
    position: relative;
}

.hex-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: #0f0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-panda-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-card {
    flex: 1;
    padding: 2.5rem;
}

.about-text-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-text-card p:last-child {
    margin-bottom: 0;
}

.accent-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- SKILLS SECTION --- */
.skills {
    padding: 5rem 2rem;
}

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

.skill-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(168, 85, 247, 0.1);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: var(--primary);
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- EXPERIENCE SECTION --- */
.experience {
    padding: 5rem 2rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timeline-logo-circle {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px rgba(168, 85, 247, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0a1a;
    position: relative;
    z-index: 2;
}

.timeline-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.timeline-dot {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 0 5px rgba(168, 85, 247, 0.2);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.badge {
    background: rgba(168, 85, 247, 0.15);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.timeline-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.timeline-content p {
    color: var(--text-muted);
}

/* --- SERVICES SECTION --- */
.services {
    padding: 5rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-5px);
}

.service-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 5rem 2rem 8rem;
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
}

.contact-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-action {
    flex: 1.5;
    min-width: 300px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bg-icon {
    position: absolute;
    font-size: 12rem;
    color: rgba(168, 85, 247, 0.03);
    right: -20px;
    bottom: -20px;
    transform: rotate(-15deg);
}

.contact-action h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-action p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.contact-action button {
    position: relative;
    z-index: 2;
}

/* --- FOOTER --- */
footer {
    background: rgba(6, 4, 13, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 4, 13, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .navbar .nav-btn {
        display: none;
    }
}

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

    .hero-title .subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        width: 250px;
        height: 350px;
    }

    .square-border {
        width: 280px;
        height: 380px;
    }

    .navbar {
        padding: 1.2rem 2rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-logo-circle {
        width: 80px;
        height: 80px;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-buttons {
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

/* --- CONTACT MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 4, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: #0f0a1a;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
    opacity: 0;
    height: 0;
    transition: all 0.2s ease;
}

.form-group.error .error-msg {
    opacity: 1;
    height: auto;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.submit-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    margin-top: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-notification {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0a1a;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.success-notification.active {
    opacity: 1;
    visibility: visible;
}

.success-notification i {
    font-size: 4rem;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.success-notification span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}