:root {
    --primary: #2563eb;
    --accent: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode {
    --primary: #97d9ff; 
    --light: #0b0f1a;
    --dark: #f8fafc;
    --glass: rgba(15, 23, 42, 0.9);
}

body.dark-mode .card, 
body.dark-mode .skill, 
body.dark-mode .work-card,
body.dark-mode .contact-container,
body.dark-mode .social-bar a,
body.dark-mode .testimonial-card,
body.dark-mode .tech-badge {
    background: #161e2d;
    border-color: #2d3748;
    color: #f8fafc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-mode .nav-link { color: white !important; }
body.dark-mode p, body.dark-mode .contact-subtext { color: #94a3b8; }
body.dark-mode header.scrolled { background: #0f172a; }
body.dark-mode .header-center { background: rgba(255,255,255,0.05); }
body.dark-mode .placeholder-img { background: #1e293b !important; }
body.dark-mode .form-group input, body.dark-mode .form-group textarea {
    background: #0f172a; border-color: #334155; color: white;
}

body.dark-mode .footer-logo, 
body.dark-mode .footer-links h4,
body.dark-mode header .footer-logo { 
    color: var(--primary) !important; 
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: var(--dark); overflow-x: hidden; line-height: 1.6; transition: background 0.3s ease; }
html { scroll-behavior: smooth; }

.theme-toggle {
    background: transparent; border: 2px solid var(--primary);
    color: var(--primary); width: 35px; height: 35px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: var(--transition);
}
.theme-toggle:hover { background: var(--primary); color: white; }

.cursor { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; position: fixed; pointer-events: none; z-index: 10000; transition: transform 0.1s ease; }
.cursor-follower { width: 30px; height: 30px; border: 2px solid var(--primary); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transition: transform 0.15s ease; }

header {
    position: fixed; top: 20px; left: 2%; right: 2%;
    background: var(--glass); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 2rem; border-radius: 100px; z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: var(--transition);
}
header.scrolled { top: 0; left: 0; right: 0; border-radius: 0; background: white; padding: 0.8rem 5%; }
.nav-link { text-decoration:none; color:var(--dark); font-size:0.9rem; font-weight:600; transition: 0.3s; }

.header-center { display: flex; align-items: center; gap: 30px; background: rgba(0,0,0,0.03); padding: 8px 25px; border-radius: 50px; }
.stat-item { text-align: center; }
.stat-value { font-weight: 800; color: var(--primary); font-size: 0.9rem; display: block; }
.stat-label { font-size: 0.6rem; text-transform: uppercase; color: #64748b; letter-spacing: 1px; }

#clock-container { display: flex; align-items: center; gap: 8px; border-left: 1px solid #ddd; padding-left: 20px; }
.live-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 1.5s infinite; }
#clock { color: var(--accent); font-family: 'Courier New', monospace; font-weight: bold; font-size: 0.85rem; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

section { padding: 100px 10%; min-height: auto; }

/* NEW BANNER DESIGN ADDITIONS */
#home { position: relative; overflow: hidden; padding-top: 150px; }
.banner-shape { position: absolute; filter: blur(80px); border-radius: 50%; z-index: 1; opacity: 0.12; pointer-events: none; }
.shape-1 { width: 300px; height: 300px; background: var(--primary); top: 10%; left: 10%; animation: moveOrb 15s infinite alternate; }
.shape-2 { width: 250px; height: 250px; background: var(--accent); bottom: 20%; right: 15%; animation: moveOrb 20s infinite alternate-reverse; }

@keyframes moveOrb { from { transform: translate(0, 0); } to { transform: translate(50px, 100px); } }

/* FLEXBOX FOR BANNER */
.banner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    gap: 40px;
}
.banner-text-content { flex: 1; text-align: left; }
.banner-image-area { flex: 1; display: flex; justify-content: center; align-items: center; }
.image-placeholder {
    width: 100%;
    max-width: 450px;
    height: 500px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tech-badge-container { display: flex; justify-content: left; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; position: relative; z-index: 3; }
.tech-badge { 
    background: var(--glass); border: 1px solid rgba(0,0,0,0.05); padding: 8px 18px; border-radius: 50px; 
    font-size: 0.85rem; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); animation: floatBadge 4s ease-in-out infinite; 
}
.tech-badge i { color: var(--primary); }
.tech-badge:nth-child(2) { animation-delay: 0.7s; }
.tech-badge:nth-child(3) { animation-delay: 1.4s; }
.tech-badge:nth-child(4) { animation-delay: 2.1s; }

@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.testimonial-slider { width: 100%; overflow: hidden; padding: 20px 0; }
.testimonial-track { display: flex; width: calc(400px * 6); animation: scrollTrack 25s linear infinite; }
.testimonial-card { 
    width: 350px; background: white; margin: 0 25px; padding: 40px; 
    border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); flex-shrink: 0; 
}
.testimonial-card p { font-style: italic; color: #64748b; margin-bottom: 20px; font-size: 1.1rem; }
.client-info strong { display: block; color: var(--primary); font-size: 1rem; }
.client-info span { font-size: 0.8rem; color: #94a3b8; }

@keyframes scrollTrack { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-400px * 3)); } }
.testimonial-slider:hover .testimonial-track { animation-play-state: paused; }

.ratings-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 3rem; margin-top: 0; }
.rating-item { text-align: center; flex: 1; min-width: 200px; }
.circle-stat {
  width: 180px; height: 180px; border-radius: 50%; border: 4px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 3rem; font-weight: 800; color: var(--primary);
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2); animation: pulse 2s infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.05); } }

