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

:root {
    --bg-color: #e2e8f0;
    --text-color: #1e293b;
    --primary-blue: #2563eb;
    --secondary-text: #475569;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

[data-theme="dark"] {
    --bg-color: #020617;
    --text-color: #f8fafc;
    --primary-blue: #3b82f6;
    --secondary-text: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

body, nav, .contact-modal, .about-content, .btn, section, .mesh-bg, .timeline-content, .cert-message, .skills-tags span, #loader {
    transition: background-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    overflow-x: hidden;
    background-color: transparent;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s ease, background-color 0.6s ease;
}

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

.loader-content {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    animation: fadeInUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.loader {
    height: 4px;
    width: 130px;
    --c:no-repeat linear-gradient(#6100ee 0 0);
    background: var(--c),var(--c),#d7b8fc;
    background-size: 60% 100%;
    animation: l16 3s infinite;
    margin: 0 auto;
}

@keyframes l16 {
    0%   {background-position:-150% 0,-150% 0}
    66%  {background-position: 250% 0,-150% 0}
    100% {background-position: 250% 0, 250% 0}
}

.mesh-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-color);
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
}

.blob-1 {
    top: -10%; 
    left: -10%; 
    width: 50vw; 
    height: 50vw; 
    background: #6b21a8;
}

.blob-2 {
    top: 40%; 
    right: -10%; 
    width: 45vw; 
    height: 45vw; 
    background: #0f766e;
}

.blob-3 {
    bottom: -20%; 
    left: 10%; 
    width: 55vw; 
    height: 55vw; 
    background: #1d4ed8;
}

[data-theme="dark"] .mesh-blob {
    opacity: 0.6;
}

@media (pointer: fine) {
    body, a, button, .theme-toggle {
        cursor: none !important;
    }
    
    .cursor-dot, .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--primary-blue);
        transition: background-color 0.3s ease;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary-blue);
        transition: width 0.3s ease-out, height 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease;
    }

    .cursor-hover .cursor-outline {
        width: 60px;
        height: 60px;
        background-color: rgba(37, 99, 235, 0.15);
        border-color: rgba(37, 99, 235, 0.6);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

body.loaded .fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 20px;
    margin: 20px auto;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    border-radius: 50px;
    animation-delay: 0.1s;
}

nav:hover {
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.2);
    transform: translateY(-2px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.nav-left:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 25px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--primary-blue);
    transform: scale(1.15);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
    width: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.2);
    color: var(--primary-blue);
}

.theme-toggle.rotating i {
    animation: spinTheme 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes spinTheme {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.4); }
    100% { transform: rotate(360deg) scale(1); }
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s ease;
}

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

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    padding: 40px 5% 80px;
    min-height: 80vh;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-title {
    width: 100%;
    text-align: center;
    font-size: 5.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: -80px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    animation-delay: 0.3s;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.description {
    color: var(--secondary-text);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.1);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    text-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--secondary-text);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 300px;
}

.hero-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hero-img:hover {
    transform: scale(1.05) rotate(2deg) translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
}

.hero-img:active {
    transform: scale(0.95) rotate(-3deg);
}

.about-section {
    padding: 100px 5%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-section h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.about-content {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    width: 100%;
    padding: 45px;
    border-radius: 25px;
    margin: 0 auto;
}

.about-content:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.about-img {
    width: 300px;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-content:hover .about-img {
    transform: scale(1.05) rotate(2deg) translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
}

.about-left {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.about-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.about-text-block {
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 15px;
}

.about-text-block:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.about-text-block h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.about-text-block h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 50%;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.about-text-block:hover h3::after {
    width: 100%;
}

.about-text-block p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.7;
}

.personal-details-header {
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
    transition: transform 0.3s ease;
}

.personal-details-header:hover {
    transform: translateX(10px);
        }

.personal-details-header h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.personal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.detail-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-text);
    letter-spacing: 1px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.experience-section {
    padding: 100px 5%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.experience-section h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    perspective: 1000px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -48px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: 3px solid var(--bg-color);
    z-index: 2;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
    background-color: #10b981;
}

.timeline-content {
    padding: 30px;
    border-radius: 20px;
    position: relative;
    transform-style: preserve-3d;
}

.timeline-content:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.timeline-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-tags span {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    letter-spacing: 0.5px;
    cursor: default;
}

.skills-tags span:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--primary-blue);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.certificates-section {
    padding: 100px 5%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificates-section h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.cert-message {
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-text);
}

.cert-message:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.2);
}

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

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

.contact-modal {
    padding: 45px;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.7) translateY(50px) rotateX(10deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

.contact-modal h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--text-color);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 35px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 16px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.contact-btn:hover::before {
    transform: translateX(100%);
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.02);
}

.contact-btn i {
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-btn:hover i {
    transform: scale(1.3) rotate(10deg);
}

.btn-ig { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.2);
}
.btn-ig:hover { box-shadow: 0 12px 30px rgba(220, 39, 67, 0.4); }

.btn-wa { 
    background: linear-gradient(45deg, #25D366, #128C7E); 
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}
.btn-wa:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }

.btn-wa-group { 
    background: linear-gradient(45deg, #1EBEA5, #009688); 
    box-shadow: 0 8px 20px rgba(0, 150, 136, 0.2);
}
.btn-wa-group:hover { box-shadow: 0 12px 30px rgba(0, 150, 136, 0.4); }

.btn-tg { 
    background: linear-gradient(45deg, #0088cc, #005580); 
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.2);
}
.btn-tg:hover { box-shadow: 0 12px 30px rgba(0, 136, 204, 0.4); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    nav { padding: 15px 25px; }
    .hero { padding: 40px 5%; text-align: center; }
    .welcome-title { font-size: 2.5rem; margin-bottom: 20px; margin-top: 0; }
    .stats { justify-content: center; }
    .subtitle { margin: 0 auto 20px auto; }
    .description { margin: 0 auto 30px auto; }
    .about-content { flex-direction: column; align-items: center; padding: 25px; }
    .about-left { width: 100%; margin-bottom: 20px; }
    .about-img { width: 100%; min-height: 280px; }
    .about-text-grid, .personal-details-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 20px; }
    .timeline-dot { left: -28px; }
    .timeline-content { padding: 20px; }
}
