/* Root Variables */
:root {
    --gold: #d4af37;
    --gold-light: #f4e4bc;
    --bronze: #cd7f32;
    --cyan: #00f5ff;
    --purple: #bf00ff;
    --dark: #0a0a0f;
    --dark-light: #12121a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background: #0a0a0f !important;
    background-color: #0a0a0f !important;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0f !important;
    background-color: #0a0a0f !important;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--cyan)); border-radius: 4px; }

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
    width: 80px; height: 80px;
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.loader-progress {
    width: 200px; height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}
.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
    animation: loading 2s ease-in-out;
}
@keyframes loading { from { width: 0; } to { width: 100%; } }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 25px; height: 2px; background: var(--gold); transition: 0.3s; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: #0a0a0f;
    background-color: #0a0a0f;
}
#particles-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { text-align: center; z-index: 1; position: relative; }
.profile-frame {
    width: 180px; height: 180px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold), var(--cyan), var(--purple), var(--gold));
    background-size: 300% 300%;
    animation: gradientRotate 4s ease infinite;
}
@keyframes gradientRotate { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.profile-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 3px solid var(--dark);
    overflow: hidden;
    position: relative;
}
.profile-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ornament {
    position: absolute;
    width: 220px; height: 220px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}
.ornament::before, .ornament::after {
    content: '✦';
    position: absolute;
    color: var(--gold);
    font-size: 1rem;
    text-shadow: 0 0 10px var(--cyan);
}
.ornament::before { top: -8px; left: 50%; transform: translateX(-50%); }
.ornament::after { bottom: -8px; left: 50%; transform: translateX(-50%); }
@keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.typing-text { font-size: 1.2rem; color: var(--cyan); margin-bottom: 1.5rem; min-height: 1.8rem; }
.cursor { animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Social Links */
.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.social-link {
    width: 45px; height: 45px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.social-link svg { width: 20px; height: 20px; fill: currentColor; transition: all 0.3s; }
.social-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    transition: all 0.3s;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.social-link:hover { color: #fff; border-color: transparent; }
.social-link:hover::before { width: 100%; height: 100%; }
.social-link.instagram:hover::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.gmail:hover::before { background: #ea4335; }
.social-link.linkedin:hover::before { background: #0077b5; }
.social-link.tiktok:hover::before { background: linear-gradient(45deg, #00f2ea, #ff0050); }

/* Download Buttons */
.download-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.download-btn {
    padding: 0.7rem 1.3rem;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 30px;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    transition: left 0.4s;
    z-index: -1;
}
.download-btn:hover { color: var(--dark); border-color: var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
.download-btn:hover::before { left: 0; }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
.scroll-indicator span {
    display: block;
    width: 20px; height: 30px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    position: relative;
}
.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    width: 4px; height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scroll { 0% { opacity: 1; top: 5px; } 100% { opacity: 0; top: 15px; } }

/* Section Styles */
section { padding: 4rem 5%; position: relative; background-color: #0a0a0f; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title::before, .section-title::after { content: '◆'; color: var(--gold); margin: 0 1rem; font-size: 0.8rem; vertical-align: middle; }
.section-title span { background: linear-gradient(135deg, var(--gold), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* About Section */
.about { background: linear-gradient(180deg, #0a0a0f, #12121a); background-color: #0a0a0f; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto; }
.about-text p { font-size: 1.05rem; line-height: 1.8; color: rgba(255, 255, 255, 0.8); margin-bottom: 1.2rem; }
.highlight { color: var(--cyan); font-weight: 600; }
.skills-container h3 { font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 1.2rem; font-size: 1.3rem; }
.skills-list { list-style: none; }
.skill-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
}
.skill-item:hover {
    border-color: var(--cyan);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}
.skill-icon { font-size: 1.5rem; }
.skill-name { color: var(--gold-light); font-size: 1.05rem; font-weight: 500; }

/* Experience Section */
.experience { background: #0a0a0f; background-color: #0a0a0f; }
.experience-timeline { max-width: 850px; margin: 0 auto; position: relative; }
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 25px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--cyan), var(--purple));
}
.experience-item { position: relative; padding-left: 70px; padding-bottom: 2.5rem; }
.experience-item:last-child { padding-bottom: 0; }
.experience-dot {
    position: absolute;
    left: 15px; top: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--gold);
    z-index: 1;
    transition: all 0.3s;
}
.experience-item:hover .experience-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.experience-date {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.experience-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.4s;
}
.experience-card:hover { border-color: var(--cyan); box-shadow: 0 8px 25px rgba(0, 245, 255, 0.1); transform: translateX(8px); }
.experience-card h3 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.25rem; margin-bottom: 0.4rem; }
.experience-card h4 { color: var(--cyan); font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.experience-location { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.experience-description { list-style: none; margin-bottom: 0.8rem; }
.experience-description li { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.4rem; padding-left: 1.2rem; position: relative; }
.experience-description li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan); }
.experience-achievement {
    background: rgba(0, 245, 255, 0.1);
    border-left: 3px solid var(--cyan);
    padding: 0.6rem 0.8rem;
    border-radius: 0 6px 6px 0;
    color: var(--gold-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Portfolio Section */
.portfolio { background: #12121a; background-color: #12121a; }
.portfolio-grid { display: flex; justify-content: center; max-width: 1100px; margin: 0 auto; }
.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 380px;
}
a.portfolio-card { cursor: pointer; }
.portfolio-card:hover { transform: translateY(-8px); border-color: var(--cyan); box-shadow: 0 15px 35px rgba(0, 245, 255, 0.2); }
.card-image {
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.card-content { padding: 1.2rem; }
.card-content h3 { font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 0.4rem; font-size: 1.2rem; }
.card-content p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin-bottom: 0.8rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { padding: 0.2rem 0.6rem; background: rgba(0, 245, 255, 0.1); border: 1px solid rgba(0, 245, 255, 0.3); border-radius: 15px; font-size: 0.75rem; color: var(--cyan); }
.card-link-hint {
    padding: 0.8rem 1.2rem;
    background: rgba(0, 245, 255, 0.1);
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-card:hover .card-link-hint { opacity: 1; }

/* Certifications Section */
.certifications { background: linear-gradient(180deg, #12121a, #0a0a0f); background-color: #12121a; }
.cert-container { max-width: 550px; margin: 0 auto; }
.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s;
}
.cert-card:hover { border-color: var(--cyan); box-shadow: 0 8px 25px rgba(0, 245, 255, 0.1); }
.cert-icon { font-size: 3.5rem; margin-bottom: 0.8rem; }
.cert-card h3 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.3rem; margin-bottom: 0.4rem; }
.cert-card h4 { color: var(--cyan); font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.cert-card p { color: rgba(255, 255, 255, 0.6); margin-bottom: 1.2rem; font-size: 0.9rem; }
.cert-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    border: none;
    border-radius: 25px;
    color: var(--dark);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.cert-download-btn:hover { box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); transform: translateY(-2px); }

/* Contact Section */
.contact { background: #0a0a0f; background-color: #0a0a0f; }
.contact-container { max-width: 550px; margin: 0 auto; }
.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}
.form-group { margin-bottom: 1.2rem; position: relative; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 12px rgba(0, 245, 255, 0.2); }
.form-group label {
    position: absolute;
    left: 0.9rem; top: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    pointer-events: none;
}
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem; left: 0.5rem;
    font-size: 0.75rem;
    color: var(--cyan);
    background: var(--dark);
    padding: 0 0.4rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    transition: left 0.4s;
}
.submit-btn span { position: relative; z-index: 1; }
.submit-btn:hover { color: #fff; box-shadow: 0 0 25px rgba(0, 245, 255, 0.5); }
.submit-btn:hover::before { left: 0; }

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-box {
    background: var(--dark-light);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s;
}
.popup-overlay.show .popup-box { transform: scale(1); }
.popup-icon { font-size: 4rem; margin-bottom: 1rem; }
.popup-box h3 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.5rem; margin-bottom: 0.5rem; }
.popup-box p { color: rgba(255, 255, 255, 0.7); }

/* Footer */
footer { padding: 1.5rem 5%; text-align: center; border-top: 1px solid rgba(212, 175, 55, 0.2); background: #0a0a0f; background-color: #0a0a0f; }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.footer-social .social-link { width: 40px; height: 40px; }
.footer-social .social-link svg { width: 18px; height: 18px; }
footer p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(25px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10, 10, 15, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .typing-text { font-size: 1rem; }
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .section-title { font-size: 1.6rem; }
    .contact-form { padding: 1.5rem; }
    .experience-timeline::before { left: 12px; }
    .experience-item { padding-left: 45px; }
    .experience-dot { left: 3px; width: 16px; height: 16px; }
    .download-buttons { flex-direction: column; align-items: center; }
    .download-btn { width: 100%; max-width: 260px; justify-content: center; }
}