.social-bar { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 12px; }
.social-bar a {
    width: 40px; height: 40px; background: white; color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-decoration: none; transition: var(--transition);
}
.social-bar a:hover { background: var(--primary); color: white; transform: scale(1.1) translateX(5px); }

.progress-wrap {
    position: fixed; right: 30px; bottom: 30px; height: 60px; width: 60px;
    cursor: pointer; border-radius: 50px; z-index: 100;
    opacity: 0; visibility: hidden; transition: 0.3s;
    background: white; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.progress-wrap.active-progress { opacity: 1; visibility: visible; }
.progress-wrap svg path { fill: none; stroke: var(--primary); stroke-width: 4; }
.progress-wrap .percent-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.7rem; font-weight: bold; color: var(--primary); }

.btn-main {
    background: var(--primary); color: white; padding: 12px 28px;
    border: none; border-radius: 50px; font-weight: 600;
    text-decoration: none; display: inline-block; transition: var(--transition);
    border: 2px solid transparent;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); background: transparent; color: var(--primary); border-color: var(--primary); }

.hire-me { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 99; background: var(--accent); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

.contact-container {
    max-width: 900px; margin: 0px auto; background: white; 
    padding: 50px; border-radius: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; color: #64748b; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 20px; border-radius: 12px; border: 1px solid #e2e8f0;
    background: #f8fafc; font-family: inherit; transition: 0.3s;
}

footer { background: var(--dark); color: white; padding: 80px 10% 20px; border-radius: 50px 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 20px; display: block; }
.footer-links a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; transition: 0.3s; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: white; padding: 30px; border-radius: 20px; border: 1px solid #f1f5f9; transition: var(--transition); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 2rem; margin-top: 3rem; }
.skill { padding: 3rem; border-radius: 20px; background: white; box-shadow: 0 20px 40px rgba(0,0,0,0.06); text-align: center; font-size: 1.3rem; font-weight: 700;}
#mainHeader a img{ width: 180px; height: 200px;}

/* RESPONSIVE OVERHAUL */
@media (max-width: 1024px) {
    header { padding: 0.6rem 1.5rem; width: 96%; left: 2%; }
    .header-center { display: none; }
    .contact-container { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
    section { padding: 80px 8% 60px; }
    h1 { font-size: 3.2rem !important; }
    
    /* Responsive Banner Fix */
    .banner-flex { flex-direction: column; text-align: center; gap: 20px; }
    .banner-text-content { text-align: center; }
    .tech-badge-container { justify-content: center; }
    .banner-image-area { display: none;}

}

@media (max-width: 768px) {
    * { cursor: auto !important; }
    .cursor, .cursor-follower { display: none; }
    header { top: 10px; padding: 0.5rem 1rem; border-radius: 50px; }
    #mainHeader a img { width: 120px; height: auto; }
    section { padding: 60px 20px; } 
    #home { padding-top: 140px; }
    #home h1 { font-size: 2.5rem !important; }
    .ratings-grid { flex-direction: column; align-items: center; gap: 1.5rem; }
    .circle-stat { width: 150px; height: 150px; font-size: 2.2rem; }
    .skills-grid { grid-template-columns: 1fr; gap: 1rem; }
    .skill { padding: 2rem; }
    .testimonial-card { width: 280px; margin: 0 10px; }
    .social-bar { display: none; }
    .hire-me { width: 85%; bottom: 15px; }
    footer { padding: 50px 20px 100px; }
    .banner-image-area { display: none;}

}

@media (max-width: 480px) {
    header .btn-main { display: none; }
    #home h1 { font-size: 2rem !important; }
    .tech-badge { font-size: 0.75rem; padding: 6px 12px; }
    .circle-stat { width: 140px; height: 140px; font-size: 2rem; }
    .banner-image-area { display: none;}
}