/* ============================================
   SAKSHI DERE - FREELANCING PORTFOLIO
   Premium Professional Stylesheet
   ============================================ */

/* ============= CSS VARIABLES ============= */
:root {
    --primary: #6C3BFF;
    --secondary: #9D4EDD;
    --accent: #C77DFF;
    --dark: #1B102E;
    --light: #F8F7FF;
    --white: #FFFFFF;
    --text-dark: #2D1B4E;
    --text-light: #6B5B95;
    --border-color: #E0D7F8;
    --shadow: 0 8px 32px rgba(108, 59, 255, 0.1);
    --shadow-lg: 0 15px 50px rgba(108, 59, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --gradient-primary: linear-gradient(135deg, #6C3BFF, #9D4EDD);
    --gradient-hover: linear-gradient(135deg, #9D4EDD, #C77DFF);
}

/* ============= GLOBAL STYLES ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--dark);
    color: var(--light);
}

/* ============= DARK MODE TOGGLE ============= */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ============= SCROLL PROGRESS ============= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ============= HEADER & NAVIGATION ============= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 59, 255, 0.1);
    z-index: 900;
    transition: var(--transition);
    padding: 1rem 2rem;
}

body.dark-mode header {
    background: rgba(27, 16, 46, 0.8);
}

header.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

body.dark-mode nav a {
    color: var(--light);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.hire-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hire-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* ============= MAIN CONTENT ============= */
main {
    margin-top: 80px;
}

section {
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============= HERO SECTION ============= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 59, 255, 0.1), transparent);
    animation: float 20s infinite;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

body.dark-mode .hero p {
    color: #B8A6D8;
}

.typing-effect {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
    min-height: 35px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.btn-primary {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    padding: 15px 40px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    z-index: 3;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

/* ============= FLOATING ICONS ============= */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(108, 59, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.tech-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.tech-icon:nth-child(2) { top: 30%; right: 10%; animation-delay: 1s; }
.tech-icon:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; }
.tech-icon:nth-child(4) { bottom: 10%; right: 5%; animation-delay: 3s; }

/* ============= ABOUT SECTION ============= */
.about {
    background: rgba(108, 59, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2,
.services h2,
.projects h2,
.skills h2,
.contact h2,
.faq h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

body.dark-mode .about-text p {
    color: #B8A6D8;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.detail-card {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

body.dark-mode .detail-card {
    background: rgba(157, 78, 221, 0.1);
    border-color: var(--secondary);
}

.detail-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

.resume-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.resume-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.05);
}

/* ============= SKILLS SECTION ============= */
.skills {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

body.dark-mode .skill-card {
    background: rgba(157, 78, 221, 0.1);
    border-color: var(--secondary);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-percent {
    color: var(--primary);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #E0D7F8;
    border-radius: 10px;
    overflow: hidden;
}

body.dark-mode .skill-bar {
    background: rgba(108, 59, 255, 0.2);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: fillBar 1.5s ease-out forwards;
    width: 0;
}

@keyframes fillBar {
    to {
        width: var(--width);
    }
}

/* ============= SERVICES SECTION ============= */
.services {
    background: white;
}

body.dark-mode .services {
    background: rgba(27, 16, 46, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

body.dark-mode .service-card {
    background: rgba(157, 78, 221, 0.1);
    border-color: rgba(108, 59, 255, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 59, 255, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

body.dark-mode .service-card p {
    color: #B8A6D8;
}

.learn-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* ============= PROJECTS SECTION ============= */
.projects {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

body.dark-mode .project-card {
    background: rgba(157, 78, 221, 0.1);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.project-card:hover .project-image::after {
    left: 100%;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tech-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

body.dark-mode .project-description {
    color: #B8A6D8;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

.project-buttons a {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    font-weight: 600;
}

.project-buttons a:hover {
    background: var(--primary);
    color: white;
}

/* ============= TESTIMONIALS SECTION ============= */
.testimonials {
    background: white;
}

body.dark-mode .testimonials {
    background: rgba(27, 16, 46, 0.5);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
    width: 100%;
}

body.dark-mode .testimonial-card {
    background: rgba(157, 78, 221, 0.1);
    border-color: rgba(108, 59, 255, 0.3);
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

body.dark-mode .testimonial-text {
    color: var(--light);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--text-light);
}

.carousel-buttons {
    text-align: center;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary);
}

/* ============= STATISTICS SECTION ============= */
.statistics {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.stat-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-box:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============= CONTACT SECTION ============= */
.contact {
    background: white;
}

body.dark-mode .contact {
    background: rgba(27, 16, 46, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
}

body.dark-mode .contact-details p {
    color: #B8A6D8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.dark-mode .form-group label {
    color: var(--light);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(108, 59, 255, 0.1);
    border-color: rgba(108, 59, 255, 0.3);
    color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E74C3C;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============= MAP SECTION ============= */
.map-section {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
    text-align: center;
}

.map-container {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============= ENQUIRY FORM PAGE ============= */
.enquiry-form {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
    padding: 3.5rem 3rem 2.5rem;
    border-radius: 28px;
    border: 1px solid rgba(108, 59, 255, 0.15);
    box-shadow: 0 30px 70px rgba(108, 59, 255, 0.12);
    overflow: hidden;
}

.enquiry-form::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(108, 59, 255, 0.18), transparent 60%);
    filter: blur(10px);
    pointer-events: none;
}

.enquiry-form::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.14), transparent 55%);
    filter: blur(12px);
    pointer-events: none;
}

body.dark-mode .enquiry-form {
    background: rgba(33, 14, 66, 0.9);
    border-color: rgba(157, 78, 221, 0.35);
}

.enquiry-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.enquiry-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .enquiry-subtitle {
    color: #cfc1f2;
}

.form-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: rgba(108, 59, 255, 0.08);
    color: var(--text-dark);
    font-size: 0.95rem;
    border: 1px solid rgba(108, 59, 255, 0.16);
    box-shadow: 0 10px 25px rgba(108, 59, 255, 0.06);
}

body.dark-mode .form-chip {
    background: rgba(108, 59, 255, 0.16);
    color: var(--light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row.full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    border: 1px solid rgba(108, 59, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .form-group {
    background: rgba(33, 14, 66, 0.65);
    border-color: rgba(157, 78, 221, 0.18);
}

.form-group:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 59, 255, 0.24);
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

body.dark-mode .form-group label {
    color: #e7d9ff;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 16px 18px;
    border: 1px solid rgba(108, 59, 255, 0.18);
    border-radius: 18px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(108, 59, 255, 0.03);
    color: var(--text-dark);
    box-shadow: inset 0 1px 6px rgba(108, 59, 255, 0.04);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: rgba(108, 59, 255, 0.12);
    border-color: rgba(157, 78, 221, 0.28);
    color: var(--light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 59, 255, 0.14);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.form-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E74C3C;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.submit-btn {
    flex: 1;
    padding: 16px 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 18px 30px rgba(108, 59, 255, 0.25);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(108, 59, 255, 0.28);
}

.reset-btn {
    flex: 1;
    padding: 16px 42px;
    background: transparent;
    color: var(--primary);
    border: 2px dashed rgba(108, 59, 255, 0.35);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.reset-btn:hover {
    background: rgba(108, 59, 255, 0.08);
}

/* ============= FAQ SECTION ============= */
.faq {
    background: white;
}

body.dark-mode .faq {
    background: rgba(27, 16, 46, 0.5);
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .faq-item {
    background: rgba(157, 78, 221, 0.1);
    border-color: rgba(108, 59, 255, 0.3);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    background: white;
    border: none;
    width: 100%;
    transition: var(--transition);
}

body.dark-mode .faq-question {
    background: transparent;
}

.faq-question:hover {
    background: rgba(108, 59, 255, 0.05);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    color: var(--text-light);
}

body.dark-mode .faq-answer {
    color: #B8A6D8;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* ============= BLOG SECTION ============= */
.blog {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.05), rgba(157, 78, 221, 0.05));
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body.dark-mode .blog-card {
    background: rgba(157, 78, 221, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.blog-title {
    color: var(--primary);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

body.dark-mode .blog-excerpt {
    color: #B8A6D8;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary);
}

/* ============= FLOATING WHATSAPP BUTTON ============= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 800;
}

.whatsapp-btn:hover {
    transform: scale(1.2) rotate(10deg);
}

/* ============= BACK TO TOP ============= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 800;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* ============= LOADING SCREEN ============= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeOut 0.5s ease-out 1.5s forwards;
}

body.dark-mode .loading-screen {
    background: var(--dark);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(108, 59, 255, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============= CURSOR EFFECT ============= */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.cursor.active {
    display: block;
}

.cursor-inner {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

/* ============= FOOTER ============= */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

footer h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    margin-bottom: 2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #B8A6D8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(157, 78, 221, 0.2);
    color: white;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: #B8A6D8;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #B8A6D8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #B8A6D8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ============= ANIMATIONS ============= */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: slideUp 0.8s ease-out;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hire-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    body.dark-mode nav {
        background: rgba(27, 16, 46, 0.9);
    }

    nav.active {
        display: flex;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    section {
        padding: 50px 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .skills-grid,
    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .dark-mode-toggle {
        top: 80px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .back-to-top {
        right: 80px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .typing-effect {
        font-size: 1.1rem;
    }

    section {
        padding: 30px 1rem;
    }

    .container {
        padding: 0;
    }

    .detail-card {
        margin-bottom: 1rem;
    }

    .project-buttons {
        flex-direction: column;
    }

    .project-buttons a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .enquiry-form {
        padding: 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    nav a::after {
        display: none;
    }
}

/* ============= PRINT STYLES ============= */
/* ============= VIDEO SECTION ============= */
.videos {
    background: linear-gradient(135deg, rgba(108, 59, 255, 0.08), rgba(157, 78, 221, 0.08));
}

.videos h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.videos-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .videos-intro {
    color: #B8A6D8;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

body.dark-mode .video-card {
    background: rgba(157, 78, 221, 0.1);
}

.video-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-play-btn {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.video-overlay:hover .video-play-btn {
    transform: scale(1.1);
    background: var(--secondary);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(108, 59, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

body.dark-mode .video-description {
    color: #B8A6D8;
}

.video-watch-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.video-watch-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============= ENHANCED ANIMATIONS ============= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(108, 59, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(108, 59, 255, 0.8); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ============= TESTIMONIALS SLIDER ============= */
.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 280px;
}

.testimonial-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* ============= PROJECT CAROUSEL ============= */
.project-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track.autoplay {
    animation: autoScroll 15s linear infinite;
}

.carousel-track.autoplay:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* ============= TECH STACK SLIDER ============= */
.tech-stack {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.tech-item {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============= PROGRESS BARS ============= */
.progress-section {
    margin: 2rem 0;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

body.dark-mode .progress-label {
    color: var(--light);
}

.progress-bar {
    height: 8px;
    background: #E0D7F8;
    border-radius: 10px;
    overflow: hidden;
}

body.dark-mode .progress-bar {
    background: rgba(108, 59, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--width, 100%); }
}

/* ============= PRINT STYLES ============= */
@media print {
    header,
    .dark-mode-toggle,
    .whatsapp-btn,
    .back-to-top,
    footer,
    .hire-btn {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
        margin: 0;
        padding: 20px;
    }

    .project-card,
    .service-card,
    .skill-card,
    .video-card {
        page-break-inside: avoid;
    }
}

/* ============= BUTTON RIPPLE EFFECT ============= */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============= SMOOTH PARALLAX ============= */
[data-parallax] {
    transition: transform 0.1s ease-out;
}
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-card:hover {
        transform: translateY(-10px);
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .videos-intro {
        font-size: 0.95rem;
    }

    .video-watch-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .tech-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
