:root {
    /* Improved Color Palette */
    --primary: #00695C;         /* Deep teal */
    --primary-light: #439889;   /* Medium teal */
    --primary-dark: #004D40;    /* Dark teal */
    --secondary: #1E3A39;       /* Dark background */
    --secondary-dark: #0D1F1C;  /* Almost black with green undertone */
    --accent: #4DB6AC;          /* Light teal */
    --accent-bright: #64FFDA;   /* Bright teal for highlights */
    --text-light: #F5F5F5;      /* Off-white text */
    --text-dark: #263238;       /* Near-black text */
    --gold: #FFD54F;            /* Gold accent */
    --error: #FF5252;           /* Error red */
    --success: #69F0AE;         /* Success green */
    --gray-light: #B0BEC5;      /* Light gray */
    --gray-dark: #455A64;       /* Dark gray */
    
    --transition-speed: 0.3s;   /* Common transition speed */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Standard shadow */
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25); /* Hover shadow */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.75rem;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2rem;
    color: var(--primary-light);
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
}

h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-bright);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: block;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.position {
    display: block;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--accent-bright);
    font-weight: 300;
}

/* Navigation */
.nav-container {
    background-color: var(--secondary);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav a {
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease;
}

.nav a:hover::before {
    transform: translateX(0);
}

.nav a:hover {
    background-color: rgba(77, 182, 172, 0.1);
    color: var(--accent-bright);
}

/* Main content */
.main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Expertise logo */
.expertise-container {
    text-align: center;
    margin: 1rem 0 2rem;
}

.expertise-globe {
    width: 100px;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
}

.expertise-globe:hover {
    transform: rotate(360deg);
}

.expertise-text {
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    background-color: var(--secondary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

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

/* Summary section */
.summary {
    background-color: var(--secondary-dark);
    border: 1px solid rgba(77, 182, 172, 0.2);
}

.highlight {
    color: var(--accent-bright);
    font-weight: 500;
}

/* Skills section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.skill-pill {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.25rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary-dark));
    border-radius: 5px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 0.85rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2);
    z-index: 1;
}

.timeline-content {
    background-color: rgba(30, 58, 57, 0.8);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    border-left: 3px solid var(--accent);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-company span {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.timeline-date {
    display: inline-block;
    background-color: rgba(0, 105, 92, 0.3);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(77, 182, 172, 0.2);
}

.timeline-description {
    color: var(--text-light);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Contact */
.contact {
    text-align: center;
    margin: 3rem 0 2rem;
}

.contact p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-secondary:hover {
    background-color: rgba(77, 182, 172, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--accent-bright), transparent);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.cowbell-container {
    margin: 1rem 0;
}

.cowbell-gif {
    max-width: 80px;
    transition: all 0.3s ease;
}

.cowbell-gif:hover {
    transform: scale(1.2) rotate(5deg);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Additional styles */
.contact-margin-top {
    margin-top: 1.5rem;
}

/* Responsive design */
@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        margin-left: -1.5px;
    }

    .timeline-item {
        padding-left: 0;
        margin-bottom: 3rem;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 2rem;
    }

    .timeline-item:nth-child(odd) {
        margin-right: 50%;
        padding-right: 2rem;
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        border-left: none;
        border-right: 3px solid var(--accent);
    }

    .timeline-item::before {
        left: 50%;
        margin-left: -9px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 1.5rem;
    }
}