/*
Portfolio Stylesheet
Color Palette:
  Primary (Deep Blue): #2C3E50 (Charcoal Blue)
  Accent (Vibrant Teal): #1ABC9C (Turquoise) / #00A896 (Persian Green for darker elements)
  Secondary Accent (Warm): #E67E22 (Carrot Orange for call to actions or highlights)
  Background (Light Neutral): #FFFFFF (White), #F4F7F6 (Off-white/Light Gray)
  Text (Dark Gray): #34495E (Wet Asphalt), #555 (Medium Gray for less emphasis)
Font: Relies on Bootstrap's default (usually sans-serif like Nunito or similar)
*/

/* --- Custom Navbar --- */
#main-navbar {
    background-color: transparent;
    transition: all 0.4s ease;
    padding: 20px 0;
    box-shadow: none;
    transform: translateY(0);
}

#main-navbar.navbar-scrolled {
    background-color: rgba(44, 62, 80, 0.95); /* Semi-transparent Primary color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transform: translateY(0);
    animation: fadeInDown 0.4s ease-in-out;
}

#main-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
}

#main-navbar .navbar-brand i {
    color: #1ABC9C;
    margin-right: 5px;
}

#main-navbar .nav-link {
    color: #fff;
    font-weight: 600;
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

#main-navbar .nav-link:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: #1ABC9C;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

#main-navbar .nav-link:hover:before {
    visibility: visible;
    width: calc(100% - 30px);
}

#main-navbar .nav-link:hover {
    color: #1ABC9C;
    transform: translateY(-2px);
}

#main-navbar .nav-link.active {
    background-color: transparent;
    color: #1ABC9C;
    position: relative;
}

#main-navbar .nav-link.active:before {
    content: "";
    position: absolute;
    width: calc(100% - 30px);
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: #1ABC9C;
    visibility: visible;
}

#main-navbar .nav-link.active:hover {
    background-color: transparent;
    color: #16A085; /* Darker shade of accent */
}

#main-navbar .nav-link.active:hover:before {
    background-color: #16A085;
}

#main-navbar .navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
}

#main-navbar .navbar-toggler:focus {
    box-shadow: none;
}

#main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Adjust margin-top for main content to account for fixed navbar */
main {
    padding-top: 0;
}

/* --- Global & Typography --- */
body {
    font-family: 'Nunito', sans-serif; /* Ensure Nunito or a similar clean sans-serif is loaded */
    color: #34495E;
    line-height: 1.7;
    background-color: #FFFFFF; /* Clean white background */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2C3E50;
    margin-top: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 70px;
    height: 4px;
    background: #1ABC9C; /* Accent color */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.sub-section-title {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 25px;
    border-bottom: 2px solid #E8E8E8;
    padding-bottom: 10px;
}

.py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.bg-light {
    background-color: #F4F7F6 !important; /* Subtle off-white for alternating sections */
}

.container {
    max-width: 1140px; /* Standard container width */
}

/* --- Buttons --- */
.btn-primary {
    background-color: #1ABC9C;
    border-color: #1ABC9C;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #16A085; /* Darker shade of accent */
    border-color: #16A085;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    color: #1ABC9C;
    border-color: #1ABC9C;
    padding: 10px 25px;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #1ABC9C;
    border-color: #1ABC9C;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, #2C3E50 0%, #40abe8 100%);
    color: #fff;
    padding: 140px 0 100px; /* Added extra padding on top for the fixed navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* For animation containment */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #E0E0E0;
    font-weight: 300;
}

.profile-picture-hero {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #1ABC9C; /* Accent border */
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.profile-picture-placeholder-hero {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #4A4A4A;
    border: 5px solid #1ABC9C;
    margin-bottom: 30px;
    display: inline-block;
}

.btn-cv i {
    margin-left: 8px;
}

/* --- About Section --- */
#about .section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center; /* Or justify */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#about strong {
    color: #2C3E50;
}
#about .fa-map-marker-alt {
    color: #1ABC9C;
    margin-right: 8px;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2C3E50;
}

