/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0c29;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #6c63ff;
    border-right-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Particles Canvas ===== */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.logo b {
    color: #6c63ff;
    font-weight: inherit;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c63ff;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #6c63ff;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.dark-mode-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.scrolled .dark-mode-toggle {
    background: #f0eeff;
    border-color: #e0ddff;
    color: #6c63ff;
}

.dark-mode-toggle:hover {
    background: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
    transform: rotate(20deg);
}

.nav-links a.active {
    color: #6c63ff;
}

.nav-links a.active::after {
    width: 100%;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding-top: 80px;
    padding-bottom: 40px;
    color: #fff;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.greeting {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 8px;
}

.highlight {
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 5px;
}

/* Typing Animation */
.typing-wrapper {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
    min-height: 30px;
    font-weight: 400;
}

.typing-text {
    color: #a78bfa;
    font-weight: 500;
}

.cursor {
    color: #a78bfa;
    animation: blink 0.8s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
    max-width: 550px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #a78bfa;
    color: #a78bfa;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #6c63ff;
    font-weight: 700;
    padding: 15px 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.15);
}

.social-links a:hover {
    background: #6c63ff;
    color: #fff;
    transform: translateY(-3px);
    border-color: #6c63ff;
}

.hero-image {
    display: flex;
    justify-content: center;
}

/* Profile Photo - Hero */
.profile-photo-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa, #6c63ff);
    background-size: 200% 200%;
    animation: gradientBorder 4s ease infinite;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3);
    position: relative;
}

.profile-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #a78bfa, #c4b5fd, #6c63ff);
    background-size: 300% 300%;
    animation: gradientBorder 4s ease infinite;
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.image-placeholder {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.3), rgba(167, 139, 250, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    border: 3px solid rgba(108, 99, 255, 0.4);
    backdrop-filter: blur(5px);
}

.image-placeholder i {
    font-size: 4.5rem;
    margin-bottom: 10px;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px 40px;
    margin-top: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: #a78bfa;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

/* ===== Section Common ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6c63ff, #a78bfa);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Profile Photo - About */
.about-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15);
    position: relative;
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid rgba(108, 99, 255, 0.2);
    pointer-events: none;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-wrapper:hover .about-photo {
    transform: scale(1.05);
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0eeff, #e8e4ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
}

.about-img-placeholder i {
    font-size: 5rem;
    color: #6c63ff;
    opacity: 0.5;
}

.about-text h3 {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 10px;
}

/* About animate */
.about-text, .about-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-text.animate, .about-image.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: #f8f9ff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid #f0f0f0;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.12);
    border-color: #e0ddff;
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f0eeff, #e8e4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.6rem;
    color: #6c63ff;
}

