/* CSS Variables for Theme Support */
:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --accent-color: #8fb996;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-light: #cbd5e0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-card: #2d3748;
    --border-color: #4a5568;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.5);
}

/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* UI Components */
.theme-toggle { position: fixed; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--gradient-primary); color: white; font-size: 20px; cursor: pointer; z-index: 1000; box-shadow: var(--shadow-medium); transition: all 0.3s ease; }
.theme-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-heavy); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--text-primary); font-weight: 700; }
.section-line { width: 80px; height: 4px; background: var(--gradient-primary); margin: 0 auto; border-radius: 2px; }

/* Hero Section */
.hero { padding: 120px 0; background: var(--bg-secondary); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent 70%, rgba(44, 85, 48, 0.05) 100%); }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text h2 { font-size: 1.8rem; color: var(--text-secondary); margin-bottom: 30px; font-weight: 500; }

/* CTA Buttons */
/* .cta-button { display: inline-block; padding: 15px 35px; background: var(--gradient-primary); color: white; text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: var(--shadow-light); border: none; cursor: pointer; margin-right: 15px; margin-top: 10px; }
.cta-button:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.cta-button.secondary { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.cta-button.secondary:hover { background: var(--primary-color); color: white; } */

/* CTA Buttons */
.cta-button {  display: inline-block;  padding: 15px 35px;  background: var(--gradient-primary);  color: white;  text-decoration: none;  border-radius: 50px;  font-weight: 600;  font-size: 1.1rem;  transition: all 0.3s ease;  box-shadow: var(--shadow-light);  border: none;  cursor: pointer;  margin-right: 15px;  margin-top: 10px; }

/* General hover */
.cta-button:hover {  transform: translateY(-3px);  box-shadow: var(--shadow-medium); }

/* Secondary button (outline style) */
.cta-button.secondary {  background: transparent;  border: 2px solid var(--primary-color);  color: var(--primary-color); }

/* More specific hover for secondary button */
.cta-button.secondary:hover {  background: var(--primary-color);  color: white;  transform: translateY(-3px); /* keep same hover effect */  box-shadow: var(--shadow-medium); }


/* Professional Card */
.professional-card { background: var(--bg-card); border-radius: 20px; padding: 25px; margin: 30px 0; box-shadow: var(--shadow-light); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.professional-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.card-header { display: flex; align-items: center; margin-bottom: 20px; }
.profile-mini { position: relative; margin-right: 15px; }
.mini-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-color); }
.status-indicator { position: absolute; bottom: 5px; right: 5px; width: 12px; height: 12px; background: #48bb78; border-radius: 50%; border: 2px solid white; }
.card-info h3 { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 5px; }
.card-info p { color: var(--text-light); font-size: 0.9rem; }
.card-stats { display: flex; justify-content: space-around; margin: 20px 0; padding: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary-color); }
.stat-label { font-size: 0.9rem; color: var(--text-light); }
.card-cta { width: 100%; padding: 12px; background: var(--gradient-primary); color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.card-cta:hover { background: var(--gradient-accent); transform: translateY(-2px); }

/* Hero Image */
.hero-image { flex: 1; display: flex; justify-content: center; }
.profile-circle { width: 400px; height: 400px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: var(--shadow-heavy); animation: float 6s ease-in-out infinite; }
.profile-circle::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 2px solid var(--accent-color); animation: pulse 2s ease-in-out infinite; }
.profile-circle img { width: 380px; height: 380px; border-radius: 50%; object-fit: cover; border: 5px solid white; }

