:root {
    --primary-color: #ff6f61;
    --secondary-color: #2c3e50;
    --accent-color: #ffd700;
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--secondary-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand, .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('./img.jpg') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e65b50;
    border-color: #e65b50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.card {
    background: #fff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-card ul, .cv-card ul {
    list-style: none;
    padding: 0;
}

.profile-card ul li, .cv-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
}

.profile-card ul li::before, .cv-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card .overlay a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.project-card .overlay a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.contact-form .form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-form .btn-primary {
    width: 100%;
    border-radius: 50px;
}

footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.social-icons a {
    color: #fff;
    margin: 0 15px;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .section {
        padding: 60px 0;
    }
    .project-card img {
        height: 150px;
    }
}