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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

section {
    padding: 60px 20px;
}

h1, h2, h3 {
    color: #2c3e50;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #3498db;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('https://source.unsplash.com/random/1920x1080/?coding') center/cover;
    margin-top: -60px;
}

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

.hero-content h2 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* About Section */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.about-content {
    flex: 1;
}

.quick-info {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item i {
    color: #3498db;
    font-size: 1.2rem;
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin: 0.8rem 0;
}

.skill-category i {
    margin-right: 0.5rem;
    color: #3498db;
}

/* Projects Section */
.project-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-links {
    margin: 0;
}

.project-links a {
    color: white;
    text-decoration: none;
    background: #2c3e50;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-links a i {
    font-size: 1rem;
}

.project-links a:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('https://source.unsplash.com/random/1920x1080/?technology') center/cover;
}

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

.contact-content {
    text-align: center;
    padding: 1rem;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-text p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: white;
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
    justify-content: space-between;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-method h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-method p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.copy-btn, .social-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 25px;
    background: #2c3e50;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 120px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.copy-btn {
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.copy-btn:hover, .social-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.copy-btn.copied {
    background: #27ae60;
    transform: translateY(-2px);
}

.copy-btn.copied i {
    color: white;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    margin: 100px auto;
    padding: 2rem;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #2c3e50;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .navbar ul {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content, .about-container, .skills-container, .project-grid {
    animation: fadeIn 1s ease-in;
}

/* Add negative margin to about section to pull it up */
.about-section {
    margin-top: -60px;
}

/* Leadership Section */
.leadership-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.achievement-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Interests Section */
.interests-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.interest-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
}

.interest-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

html {
    scroll-behavior: smooth;
}

/* Update section heading */
.contact-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #2c3e50;
}

/* Center all section headings */
section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #2c3e50;
}

/* Specific adjustments for about section since it has a different layout */
.about-section h2 {
    text-align: left;  /* Keep about section heading left-aligned since it's part of a flex container */
}

/* Add styles for the download resume button */
.hero-buttons {
    margin-top: 2rem;
}

.download-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #2c3e50;
}

.download-resume:hover {
    background: transparent;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.download-resume i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.download-resume:hover i {
    transform: translateY(2px);
}

.project-content p {
    margin-bottom: 1rem;
    color: #666;
}
