/* --- CSS Variables --- */
:root {
    --primary-color: #2563eb;       /* Professional Blue */
    --primary-dark: #1e40af;        /* Darker Blue for hover */
    --secondary-color: #1e293b;     /* Dark Slate */
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --accent-bg: #eff6ff;           /* Light blue accent background */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --section-spacing: 80px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

/* --- Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-light); line-height: 1.7; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--secondary-color); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
section { padding: var(--section-spacing) 0; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* Section Title */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary-color); border-radius: 2px; }

/* --- Header --- */
.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); font-family: var(--font-heading); }
.nav a { margin-left: 25px; font-weight: 600; font-family: var(--font-heading); color: var(--secondary-color); font-size: 0.95rem; }
.nav a:hover { color: var(--primary-color); }

/* --- Hero --- */
.hero { margin-top: 70px; padding: 100px 0; background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%); min-height: 90vh; display: flex; align-items: center; }
.hero .container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.hero-content { flex: 1; }
.hero h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 20px; min-height: 80px; }
.subtitle { font-size: 1.15rem; color: var(--text-light); max-width: 600px; }
.hero-image-container img { width: 320px; height: 320px; object-fit: cover; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; border: 5px solid white; box-shadow: var(--box-shadow); animation: float 6s ease-in-out infinite; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* --- NEW About Section --- */
.about { background-color: var(--bg-white); }
.about-card {
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative accent */
.about-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-content p { 
    font-size: 1.15rem; 
    line-height: 1.8;
    margin-bottom: 24px; 
    color: var(--text-dark); 
}

.about-content p:last-child {
    margin-bottom: 0;
}

.highlight-text { 
    font-size: 1.5rem !important; 
    font-weight: 600; 
    color: var(--secondary-color); 
    margin-bottom: 35px !important; 
    line-height: 1.5;
}
.text-primary { color: var(--primary-color); }

/* --- NEW Project Section (Slider Layout) --- */
.project { background-color: var(--bg-light); }
.project-layout { display: flex; gap: 40px; align-items: flex-start; }
.project-info-side { flex: 1; padding-right: 20px; }
.project-slider-side { flex: 1.2; position: relative; }

.project-title-group { display: flex; align-items: center; margin-bottom: 20px; }
.project-brand img { height: 40px; margin-right: 15px; }
.project-main-title { font-size: 1.5rem; }
.live-demo-btn { display: inline-block; padding: 10px 25px; background: var(--primary-color); color: white; border-radius: 25px; font-weight: 600; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.live-demo-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.project-features ul { list-style: none; padding-left: 0; }
.project-features li { padding-left: 25px; position: relative; margin-bottom: 10px; font-size: 0.95rem; }
.project-features li::before { content: '✓'; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    /* Aspect ratio mainly controlled by padding or height */
    height: 350px; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background: #000;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    animation: fade 0.6s ease-in-out;
}

.slide.active { display: block; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps image full but contained */
    background: #f1f5f9; /* Background for non-filling images */
}

/* Caption overlaid on image */
.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

/* Navigation Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}
.slider-btn:hover { background: white; color: var(--primary-dark); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Dots */
.slider-dots { text-align: center; margin-top: 15px; }
.dot {
    height: 10px; width: 10px;
    margin: 0 5px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active, .dot:hover { background-color: var(--primary-color); transform: scale(1.2); }

@keyframes fade { from { opacity: 0.8; } to { opacity: 1; } }

/* --- Experience & Skills (Restored) --- */
.experience { background: var(--bg-white); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 3px; background: #e2e8f0; top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background: white; border: 3px solid var(--primary-color); top: 22px; border-radius: 50%; z-index: 1; }
.timeline-item.right::after { left: -8px; }
.timeline-content { padding: 25px; background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; }
.timeline-content h4 { color: var(--primary-color); font-size: 1.1rem; }
.experience-list { padding-left: 20px; font-size: 0.9rem; margin-top: 10px; }

.skills-certs { background: var(--bg-light); }
.skills-certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.skills-list, .certs-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; }
.skills-list li, .certs-list li { background: white; padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); color: var(--primary-color); font-weight: 600; }
.cert-issuer { display: block; font-size: 0.75rem; color: #94a3b8; font-weight: 400; }

/* --- Contact & Footer --- */
.contact { background: var(--secondary-color); color: white; text-align: center; }
.contact .section-title { color: white; }
.contact .section-title::after { background: white; }
.contact-links a { display: inline-block; border: 2px solid white; color: white; padding: 10px 25px; border-radius: 25px; margin: 0 10px; }
.contact-links a:hover { background: white; color: var(--secondary-color); }
.footer { background: #0f172a; color: #94a3b8; text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header { flex-direction: column; gap: 10px; padding: 10px; }
    .hero .container { flex-direction: column-reverse; text-align: center; }
    .project-layout { flex-direction: column; }
    .slider-container { height: 250px; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; left: 0 !important; }
    .timeline-item::after { left: 11px !important; }
    .skills-certs-grid { grid-template-columns: 1fr; }
}

/* Animations */
.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: none; }
.from-left { transform: translateX(-30px); }
.from-right { transform: translateX(30px); }
/* --- NEW SKILLS & CERTS SECTION STYLES --- */

.skills-certs {
    background: linear-gradient(to bottom, var(--bg-light), #fff);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.col-header {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.col-header i {
    color: var(--primary-color);
}

/* Skills Styling */
.skill-group {
    margin-bottom: 30px;
}

.skill-group h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-group h4 i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tags span {
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: var(--transition);
    font-weight: 500;
}

.skill-tags span:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Certifications Styling */
.certs-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cert-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Accent bar on the left of cert card */
.cert-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0; /* Hidden by default, shows on hover */
    transition: var(--transition);
}

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

.cert-card:hover::before {
    opacity: 1;
}

.cert-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-bg); /* Light blue bg defined in prev steps */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.cert-details {
    flex: 1;
}

.cert-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--secondary-color);
}

.cert-details .issuer {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}