.service-card h3 {
    font-size: 1.15rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card > p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.service-card ul {
    padding-left: 0;
    margin-bottom: 10px;
}

.service-card ul li {
    color: #555;
    font-size: 0.88rem;
    padding: 3px 0;
    position: relative;
    padding-left: 18px;
}

.service-card ul li::before {
    content: '•';
    color: #6c63ff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-extra {
    color: #888 !important;
    font-size: 0.82rem !important;
    font-style: italic;
}

/* ===== Skills / Tech Stack ===== */
.skills {
    padding: 100px 0;
    background: #fff;
}

.stack-category {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stack-category:first-of-type {
    margin-top: 0;
}

.stack-category i {
    color: #6c63ff;
    font-size: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

.skill-card {
    background: #f8f9ff;
    padding: 24px 15px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid #f0f0f0;
}

.skill-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.12);
    background: #fff;
    border-color: #e0ddff;
}

.skill-card i {
    font-size: 2rem;
    color: #6c63ff;
    margin-bottom: 8px;
}

.skill-card h3 {
    font-size: 0.82rem;
    color: #444;
    font-weight: 600;
}

/* ===== Experience / Timeline ===== */
.experience {
    padding: 100px 0;
    background: #f8f9ff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6c63ff, #a78bfa);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6c63ff;
    border: 4px solid #f8f9ff;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h3 {
    font-size: 1.15rem;
    color: #222;
    font-weight: 600;
}

.timeline-date {
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.timeline-content ul {
    padding: 0;
}

.timeline-content ul li {
    color: #555;
    font-size: 0.92rem;
    padding: 5px 0;
    display: flex;
    align-items: start;
    gap: 10px;
}

.timeline-content ul li i {
    color: #6c63ff;
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ===== Projects / Portfolio ===== */
.projects {
    padding: 100px 0;
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid #f0f0f0;
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.12);
}

.project-img {
    height: 180px;
    background: linear-gradient(135deg, #302b63, #24243e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img i {
    font-size: 3.5rem;
    color: rgba(167, 139, 250, 0.8);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.15rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 4px 14px;
    background: #f0eeff;
    color: #6c63ff;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ===== Testimonials Slider ===== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0c29, #302b63);
    color: #fff;
}

.testimonials .section-title {
    color: #fff;
}

.testimonials .section-title::after {
    background: linear-gradient(90deg, #a78bfa, #6c63ff);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 1;
    transform: none;
}

.testimonial-card.animate {
    opacity: 1;
    transform: none;
}

.testimonial-quote {
    margin-bottom: 15px;
}

.testimonial-quote i {
    font-size: 2rem;
    color: #a78bfa;
}

.testimonial-card p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.author-avatar i {
    font-size: 2.5rem;
    color: #a78bfa;
}

.testimonial-author h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-author span {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #6c63ff;
    border-color: #6c63ff;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #a78bfa;
    transform: scale(1.3);
}

/* ===== Blog Section ===== */
.blog {
    padding: 100px 0;
    background: #f0f0ff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.12);
}

.blog-img {
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    padding: 40px;
    text-align: center;
}

.blog-img i {
    font-size: 3rem;
    color: #fff;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.blog-meta span {
    font-size: 0.8rem;
    color: #888;
}

.blog-meta i {
    margin-right: 4px;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-link {
    color: #6c63ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-link:hover {
    color: #a78bfa;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: #f8f9ff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-item span {
    color: #555;
    font-size: 0.95rem;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0eeff;
    color: #6c63ff;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.contact-social a:hover {
    background: #6c63ff;
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #fff;
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c63ff;
}

.contact-form textarea {
    resize: vertical;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ===== Footer ===== */
.footer {
    background: #111;
    color: #aaa;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    border-radius: 4px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #888;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #a78bfa;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        color: #fff;
    }

    .navbar.scrolled .menu-btn {
        color: #333;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.05rem;
        color: #333;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-name {
        font-size: 1.4rem;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links {
        justify-content: center;
    }

    .image-placeholder {
        width: 230px;
        height: 230px;
    }

    .profile-photo-wrapper {
        width: 230px;
        height: 230px;
    }

    .image-placeholder i {
        font-size: 3rem;
    }

    .about-img-wrapper {
        height: 280px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-placeholder {
        height: 280px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 1.3rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Dark Mode ===== */
body.dark-mode {
    background: #111;
    color: #e0e0e0;
}

body.dark-mode .navbar.scrolled {
    background: rgba(17, 17, 17, 0.97);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .navbar.scrolled .logo,
body.dark-mode .navbar.scrolled .nav-links a {
    color: #ccc;
}

body.dark-mode .navbar.scrolled .menu-btn {
    color: #ccc;
}

body.dark-mode .navbar.scrolled .dark-mode-toggle {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    color: #a78bfa;
}

body.dark-mode .about,
body.dark-mode .projects,
body.dark-mode .skills {
    background: #111;
}

body.dark-mode .services,
body.dark-mode .experience,
body.dark-mode .contact {
    background: #1a1a2e;
}

body.dark-mode .section-title {
    color: #f0f0f0;
}

body.dark-mode .section-subtitle {
    color: #999;
}

body.dark-mode .about-text h3,
body.dark-mode .contact-info h3 {
    color: #f0f0f0;
}

body.dark-mode .about-text p,
body.dark-mode .contact-info > p {
    color: #aaa;
}

body.dark-mode .about-img-placeholder {
    background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(167,139,250,0.15));
    border-color: #333;
}

body.dark-mode .service-card,
body.dark-mode .timeline-content {
    background: #1e1e30;
    border-color: #2a2a40;
}

body.dark-mode .service-card:hover {
    border-color: #6c63ff;
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

body.dark-mode .service-icon {
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(167,139,250,0.2));
}

body.dark-mode .service-card h3,
body.dark-mode .timeline-header h3 {
    color: #e8e8e8;
}

body.dark-mode .service-card > p,
body.dark-mode .service-card ul li,
body.dark-mode .timeline-content ul li {
    color: #aaa;
}

body.dark-mode .skill-card {
    background: #1e1e30;
    border-color: #2a2a40;
}

body.dark-mode .skill-card:hover {
    background: #252540;
    border-color: #6c63ff;
}

body.dark-mode .skill-card h3 {
    color: #ccc;
}

body.dark-mode .stack-category {
    color: #ccc;
}

body.dark-mode .project-card {
    background: #1e1e30;
    border-color: #2a2a40;
}

body.dark-mode .project-card:hover {
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

body.dark-mode .project-info h3 {
    color: #e8e8e8;
}

body.dark-mode .project-info p {
    color: #aaa;
}

body.dark-mode .project-tags span {
    background: rgba(108, 99, 255, 0.15);
}

body.dark-mode .timeline-dot {
    border-color: #1a1a2e;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #1e1e30;
    border-color: #2a2a40;
    color: #e0e0e0;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: #6c63ff;
}

body.dark-mode .contact-item span {
    color: #aaa;
}

body.dark-mode .contact-social a {
    background: rgba(108, 99, 255, 0.15);
}

body.dark-mode .info-card {
    background: #1e1e30;
    border-color: #2a2a40;
}

body.dark-mode .info-card h4 {
    color: #999;
}

body.dark-mode .info-card p {
    color: #e0e0e0 !important;
}

body.dark-mode .footer {
    background: #0a0a0a;
}

body.dark-mode .blog {
    background: #1a1a2e;
}

body.dark-mode .blog-card {
    background: #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

body.dark-mode .blog-content h3 {
    color: #e0e0e0;
}

body.dark-mode .blog-content p {
    color: #aaa;
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .preloader, .scroll-top, .whatsapp-float,
    .particles-canvas, .dark-mode-toggle, .menu-btn,
    .cta-banner, .contact-form, .slider-controls {
        display: none !important;
    }

    body, body.dark-mode {
        background: #fff !important;
        color: #333 !important;
    }

    .hero {
        background: #f5f5f5 !important;
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    .hero-name, .hero-text h1, .section-title {
        color: #333 !important;
    }

    section {
        padding: 30px 0 !important;
        break-inside: avoid;
    }

    .testimonials {
        background: #f0f0f0 !important;
    }

    .testimonial-card {
        background: #fff !important;
        border: 1px solid #ddd !important;
    }

    .testimonial-card p,
    .testimonial-author h4 {
        color: #333 !important;
    }

    a { color: #333 !important; text-decoration: underline; }

    .btn { border: 1px solid #333 !important; background: none !important; }
}
