/* ================================================
   MODERN PORTFOLIO WEBSITE CSS
   ================================================ */

/* CSS Variables for easy theme customization */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --accent-color: #ff6b6b;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-light: #ffffff;
    --bg-light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ================================================
   GLOBAL STYLES
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ================================================
   NAVIGATION
   ================================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-logo a:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,138.7C1248,139,1344,149,1392,154.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-profile {
    text-align: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease;
}

.subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease 0.1s both;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInLeft 0.8s ease 0.3s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================
   SECTIONS
   ================================================ */

section {
    padding: 80px 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ================================================
   ABOUT SECTION
   ================================================ */

.about {
    background: var(--bg-light-gray);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ================================================
   SKILLS SECTION
   ================================================ */

.skills {
    background: white;
}

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

.skill-category {
    background: var(--bg-light-gray);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* ================================================
   EXPERIENCE SECTION
   ================================================ */

.experience {
    background: var(--bg-light-gray);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--border-color);
    top: 0;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    display: flex;
    gap: 40px;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-light-gray);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-color);
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    width: calc(50% - 20px);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.timeline-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.company {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.company:hover {
    color: var(--primary-dark);
}

.timeline-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 15px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content {
        width: 100%;
        margin-left: 60px;
    }

    .timeline-header {
        flex-direction: column;
    }
}

/* ================================================
   EDUCATION SECTION
   ================================================ */

.education {
    background: white;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-light-gray);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.education-card-header {
    margin-bottom: 15px;
}

.education-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.institution {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.institution:hover {
    color: var(--primary-dark);
}

.field-of-study {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

.duration {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ================================================
   CONTACT SECTION
   ================================================ */

.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,138.7C1248,139,1344,149,1392,154.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z");') no-repeat bottom;
    background-size: cover;
    opacity: 0.2;
    pointer-events: none;
}

.contact .section-title {
    color: white;
}

.contact-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-item a,
.contact-item p {
    opacity: 0.9;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    opacity: 0.8;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .about-content p {
        font-size: 16px;
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        gap: 30px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .hero {
        margin-top: 60px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .timeline-content {
        margin-left: 40px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-item i {
        font-size: 20px;
    }
}

/* ================================================
   ANIMATIONS & TRANSITIONS
   ================================================ */

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

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

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

.slide-up {
    animation: slideUp 0.6s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
