/* ========================================
   MODERN PROFESSIONAL PORTFOLIO - STYLE.CSS
   Theme: Modern Enterprise Tech Portfolio
   Colors: Dark Premium (#0F172A, #3B82F6)
   Fonts: Inter + Poppins
   ======================================== */

/* =========================
   GLOBAL RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0F172A;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-secondary {
    color: #CBD5E1 !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    margin-top: 12px;
    border-radius: 4px;
}

.section-subtitle {
    color: #94A3B8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.btn-outline-primary {
    border: 2px solid #3B82F6;
    color: #3B82F6;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-3px);
}

/* =========================
   NAVBAR MODERN
========================= */
.custom-navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-name {
    color: #FFFFFF;
}

.brand-sub {
    color: #3B82F6;
}

.nav-link {
    color: #CBD5E1 !important;
    margin: 0 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3B82F6 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active-link::after {
    width: 80%;
}

.active-link {
    color: #3B82F6 !important;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 30% 20%, #1E293B, #0F172A);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%233B82F6' fill-opacity='0.05'%3E%3Cpath d='M10 10 L20 10 L15 20 Z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: #CBD5E1;
    margin-bottom: 30px;
}

.hero-img {
    width: 100%;
    max-width: 380px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.hero-img:hover {
    transform: scale(1.02);
    border-color: #3B82F6;
}

/* =========================
   SECTION PADDING
========================= */
.section-padding {
    padding: 100px 0;
    position: relative;
}

/* =========================
   ABOUT SECTION
========================= */
.about-img {
    width: 100%;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
    border-color: #3B82F6;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}

.info-box i {
    font-size: 2.5rem;
    color: #3B82F6;
    margin-bottom: 15px;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* =========================
   SKILLS SECTION
========================= */
.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 20px;
    border-radius: 24px;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.skill-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #3B82F6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tags span {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Progress Bar Style */
.progress-wrapper {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease;
}

/* =========================
   PROJECT SECTION
========================= */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #3B82F6;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-body {
    padding: 24px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-description {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-stack span {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.project-actions .btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* =========================
   EXPERIENCE TIMELINE
========================= */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #3B82F6, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #3B82F6;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: #3B82F6;
}

.timeline-date {
    color: #3B82F6;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-company {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* =========================
   CERTIFICATION SECTION
========================= */
.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.cert-icon {
    font-size: 3rem;
    color: #3B82F6;
    margin-bottom: 15px;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-organizer {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.cert-date {
    color: #3B82F6;
    font-size: 0.8rem;
}

/* =========================
   STATISTICS SECTION
========================= */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #3B82F6;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3B82F6;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* =========================
   TESTIMONIALS SECTION
========================= */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #3B82F6;
}

.testimonial-text {
    font-style: italic;
    color: #CBD5E1;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-role {
    color: #94A3B8;
    font-size: 0.8rem;
}

/* =========================
   CONTACT SECTION
========================= */
.contact-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3B82F6;
}

.contact-detail h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #94A3B8;
}

.contact-detail p {
    margin-bottom: 0;
    font-weight: 500;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    color: #FFFFFF;
}

.form-control::placeholder {
    color: #64748B;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #0B1120;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
}

.footer h4, .footer h5 {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3B82F6;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3B82F6;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748B;
    position: relative;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #3B82F6;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2563EB;
    transform: translateY(-3px);
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* =========================
   LOADING SCREEN
========================= */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0F172A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* =========================
   PARTICLES JS CONTAINER
========================= */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* =========================
   LIGHT MODE
========================= */
body.light-mode {
    background: #F8FAFC;
    color: #0F172A;
}

body.light-mode .custom-navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #E2E8F0;
}

body.light-mode .brand-name {
    color: #0F172A;
}

body.light-mode .nav-link {
    color: #475569 !important;
}

body.light-mode .hero-section {
    background: radial-gradient(circle at 30% 20%, #E2E8F0, #F8FAFC);
}

body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .info-box,
body.light-mode .cert-card,
body.light-mode .timeline-content,
body.light-mode .contact-box,
body.light-mode .stat-card,
body.light-mode .testimonial-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

body.light-mode .text-secondary {
    color: #475569 !important;
}

body.light-mode .form-control {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
}

body.light-mode .form-control::placeholder {
    color: #94A3B8;
}

body.light-mode .footer {
    background: #F1F5F9;
    border-top: 1px solid #E2E8F0;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* =========================
   RESPONSIVE (BASE)
========================= */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-img {
        margin-top: 40px;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .timeline {
        padding-left: 15px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .contact-box {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}