/* General Styles */
:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --text-color: #2d3436;
    --light-bg: #f5f6fa;
}

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

/* Navigation */
#mainNav {
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    padding: 1rem;
    position: absolute;
    width: 100%;
    z-index: 1030;
}

#mainNav.navbar-shrink {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-shrink .navbar-brand,
.navbar-shrink .nav-link {
    color: var(--primary-color) !important;
}

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

.hero .container {
    position: relative;
    z-index: 1;
    padding: 1rem;
    margin-top: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../assets/pattern.png');
    opacity: 0.1;
    z-index: 0;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero p {
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    margin: 0;
    min-width: 160px;
}

@media screen and (max-width: 576px) {
    #mainNav {
        padding: 0.5rem;
        position: absolute;
        top: 0;
    }

    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero .container {
        padding: 1rem;
        margin: 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        padding-top: 3rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        padding: 0.4rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }

    .language-switch {
        justify-content: center;
        margin: 0.5rem 0;
    }
}

@media screen and (max-width: 576px) {
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Navigation adjustments for mobile */
@media screen and (max-width: 576px) {
    #mainNav {
        padding: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        padding: 0.4rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }

    .language-switch {
        justify-content: center;
        margin: 0.5rem 0;
    }
}

/* About Section */
#about img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
}

/* Skills Section */
.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.skill-card ul li {
    margin: 0.5rem 0;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-info ul {
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.portfolio-info ul li {
    margin-bottom: 0.3rem;
    opacity: 0.8;
}

.portfolio-info ul li:before {
    content: "•";
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

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

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 4px solid white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

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

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

.timeline-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

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

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

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-content::after {
        left: -39px !important;
    }
}

/* Contact Section */
.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.form-control {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

/* CV Download Button */
.btn-cv {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-cv:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3);
}

.btn-cv i {
    transition: transform 0.3s ease;
}

.btn-cv:hover i {
    transform: translateY(-2px);
}

@media screen and (max-width: 576px) {
    .btn-cv {
        width: 100%;
        text-align: center;
    }
}

/* Language Switcher */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.language-switch .btn-link {
    color: white;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switch .btn-link:hover {
    transform: translateY(-2px);
}

.navbar-shrink .language-switch .btn-link,
.navbar-shrink .language-switch span {
    color: var(--primary-color);
}

.language-switch span {
    color: white;
    opacity: 0.5;
}

@media screen and (max-width: 992px) {
    .language-switch {
        margin: 0.5rem 0;
    }
    
    .language-switch .btn-link,
    .language-switch span {
        color: var(--primary-color);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero {
        text-align: center;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }

    .skill-card {
        margin-bottom: 2rem;
    }

    .portfolio-item {
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .navbar-collapse {
        background: rgba(0,0,0,0.9);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .navbar-shrink .navbar-collapse {
        background: white;
    }

    #about img {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }

    .skill-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0.5rem 0;
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    section {
        padding: 3rem 1rem !important;
    }

    .skill-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .portfolio-item {
        margin-bottom: 2rem;
    }

    .portfolio-info {
        padding: 1rem;
    }

    .portfolio-info h4 {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 1rem;
    }
}

/* Fix for navbar on mobile */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler i {
    color: white;
    font-size: 1.5rem;
}

.navbar-shrink .navbar-toggler i {
    color: var(--primary-color);
}

/* Ensure content doesn't hide under navbar */
@media screen and (max-width: 576px) {
    body {
        padding-top: 66px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix for sections padding */
section {
    padding: 5rem 0;
}

/* Animation duration */
[data-aos] {
    transition-duration: 800ms !important;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Utility Classes */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #0573c7;
    border-color: #0573c7;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}
