:root {
    --primary-color: #1a9c8f;  /* Lighter teal that works well with dark blue */
    --secondary-color: #272936;  /* The dark blue-gray you requested */
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --accent-color: #0d9488;  /* Keeping the original teal as an accent */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

.logo-center {
    text-align: center;
}

.underline-none {
    text-decoration: none;
}

.uppercase {
    text-transform: uppercase;
}

.text-bold {
    font-weight: 700 !important;
}

.text-xs {
    font-size: 0.75rem !important;
    line-height: 1;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25;
}

.text-base {
    font-size: 1rem !important;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.5;
}

.text-xl {
    font-size: 1.5rem !important;
    line-height: 1.5;
}

.text-2xl {
    font-size: 2rem !important;
    line-height: 1.5;
}

.text-3xl {
    font-size: 2.5rem !important;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

@media (min-width: 768px) {
    .navbar .container {
        justify-content: space-between;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1001;
}

/* Mobile menu button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

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

/* Active state for nav links */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    /* Animate menu button to X when active */
    .menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Add overlay when menu is open */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--secondary-color) url('/assets/img/001-mac.jpeg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(39, 41, 54, 0.85), rgba(26, 156, 143, 0.75));
    z-index: 1;
}

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

.hero .container {
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

/* Sections */
section {
    padding: 8rem 0 4rem;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-img {
    flex: 1;
    position: relative;
    z-index: 1;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--light-bg);
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 156, 143, 0.1) 0%, rgba(4, 120, 87, 0.1) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.img-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.2);
}

.img-wrapper:hover .profile-img {
    transform: scale(1.03);
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.about-text {
    flex: 1.2;
    padding: 1.5rem 0;
    transform: translateX(20px);
    opacity: 0;
    animation: slideIn 0.8s ease 0.2s forwards;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
}

.about-details {
    margin: 2.5rem 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(13, 148, 136, 0.2);
}

.detail-item i {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    min-width: 30px;
    text-align: center;
}

.detail-item-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-weight: 600;
}

.detail-item-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 2px solid var(--primary-color);
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}

.btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-content {
        gap: 4rem;
    }
}

@media (max-width: 992px) {
    .about {
        padding: 6rem 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 3.5rem;
        align-items: center;
    }
    
    .about-img {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
        transform: translateY(-20px);
        opacity: 0;
        animation: slideUp 0.8s ease forwards;
    }
    
    .about-text {
        text-align: center;
        transform: translateY(20px);
        opacity: 0;
        animation: slideUp 0.8s ease 0.2s forwards;
    }
    
    @keyframes slideUp {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .about-details {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .detail-item {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 4rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.projects h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

/* Projects Page */
.projects-page {
    padding: 6rem 0;
    background-color: var(--white);
}

.projects-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.projects-page h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

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

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid var(--primary-color);
}

.btn-xs {
    padding: 0.2rem 0.5rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
}

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

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

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

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

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact textarea {
    height: 150px;
    resize: vertical;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

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

/* Footer */
footer {
    background: var(--light-bg);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
}
