/* Base Styles and Variables */
:root {
    --primary-color: #2a2a2a;
    --secondary-color: #4a4a4a;
    --accent-color: #0070f3;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --section-spacing: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color var(--transition-speed) ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    text-align: center;
}

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

.btn.primary:hover {
    background-color: #005cc5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.05) 0%, rgba(0, 112, 243, 0) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 400;
    animation: fadeInDown 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* About Section */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
}

.about-image img:hover {
    transform: translateY(-10px);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.core-competencies {
    margin-top: 30px;
}

.core-competencies h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.core-competencies ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.core-competencies li {
    padding: 10px 15px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.core-competencies li:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Skills Section */
.skills {
    background-color: var(--light-gray);
}

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

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.projects {
    background-color: var(--background-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: white;
}

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

.project-image {
    overflow: hidden;
}

.project-image img {
    transition: transform 0.5s ease;
    width: 100%;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

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

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

/* Experience Section */
.experience {
    background-color: var(--light-gray);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 2px;
    height: 100%;
    background-color: var(--medium-gray);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 44px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--light-gray);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.timeline-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 500;
}

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

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Education Section */
.education {
    background-color: var(--background-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.education-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.education-item h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.education-item h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-weight: 500;
}

.education-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

.contact-details {
    margin-bottom: 30px;
}

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

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--medium-gray);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.download-resume {
    display: inline-flex;
    align-items: center;
}

.download-resume i {
    margin-right: 10px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.error-message {
    color: #e53935;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.success-message {
    color: #43a047;
    font-size: 0.9rem;
    margin-top: 15px;
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content i {
    color: #e53935;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: var(--background-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        padding: 100px 0;
        z-index: 998;
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .burger {
        display: block;
        z-index: 999;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-links {
        width: 70%;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 24px;
    }
    
    .timeline-date {
        width: 24px;
        font-size: 0.8rem;
    }
}