:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6a7c92;
    --bg-color: #ffffff;
    --text-color: #0c0c0c;
    --card-bg: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #6d8cff;
    --secondary-color: #a0aec0;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --shadow: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* ===== ATTRACTIVE HERO BACKGROUND ===== */
.hero {
    background: linear-gradient(135deg,  #044098f4 0%,  #0677a8c8 150%);
    position: relative;
    overflow: hidden;
    }

.dark-theme .hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  

}

/* Optional: Add subtle animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Ensure content stays above background */
.hero .container {
    position: relative;
    z-index: 2;
}
/* Quick fix for hero text visibility */
.hero-text h1 {
    color: #f3f5f7;
     text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.dark-theme .hero-text h1 {
    color: #f7fafc;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    color:  #e2e8f0 !important;
    font-weight: 700 !important;
    
    opacity: 1 !important;
}

.dark-theme .hero-text p {
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--card-bg);
    transform: rotate(30deg);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
}

.btn-outline {
    background-color: transparent;
    color:#faf8f8 !important;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(74, 108, 247, 0.2);
    transition: var(--transition);
}

.image-container:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill {
    background-color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.skill:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: white;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

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

.education-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.education-card:hover {
    transform: translateY(-10px);
}

.education-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-card .institution {
    font-weight: 600;
    margin-bottom: 5px;
}

.education-card .duration {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-style: italic;
}
/* ===== SKILLS & CERTIFICATIONS SECTION ===== */
.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    justify-content: center;
}

.subsection-title i {
    font-size: 1.5rem;
}

/* Skills Section */
.skills-section {
    margin-bottom: 80px;
}

.skills-categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skills-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.skills-category h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--shadow);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #6d8cff);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Certifications Section */
.certifications-section {
    margin-top: 40px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.certification-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #6d8cff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
}

.cert-content {
    flex: 1;
}

.cert-content h4 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cert-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cert-badge {
    margin-bottom: 20px;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), #6d8cff);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Certificate Download Links */
.cert-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--primary-color);
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.cert-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.download-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.download-link:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Remove modal styles since we don't need them anymore */

/* Responsive Design */
@media (max-width: 992px) {
    .skills-categories-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .skills-category {
        padding: 20px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .certification-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .cert-icon {
        align-self: center;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .skills-categories-container {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .subsection-title {
        font-size: 1.3rem;
    }
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #6a11cb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tag {
    background-color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--secondary-color);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--shadow);
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

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

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content, .about-content, .contact-content {
        flex-direction: column;
    }
    
    .hero-text, .about-text, .contact-info {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .skills {
        justify-content: center;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .education-content, .projects-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Fix Project View Details Button Visibility */
.project-card .btn-outline {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

.project-card .btn-outline:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Ensure dark theme works properly */
.dark-theme .project-card .btn-outline {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: transparent !important;
}

.dark-theme .project-card .btn-outline:hover {
    background: var(--primary-color) !important;
    color: white !important;
}