/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --card-bg: #9da7d6;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

header h1 {
    color: white;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

header p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
}

.personal-details {
    margin-top: 30px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.personal-details ul li {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.personal-details ul li:last-child {
    border-bottom: none;
}

/* Education Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.skill-category li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: var(--transition);
}

.skill-category li:hover {
    transform: translateX(10px);
}

.skill-category i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

/* Experience Section */
.experience-item {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.experience-duration {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-highlights {
    margin-top: 20px;
}

.experience-highlights li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.experience-highlights li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.project-header h3 {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.project-links a {
    color: var(--secondary-color);
    margin-left: 15px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.tech-used {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-used span {
    background-color: var(--light-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.tech-used span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Certificates Section */
.certificates-list li {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.certificates-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.certificates-list i {
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 2rem;
    min-width: 40px;
}

.certificate-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.certificate-info p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Activities Section */
.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.activity-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.activity-item li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.activity-item i {
    margin-right: 15px;
    color: var(--primary-color);
    margin-top: 3px;
    min-width: 20px;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
    min-width: 30px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--text-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--secondary-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    background: white;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    text-align: center;
    padding: 40px 0;
}

.social-links {
    margin-bottom: 25px;
}

.social-links a {
    color: white;
    margin: 0 15px;
    font-size: 1.8rem;
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--secondary-color);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    nav ul li a {
        color: white;
        font-size: 1.2rem;
        padding: 15px 25px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .activities-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 80px 0 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .project-card,
    .skill-category,
    .activity-item,
    .contact-form {
        padding: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
    }
    
    .tech-used {
        gap: 5px;
    }
    
    .tech-used span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    nav,
    .contact-form,
    footer {
        display: none;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .project-card,
    .skill-category,
    .timeline-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}