/* Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
}

.navbar-logo .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-lang {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.lang-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    animation: fadeUp 1s ease;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: fadeUp 1.2s ease;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    animation: fadeUp 1.4s ease;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeUp 1.6s ease;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 2s ease, transform 20s linear;
    animation: float 15s infinite;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.25rem;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    position: relative;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -15px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -15px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-company {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-icon {
    color: white;
    font-size: 2rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-title i {
    color: var(--primary-color);
}

.project-description {
    color: var(--light-text);
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--section-bg);
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.project-tag:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

/* Technical Stack */
.stack-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stack-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
}

.stack-item {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.stack-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stack-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.stack-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Typing Animation */
.typing-text::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }
    
    .navbar .container {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 15px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 