/* Base Styles */
:root {
    --primary-color: #6D4C9C;  /* New sophisticated purple */
    --secondary-color: #9C7AC6;
    --accent-color: #FFAC4B;   /* Warm accent color */
    --text-color: #333;
    --bg-color: #f9f9f9;
    --card-bg: #fff;
    --header-bg: #166088;
    --footer-bg: #2d3748;
    --footer-text: #f8f9fa;
    --border-color: #e1e1e1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #9C7AC6;
    --secondary-color: #6D4C9C;
    --accent-color: #FFB347;
    --text-color: #f8f9fa;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --header-bg: #0d3b66;
    --footer-bg: #1a1a1a;
    --footer-text: #f8f9fa;
    --border-color: #444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    width: 100%;       /* Set width to 100% to fill the container */
    margin: 0;         /* Remove margin to ensure it fills from end to end */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#themeBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#themeBtn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Header */
.hero {
    background: linear-gradient(rgba(22, 96, 136, 0.8), rgba(22, 96, 136, 0.8)), url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    padding: 120px 0;  /* Increased padding for a wider banner */
    text-align: center;
    width: 100%;       /* Set width to 100% to fill the container */
    margin: 0;         /* Remove margin to ensure it fills from end to end */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.tagline {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
}

/* About Section */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.about-image {
    flex: 1 1 300px;
    max-width: 350px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-text {
    flex: 2 1 400px;
    text-align: left;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.underline.left {
    margin: 0 0 20px 0;
    margin-left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.3rem;
}

/* Experience Slider */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.slide h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.slide p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
}

.slider-nav button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.slider-nav button:hover {
    background: var(--secondary-color);
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
}

/* Services Section */
.services-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.tab-content.active {
    display: block;
}

.service-category {
    margin-bottom: 30px;
}

.service-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

.service-category ul {
    list-style-type: none;
}

.service-category li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.service-category li:before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.service-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    text-align: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .card-icon i {
    transform: rotate(360deg);
    color: var(--secondary-color);
}

.service-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-details h4 {
    color: var(--secondary-color);
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.service-details ul {
    list-style: none;
    padding-left: 0;
}

.service-details li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.service-details i.fa-check {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.card-hover {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    transform: rotate(15deg) scale(0);
    transition: var(--transition);
    opacity: 0.1;
    z-index: 0;
}

.service-card:hover .card-hover {
    transform: rotate(15deg) scale(1);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style-type: none;
}

.footer-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;  /* Space above the social links */
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .services-tabs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .slide {
        padding: 30px 20px;
    }
}

/* Service Essentials */
.essentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.essentials-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: cardEntrance 0.6s ease forwards;
    opacity: 0;
}

.essentials-card:nth-child(1) { animation-delay: 0.2s; }
.essentials-card:nth-child(2) { animation-delay: 0.4s; }
.essentials-card:nth-child(3) { animation-delay: 0.6s; }

.essentials-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.essentials-icon:hover i {
    animation: iconPulse 0.8s ease;
    color: var(--accent-color);
}

.fancy-list li {
    padding: 10px;
    margin: 8px 0;
    background: rgba(109, 76, 156, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Education Section */
.education-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.timeline-card {
    background: var(--card-bg);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(109, 76, 156, 0.1),
        transparent);
    transition: var(--transition);
}

.timeline-card:hover::before {
    left: 100%;
}

.qualification-list li {
    padding: 15px;
    margin: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.qualification-list li:hover {
    transform: translateX(20px);
    background: rgba(109, 76, 156, 0.15);
}

/* Contact Info */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-card {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.contact-card:hover {
    transform: translateY(-10px);
    animation: borderGlow 1.5s infinite alternate;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-card:hover i {
    transform: rotate(15deg) scale(1.2);
    color: var(--accent-color);
}

/* Animation Keyframes */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes borderGlow {
    from { box-shadow: 0 0 10px var(--primary-color); }
    to { box-shadow: 0 0 20px var(--secondary-color); }
}

/* Scroll Animation Class */
.animate-in {
    animation: cardEntrance 0.6s ease forwards;
}