:root {
    --primary: #ff6b6b;
    --secondary: #2d3436;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.page-section {
    padding: 5rem 0;
}

/* Navbar */
#mainNav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#mainNav .navbar-brand {
    color: var(--secondary);
}

#mainNav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 1rem;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary);
}

/* Header */
.masthead {
    min-height: 100vh;
    background-color: #0f172a;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%), 
                      url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    padding-top: 8rem;
    padding-bottom: 5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.masthead h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -1px;
    line-height: 1.1;
}

.masthead .lead {
    color: #94a3b8;
    font-size: 1.25rem;
    max-width: 600px;
}

.hero-img-container {
    position: relative;
    z-index: 1;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    background: var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    opacity: 0.2;
    animation: morphing 15s infinite alternate ease-in-out;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.hero-profile-img {
    width: 100%;
    max-width: 450px;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.hero-profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

#floatingLangBtn {
    color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 700;
}

#floatingLangBtn:hover {
    background-color: var(--secondary);
    color: #fff;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        margin-left: -1px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        margin-left: -10px;
    }
}

.timeline-content {
    position: relative;
    padding-left: 50px;
}

@media (min-width: 768px) {
    .timeline-content {
        width: 45%;
        padding-left: 0;
    }
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 55%;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }
}

.timeline-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Features/Branding */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card {
    height: 100%;
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

/* Logos */
.client-logo {
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
    max-height: 40px;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Project Card */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
}

.project-card .card-img-top img {
    transition: all 0.5s ease;
}

.project-card:hover .card-img-top img {
    transform: scale(1.1);
}

/* Contact Box */
.contact-box {
    transition: all 0.3s ease;
}

.contact-box:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.btn-social {
    width: 40px;
    height: 40px;
    line-height: 38px;
    padding: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    transition: all 0.3s;
}

.btn-social i {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
}

.btn-social:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: rotate(360deg);
}

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

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

.text-primary {
    color: var(--primary) !important;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #212529;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.floating-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(238, 82, 83, 0.15);
}

.floating-btn.edit-btn {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.floating-btn.edit-btn:hover {
    background: #ee5253;
    color: #ffffff;
}
