/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #f0c05a;       /* Golden Yellow */
    --secondary-color: #fffdee;      /* Cream */
    --accent-color: #ffffff;         /* White */
    --text-color: #111111;           /* Dark Gray */
    --light-text: #444444;           /* Medium Gray */
    --bg-color: #fffdf5;             /* Light Cream */
    --section-padding: 5rem 0;
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    cursor: pointer;
    text-align: center;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    font-size: 1rem;
}

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

.primary-btn:hover {
    background-color: #e0b347;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--accent-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.hero-image {
    flex: 1;
    height: 450px;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--accent-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    height: 400px;
    background: url('images/profile-image.png') center/cover no-repeat;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.experience-card {
    background-color: var(--accent-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 900px;
    margin: 0 auto;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.experience-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.experience-subtitle {
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.experience-duration {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.experience-card:hover .divider {
    width: 100px;
}

.experience-list {
    list-style: disc;
    padding-left: 1.5rem;
}

.experience-list li {
    margin-bottom: 0.8rem;
    color: var(--light-text);
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
    background-color: var(--accent-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skills-category {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.skills-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.skills-list i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

/* Education Section */
.education {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.education-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.education-subtitle {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.education-date {
    font-weight: 600;
    color: var(--primary-color);
}

/* Certifications Section */
.certifications {
    padding: var(--section-padding);
    background-color: var(--accent-color);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.certification-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certification-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.cert-issuer {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.cert-date {
    font-weight: 500;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--light-text);
}

.contact-form {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(240, 192, 90, 0.2);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e0b347;
    transform: translateY(-3px);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form validation styles */
.error {
    border-color: #ff6b6b !important;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
}

/* Page load animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Unique Wix-style decorative elements */
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--accent-color);
    border-top-left-radius: 50% 50%;
    border-top-right-radius: 50% 50%;
    z-index: 2;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--bg-color);
    border-bottom-left-radius: 50% 50%;
    border-bottom-right-radius: 50% 50%;
    z-index: 2;
}

/* Media Queries - UPDATED FOR MOBILE IMAGES */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 2rem auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--accent-color);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    /* FIXED IMAGES FOR MOBILE */
    .hero-image {
        height: 300px;
        width: 100%;
        display: block;
    }
    
    .about-image {
        height: 300px;
        width: 100%;
        display: block;
    }
    
    .education-cards {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .certification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    /* EXTRA SMALL DEVICE ADJUSTMENTS */
    .hero-image {
        height: 250px;
    }
    
    .about-image {
        height: 250px;
    }
}

/* Wix-style decorative elements and animations */
.skills-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    opacity: 0.2;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.skills-category {
    position: relative;
    overflow: hidden;
}

.education-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.education-card {
    position: relative;
    overflow: hidden;
}

.education-card:hover::after {
    width: 100%;
}

/* Custom cursive underline style for section titles */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--primary-color);
    margin-top: 15px;
    border-radius: 5px;
}

/* Special Wix-style hover effects */
.certification-card {
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.certification-card:hover {
    border-left: 3px solid var(--primary-color);
}

/* Special styling for buttons to match Wix template */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: all 0.3s;
}

.btn:hover::before {
    left: 0;
}

/* Custom yellow floating circles animation */
.hero::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    top: 30%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Add second floating element */
.about::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    bottom: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

/* Fade animation for form success */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}