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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fff;
}

/* Professional Color Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-light: #ecf0f1;
    --border-color: #bdc3c7;
}

.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);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.brand-short {
    display: none;
}

.brand-full {
    display: inline;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 1rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

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

.left-underline {
    position: relative;
}

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

.left-underline:hover::after {
    width: 100%;
}

.resume-btn-nav {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.resume-btn-nav:hover {
    background: var(--accent-color);
    color: white;
}

/* Navigation Layout Improvements */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.1rem;
        padding: 0.25rem 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }
    
    .navbar-collapse {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        width: 100%;
    }
    
    .navbar-nav.ml-auto {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Additional mobile responsive styles for navbar-brand */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .navbar .container {
        padding: 0.25rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.9rem;
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .navbar .container {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 360px) {
    .navbar-brand {
        font-size: 0.85rem;
        padding: 0.2rem 0;
        margin-bottom: 0.2rem;
    }
    
    .brand-full {
        display: none;
    }
    
    .brand-short {
        display: inline;
    }
}

/* Custom Toggler */
.custom-toggler {
    border: none;
    background: none;
}

.animated-toggler {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.icon-bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image-slider.jpg') center/cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-text {
    z-index: 1;
}

.name-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

.swe-text {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    animation: slideDown 1s ease forwards 0.5s;
}

.zoom-in {
    width: 100px;
    height: 3px;
    background: white;
    margin: 2rem auto;
    opacity: 0;
    transform: scaleX(0);
    animation: zoomIn 1s ease forwards 1s;
}

.landing-list-icon {
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 0 1rem;
}

.landing-list-icon:hover {
    transform: translateY(-5px);
    color: #ffd700;
}

/* Social links styling */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links .list-inline-item {
    margin: 0;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Mobile responsive styles for header social links */
@media (max-width: 768px) {
    .hero .social-links {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .hero .social-links .list-inline-item {
        margin: 0;
    }
    
    .landing-list-icon {
        font-size: 2.5rem !important;
        margin: 0;
        padding: 0.5rem;
    }
    
    .social-links a {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero .social-links {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .landing-list-icon {
        font-size: 2rem !important;
        margin: 0;
        padding: 0.25rem;
    }
    
    .social-links a {
        padding: 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero .social-links {
        gap: 0.25rem;
    }
    
    .landing-list-icon {
        font-size: 1.75rem !important;
    }
    
    .social-links a {
        padding: 0.25rem;
    }
}

/* About Section */
.about-me {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--light-bg);
    border: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

.about-me-img img {
    width: 100%;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-me-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-me-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
}

.about-me .row {
    height: 100%;
    align-items: center;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: white;
}

.skills-section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.skills-lists {
    margin-top: 3rem;
}

.list-col {
    text-align: center;
    margin-bottom: 2rem;
}

.list-col h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.list-col ul {
    list-style: none;
    padding: 0;
}

.list-col li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.1rem;
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background: var(--light-bg);
}

.experience-section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

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

.exp-desc p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.resume-btn {
    border: 2px solid #007bff;
    color: #007bff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.resume-btn:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-box {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-box-left {
    flex: 1;
    text-align: right;
    padding-right: 2rem;
}

.timeline-box-right {
    flex: 1;
    padding-left: 2rem;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--accent-color);
}

.timeline-company {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.timeline-role {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0;
}

.timeline-date {
    color: #666;
    font-size: 0.9rem;
}

.description {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.work-tags-list {
    margin-top: 1rem;
}

.work-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.25rem;
    display: inline-block;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: white;
}

.project-section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.project-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card .btn {
    align-self: flex-start;
}

.project-link {
    margin-top: 1rem;
}

.project-link .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.project-link .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.project-tech {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Education Section */
.education {
    padding: 100px 0;
    background: var(--light-bg);
}

.education-section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.education-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.contact-section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.contact-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-btn {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
}

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

.footer-text {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

/* Animation Classes */
.animation-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animation-element.fade-in-bottom {
    opacity: 1;
    transform: translateY(0);
}

.animation-element.slide-right {
    transform: translateX(-50px);
}

.animation-element.slide-left {
    transform: translateX(50px);
}

.animation-element.slide-right.fade-in-bottom,
.animation-element.slide-left.fade-in-bottom {
    transform: translateX(0);
}

.animation-element.fade-in-icon {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .name-text {
        font-size: 2.5rem;
    }

    .swe-text {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-box {
        flex-direction: column;
        text-align: left;
    }
    
    .timeline-box-left,
    .timeline-box-right {
        flex: none;
        padding: 0;
        text-align: left;
    }
    
    .timeline-icon {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-box-right {
        margin-left: 3rem;
    }
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

.slide-down {
    opacity: 0;
    transform: translateY(50px);
    animation: slideDown 1s ease forwards 0.5s;
}

.zoom-in {
    opacity: 0;
    transform: scaleX(0);
    animation: zoomIn 1s ease forwards 1s;
}

/* Additional Styles for Better UX */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling for all links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Hover effects */
.list-col:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.timeline-box:hover .timeline-icon {
    transform: translate(-50%, -50%) scale(1.2);
    transition: transform 0.3s ease;
}

/* Loading animation */
body.loading {
    overflow: hidden;
}

body.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.loading::after {
    content: 'Loading...';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 10000;
}