.progress-bar-container {
    background-color: #EAEAEA;
    border-radius: 25px;
    height: 25px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background-color: #1ABC9C; /* Accent color */
    height: 100%;
    line-height: 25px;
    text-align: right;
    color: white;
    font-weight: bold;
    border-radius: 25px 0 0 25px; /* Smooth edge */
    transition: width 1.5s ease-in-out;
    width: 0; /* Initial width for animation */
    position: relative;
}

.progress-bar span {
    padding-right: 10px;
    font-size: 0.9em;
}

/* --- Timeline (Experience & Education) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #1ABC9C; /* Accent color */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after { /* The circle on the timeline */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #1ABC9C;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the item to the left */
.timeline-item:nth-child(odd) {
    left: 0;
}

/* Place the item to the right */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Fix the circle for items on the right side */
.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: #2C3E50;
    margin-bottom: 5px;
}
.timeline-content h5 {
    font-size: 1rem;
    color: #E67E22; /* Secondary accent for dates/company */
    margin-bottom: 10px;
    font-weight: 500;
}
.timeline-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44,62,80,0.12);
}

.project-card h4 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 10px;
}
.project-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}
.project-card .technologies .badge {
    background-color: #E0E0E0;
    color: white;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8em;
    padding: 5px 8px;
}

/* --- Languages & Tools Section --- */
.list-styled {
    list-style: none;
    padding-left: 0;
}
.list-styled li {
    padding: 8px 0;
    border-bottom: 1px dashed #E0E0E0;
    font-size: 1rem;
}
.list-styled li:last-child {
    border-bottom: none;
}
.list-styled strong {
    color: #2C3E50;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.service-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44,62,80,0.1);
}
.service-icon {
    font-size: 2.5rem;
    color: #1ABC9C;
    margin-bottom: 15px;
}
.service-item h4 {
    font-size: 1.3rem;
    color: #2C3E50;
}

/* --- Contact Section --- */
.contact-section {
    background-color: #2C3E50; /* Dark background for contrast */
    color: #fff;
}
.contact-section .section-title,
.contact-section .section-title::after {
    color: #fff;
    border-color: #1ABC9C;
}
.contact-section .section-title::after {
    background: #1ABC9C;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: #1ABC9C; /* Accent color on hover */
}
.contact-link i {
    margin-right: 8px;
}
.social-links-contact a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links-contact a:hover {
    color: #1ABC9C;
    transform: scale(1.1);
}

/* Contact Form Styles */
.contact-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 8px;
    height: 100%;
}

.contact-info h3,
.contact-form-wrapper h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after,
.contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #1ABC9C;
    bottom: 0;
    left: 0;
}

.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #fff;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #1ABC9C;
}

.contact-form label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-form .btn-primary {
    background-color: #1ABC9C;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info p {
    /*margin-bottom: 15px;*/
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    width: 20px;
    color: #1ABC9C;
}

.contact-info .social-links-contact {
    margin-top: 20px;
}

.contact-info .social-links-contact a {
    margin: 0 10px 0 0;
}

/* --- Animations --- */
/* Initial state for scroll animations */
.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animated-section.fadeInUp-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Simple FadeIn animations for Hero section */
.animated.fadeInDown {
    animation: fadeInDown 1s ease-out forwards;
}
.animated.fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}
.delay-1s { animation-delay: 0.5s; opacity: 0; }
.delay-2s { animation-delay: 1s; opacity: 0; }
.delay-3s { animation-delay: 1.5s; opacity: 0; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Footer (from Bootstrap layout is likely fine, this is fallback/override) --- */
/* Ensure footer from layouts/app.blade.php is styled or override here if needed */
/* Example: 
footer {
    background: #343a40;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 0; /* if portfolio-container is the full page wrapper */
/* }
*/

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .tagline {
        font-size: 1.2rem;
    }
    .profile-picture-hero {
        width: 150px;
        height: 150px;
    }
    .section-title {
        font-size: 2rem;
    }

    /* Timeline adjustments for smaller screens */
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Space for the dot and line */
        padding-right: 15px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 10px; /* Adjust dot position */
    }
} 