/* ----- CSS Reset & Variables ----- */
:root {
    /* Color Palette - Deep Teal Theme */
    --primary: #005f73;
    --primary-dark: #004d5a;
    --secondary: #0a9396;
    --accent: #94d2bd;
    --bg-main: #f5fbfb;
    --bg-light: #ffffff;
    --text-dark: #1b2a2f;
    --text-muted: #4a656a;
    --text-light: #ffffff;
    --border-color: #e0ecec;
    --shadow: 0 10px 30px rgba(0, 95, 115, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 95, 115, 0.15);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-main);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- Typography & Utilities ----- */
.section {
    padding: 5rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 95, 115, 0.2);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background-color: rgba(0, 95, 115, 0.05);
    transform: translateY(-3px);
}

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--secondary);
}

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

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary);
    color: var(--text-light) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.btn-nav::after {
    display: none;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

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

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

.social-links a:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.2;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 8px solid var(--bg-light);
    box-shadow: var(--shadow);
}

/* ----- About Section ----- */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ----- Experience Timeline ----- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--accent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(10, 147, 150, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* ----- Projects Section ----- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

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

.project-card:hover::before {
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ----- Skills Section ----- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tags span:hover {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ----- Education Section ----- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.edu-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    border-left: 4px solid var(--primary);
}

.edu-icon {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 3rem;
    color: rgba(0, 95, 115, 0.1);
}

.edu-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.edu-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.edu-date {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-list {
    list-style-type: none;
    padding: 0;
}

.cert-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.cert-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* ----- Contact Section ----- */
.contact-card {
    background-color: var(--primary);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    color: var(--text-light);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-card .section-title {
    color: var(--text-light);
}

.contact-card .section-title::after {
    background-color: var(--accent);
    left: 50%;
    transform: translateX(-50%);
}

.contact-card p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.contact-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    transform: translateY(-3px);
}

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

.footer-socials {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    box-shadow: none;
}

.footer-socials a:hover {
    background-color: var(--secondary);
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ----- Responsive Design ----- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-desc {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-content, .skills-wrapper, .education-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-stats {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .btn-nav {
        display: inline-block;
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -9px;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    .hero-image {
        width: 280px;
        height: 280px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