/* Services Section */
.services { padding: 100px 0; background: var(--bg-primary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-card); padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: var(--shadow-light); border: 1px solid var(--border-color); transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient-primary); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-medium); }
.service-icon { width: 80px; height: 80px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; color: white; font-size: 2rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-primary); }
.service-card p { color: var(--text-secondary); margin-bottom: 20px; }
.view-more { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 10px 25px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.view-more:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

/* Portfolio Section */
.portfolio { padding: 100px 0; background: var(--bg-secondary); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.project-card { background: var(--bg-card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-light); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-medium); }
.project-image { position: relative; overflow: hidden; height: 250px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 85, 48, 0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.project-card:hover .project-overlay { opacity: 1; }
.project-btn { padding: 12px 25px; background: white; color: var(--primary-color); border: none; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.project-btn:hover { background: var(--accent-color); color: white; transform: translateY(-2px); }
.project-info { padding: 25px; }
.project-info h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--text-primary); }
.project-info p { color: var(--text-secondary); margin-bottom: 15px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag { background: var(--accent-color); color: white; padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 500; }

/* My Services Section */
.my-services { padding: 100px 0; background: var(--bg-primary); }
.service-features { list-style: none; margin-top: 15px; }
.service-features li { padding: 8px 0; color: var(--text-secondary); position: relative; padding-left: 20px; }
.service-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }

/* Experience Section */
.experience { padding: 100px 0; background: var(--bg-secondary); }
.experience-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.experience-timeline::before { content: ''; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: var(--primary-color); }
.timeline-item { display: flex; margin-bottom: 50px; position: relative; }
.timeline-icon { width: 60px; height: 60px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; margin-right: 30px; flex-shrink: 0; z-index: 2; }
.company-logo { font-size: 1.2rem; }
.timeline-content { flex: 1; background: var(--bg-card); padding: 30px; border-radius: 15px; box-shadow: var(--shadow-light); border: 1px solid var(--border-color); }
.timeline-content h3 { font-size: 1.4rem; color: var(--text-primary); margin-bottom: 5px; }
.timeline-content h4 { font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 10px; font-weight: 600; }
.timeline-date { background: var(--accent-color); color: white; padding: 5px 15px; border-radius: 15px; font-size: 0.9rem; font-weight: 500; }
.timeline-location { color: var(--text-light); margin: 10px 0; font-style: italic; }
.timeline-content ul { list-style: none; margin-top: 15px; }
.timeline-content li { padding: 8px 0; color: var(--text-secondary); position: relative; padding-left: 20px; }
.timeline-content li::before { content: '▸'; position: absolute; left: 0; color: var(--primary-color); }

/* Skills Section */
.skills { padding: 100px 0; background: var(--bg-primary); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.skill-category { background: var(--bg-card); padding: 30px; border-radius: 15px; box-shadow: var(--shadow-light); border: 1px solid var(--border-color); }
.skill-category h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.skill-category h3 i { color: var(--primary-color); }
.skill-items { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-item { background: var(--accent-color); color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; }
.skill-item:hover { background: var(--primary-color); transform: translateY(-2px); }

/* Contact Section */
.contact { padding: 100px 0; background: var(--bg-secondary); }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.8rem; color: var(--text-primary); margin-bottom: 20px; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 30px; line-height: 1.7; }
.contact-methods { margin-bottom: 30px; }
.contact-method { display: flex; align-items: center; margin-bottom: 25px; }
.contact-method .contact-icon { width: 50px; height: 50px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; margin-right: 15px; }
.contact-detail h4 { color: var(--text-primary); margin-bottom: 5px; }
.contact-detail p { color: var(--text-secondary); }
.social-links { display: flex; gap: 15px; }
.social-link { width: 45px; height: 45px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background: var(--secondary-color); transform: translateY(-3px); }

/* Contact Form */
.contact-form { background: var(--bg-card); padding: 40px; border-radius: 15px; box-shadow: var(--shadow-light); border: 1px solid var(--border-color); }
.contact-form h3 { color: var(--text-primary); margin-bottom: 25px; font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-primary); color: var(--text-primary); font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; padding: 15px; background: var(--gradient-primary); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover { background: var(--gradient-accent); transform: translateY(-2px); }

/* Footer */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border-color); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.2rem; }
.footer-section p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; color: var(--text-light); }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); }
.modal-content { background-color: var(--bg-card); margin: 5% auto; padding: 40px; border-radius: 20px; width: 90%; max-width: 800px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-heavy); position: relative; animation: modalSlideIn 0.3s ease; }
.close { color: var(--text-light); float: right; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; position: absolute; top: 20px; right: 25px; }
.close:hover { color: var(--primary-color); }
.modal h2 { color: var(--text-primary); margin-bottom: 20px; font-size: 2rem; }
.modal-project-image { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }

/* Contact Modal */
.contact-modal-content { display: grid; gap: 30px; }
.contact-modal-info { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.contact-modal-item { display: flex; align-items: flex-start; gap: 15px; padding: 20px; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--border-color); }
.contact-modal-icon { width: 50px; height: 50px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; flex-shrink: 0; }
.contact-modal-details h3 { color: var(--text-primary); margin-bottom: 5px; font-size: 1.1rem; }
.contact-modal-details p { color: var(--text-secondary); margin-bottom: 10px; }
.contact-link { color: var(--primary-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.contact-link:hover { color: var(--secondary-color); }
.contact-modal-note { background: var(--accent-color); color: white; padding: 20px; border-radius: 10px; text-align: center; }
.contact-modal-note p { margin: 0; }

/* Professional Details in Modal */
.professional-details .profile-section { margin-bottom: 30px; }
.professional-details h3 { color: var(--text-primary); margin-bottom: 15px; font-size: 1.4rem; }
.professional-details p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 15px; }
.summary-list { list-style: none; }
.summary-list li { padding: 10px 0; color: var(--text-secondary); position: relative; padding-left: 25px; }
.summary-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.skill-category h4 { color: var(--text-primary); margin-bottom: 10px; font-size: 1.1rem; }
.skill-category p { color: var(--text-secondary); }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}
@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text h2 { font-size: 1.4rem; }
    .profile-circle { width: 300px; height: 300px; }
    .profile-circle img { width: 280px; height: 280px; }
    .section-header h2 { font-size: 2rem; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .experience-timeline::before { left: 20px; }
    .timeline-item { flex-direction: column; }
    .timeline-icon { margin-right: 0; margin-bottom: 20px; }
    .contact-content { grid-template-columns: 1fr; }
    .contact-modal-info { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .modal-content { width: 95%; margin: 10% auto; padding: 20px; }
    .cta-button { display: block; width: 100%; margin-bottom: 10px; }
}