/* ============================================
     Theme Variables
     ============================================ */
:root {
    /* Soft/Lavender Palette */
    --lavender-100: #22223b;
    --lavender-200: #4a4e69;
    --lavender-300: #9a8c98;
    --lavender-400: #c9ada7;
    --lavender-500: #f2e9e4;

    /* Primary Theme Colors */
    --primary-color: #22223b;
    --secondary-color: #4a4e69;
    --accent-color: #9a8c98;

    --bg-color: #f2e9e4;
    --bg-light: #ffffff;

    --text-color: #22223b;
    --text-light: #4a4e69;

    --border-color: #c9ada7;

    /* "wine" aliases used throughout the rest of the stylesheet */
    --wine-100: #f2e9e4;
    --wine-300: #c9ada7;
    --wine-800: #4a4e69;
    --wine-900: #22223b;

    --main-font: 'Inter', 'Segoe UI', 'Arial', sans-serif;

    /* Shadows */
    --shadow: 0 2px 8px rgba(34, 34, 59, 0.08);
    --shadow-lg: 0 4px 16px rgba(34, 34, 59, 0.12);

    /* Transitions */
    --transition: all 0.3s ease;
}

body, html {
    font-family: var(--main-font);
    font-size: 17px;
    font-weight: 400;
    background: var(--bg-color);
    color: var(--text-color);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Global Styles & Reset
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand a:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* nav-menu-ref hover/active underline animation (alternative nav style) */
.nav-brand a {
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.1px;
    padding: 0.2rem 0.7rem;
    border-radius: 0.4rem;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nav-menu-ref a::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 100%;
    background: var(--wine-100);
    border-radius: 0.4rem;
    z-index: -1;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    transform: translate(-50%, -50%);
}

.nav-menu-ref a:hover::before,
.nav-menu-ref a.active::before {
    width: 120%;
    background: var(--wine-100);
}

.nav-menu-ref a:hover,
.nav-menu-ref a.active {
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(34, 34, 59, 0.07);
    transform: translateY(-2px) scale(1.04);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--accent-color) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--wine-300);
    box-shadow: var(--shadow-lg);
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   Quick Links Section
   ============================================ */
.quick-links {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.quick-links h2 {
    margin-bottom: 2rem;
    color: var(--bg-light);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Page Titles
   ============================================ */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
    padding-top: 2rem;
}

.page-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================
   About Page
   ============================================ */
.about-page {
    padding: 2rem 0 4rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.education-item {
    margin-top: 1.5rem;
}

.education-item h3 {
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.skills-column {
    flex: 1;
}

.skills-column h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.skills-column ul {
    padding-left: 20px;
}

.activities-list {
    list-style: none;
    margin-top: 1rem;
}

.activities-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.activities-list i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ============================================
   ADA University Link
   ============================================ */
.ada-university {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.ada-university:hover {
    color: #fff;
    background-color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
}

/* ============================================
   Hobbies Section
   ============================================ */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hobby-card {
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.hobby-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-image img {
    transform: scale(1.05);
}

.hobby-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 1.2rem 1.2rem 0.4rem;
    font-weight: 600;
}

.hobby-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 1.2rem 1.4rem;
    flex-grow: 1;
}

.certificate-preview{
    position: relative;
    display: inline-block;
}

.certificate-title{
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.preview-image{
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);

    width: 280px;

    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);

    opacity: 0;
    visibility: hidden;

    transition: .3s;
    z-index: 999;
}

.certificate-preview:hover .preview-image{
    opacity: 1;
    visibility: visible;
}
/* ============================================
   Projects Page
   ============================================ */
.projects-page {
    padding: 2rem 0 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background-color: var(--secondary-color);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
    padding: 2rem 0 4rem;
}

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

.contact-info h2,
.contact-social h2 {
    color: var(--wine-900);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

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

.contact-item h3 {
    color: var(--wine-900);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-icons-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--wine-900);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--wine-300);
}

.footer-section p {
    color: var(--wine-100);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--wine-100);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--wine-300);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--wine-300);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--wine-100);
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--wine-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    .about-section {
        padding: 2rem 1.5rem;
    }

    .about-section h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .about-section p {
        text-align: left;
        font-size: 0.95rem;
    }

    .handsome-image {
        height: 180px;
    }

    .mimi-thumbs img {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .about-section,
    .contact-item,
    .social-link {
        padding: 1rem;
    }

    .about-section {
        padding: 1.6rem 1.2rem;
    }

    .about-section h2 {
        font-size: 1.45rem;
    }

    .handsome-body h3 {
        font-size: 1rem;
    }

    .handsome-body p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .goals-section {
        flex-direction: column;
        text-align: left;
    }

    .goals-image {
        text-align: left;
        margin-top: 1.5rem;
    }
}