:root {
    --primary-coffee: #6F4E37;  /* Rich coffee brown */
    --secondary-coffee: #8B6B61;  /* Lighter coffee brown */
    --dark-coffee: #4B3621;  /* Dark coffee */
    --light-coffee: #D2B48C;  /* Light coffee/tan */
    --cream: #F5F5DC;  /* Cream color */
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    background-color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-coffee);
    color: var(--white);
    border: 2px solid var(--primary-coffee);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-coffee);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-coffee);
    border: 2px solid var(--primary-coffee);
}

.secondary-btn:hover {
    background-color: var(--primary-coffee);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--cream);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(245, 245, 220, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-coffee);
    transition: var(--transition);
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    padding-left: 2rem;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links li:first-child {
    margin-left: 0;
}

.nav-links li:last-child {
    margin-right: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-coffee);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-coffee);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-coffee);
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(111, 78, 55, 0.7) 0%,
        rgba(75, 54, 33, 0.8) 100%
    );
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--cream);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--cream);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--cream);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .primary-btn,
.hero-buttons .secondary-btn {
    background-color: var(--primary-coffee);
    color: var(--cream);
    border: 2px solid var(--primary-coffee);
}

.hero-buttons .primary-btn:hover,
.hero-buttons .secondary-btn:hover {
    background-color: transparent;
    color: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--cream);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.about h2 {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--primary-coffee);
    font-size: 2.5rem;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
}

.about-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-tagline span {
    background-color: var(--light-coffee);
    color: var(--primary-coffee);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    animation: slideIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.about-tagline span:nth-child(1) {
    animation-delay: 0.2s;
}

.about-tagline span:nth-child(2) {
    animation-delay: 0.4s;
}

.about-tagline span:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 600;
}

.cv-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.cv-buttons .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(111, 78, 55, 0.9);  /* More muted coffee color */
    color: var(--cream);
    border: 2px solid rgba(111, 78, 55, 0.9);
}

.cv-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(245, 245, 220, 0.9);  /* More muted cream color */
    color: rgba(111, 78, 55, 0.9);
}

@media (max-width: 768px) {
    .cv-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cv-buttons .btn {
        width: 200px;
        text-align: center;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-coffee) 0%, var(--white) 100%);
    opacity: 0.3;
    z-index: 0;
}

.skills h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-coffee);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-coffee);
    border-radius: 2px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.skill-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.1);
    border: 2px solid var(--primary-coffee);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--light-coffee) 0%, var(--white) 100%);
    opacity: 0.1;
    z-index: 0;
}

.skill-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 78, 55, 0.2);
}

.skill-section h3 {
    color: var(--primary-coffee);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
    z-index: 1;
}

.skill-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-coffee);
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.skill-card {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-coffee);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-coffee);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 10px 20px rgba(111, 78, 55, 0.2);
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.skill-card i.fa-java {
    color: #007396;
}

.skill-card i.fa-python {
    color: #3776AB;
}

.skill-card i.fa-html5 {
    color: #E34F26;
}

.skill-card i.fa-css3-alt {
    color: #1572B6;
}

.skill-card i.fa-js {
    color: #F7DF1E;
}

.skill-card i.fa-brain {
    color: #F7931E;  /* Scikit-Learn orange */
}

.skill-card i.fa-project-diagram {
    color: #FF6F00;  /* TensorFlow orange */
}

.skill-card i.fa-network-wired {
    color: #D00000;  /* Keras red */
}

.skill-card i.fa-chart-line {
    color: #2B579A;  /* XGBoost blue */
}

.skill-card i.fa-table {
    color: #150458;  /* Pandas dark blue */
}

.skill-card i.fa-calculator {
    color: #4D77CF;  /* NumPy blue */
}

.skill-card i.fa-chart-bar {
    color: #11557C;  /* Matplotlib blue */
}

.skill-card i.fa-chart-pie {
    color: #5B8AC6;  /* Seaborn blue */
}

.skill-card i.fa-eye {
    color: #5C3EE8;  /* OpenCV purple */
}

.skill-card i.fa-image {
    color: #2E8B57;  /* Mahotas green */
}

.skill-card i.fa-git-alt {
    color: #F05032;  /* Git orange-red */
}

.skill-card i.fa-google {
    color: #4285F4;  /* Google blue */
}

.skill-card i.fa-code {
    color: #007ACC;  /* VS Code blue */
}

.skill-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.skill-card h4 {
    color: var(--primary-coffee);
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.skill-card:hover h4 {
    transform: scale(1.1);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: var(--cream);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-coffee);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    flex: 1;
    padding: 1rem;
}

.project-content h3 {
    color: var(--primary-coffee);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--dark-coffee);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background-color: var(--light-coffee);
    color: var(--primary-coffee);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-coffee);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-coffee);
    font-size: 3rem;
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-coffee);
    margin-right: 1.5rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--primary-coffee);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--dark-coffee);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-coffee);
    box-shadow: 0 0 0 2px rgba(111, 78, 55, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-coffee);
    color: var(--cream);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cream);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-coffee);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--cream);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }

    .about h2 {
        text-align: center;
    }

    .about-tagline {
        justify-content: center;
    }

    .contact-content {
        flex-direction: column;
    }

    .about-image {
        margin-top: 2rem;
    }
    
    .about-image img {
        max-width: 300px;
    }

    .project-card,
    .project-card.reverse {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
    }

    .project-content {
        width: 100%;
    }

    .skill-cards {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .skill-card i {
        font-size: 2rem;
    }
    
    .skill-section {
        padding: 30px;
    }
    
    .skill-section:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-tagline span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--cream);
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-coffee);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-coffee);
    color: var(--primary-coffee);
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
    }
    
    .dropdown-menu a {
        padding: 10px 0;
    }
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--white);
}

.education h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-coffee);
    font-size: 3rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-item {
    background: var(--cream);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-coffee);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.education-item h3 {
    color: var(--primary-coffee);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.education-item p {
    color: var(--dark-coffee);
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1.2rem;
}

.education-item .degree {
    font-weight: 600;
    color: var(--dark-coffee);
    font-size: 1.3rem;
}

.education-item .duration {
    color: var(--secondary-coffee);
    font-style: italic;
    font-size: 1.2rem;
}

.education-item .details {
    font-weight: 500;
    font-size: 1.2rem;
}

.education-item .location {
    color: var(--secondary-coffee);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
}

.workshop-item ul li {
    color: var(--text-color);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    list-style-type: none;
}

.workshop-item ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
} 