/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brown-900: #1c1917;
    --brown-800: #292524;
    --brown-700: #44403c;
    --brown-600: #57534e;
    --brown-500: #78716c;
    --brown-400: #a8a29e;
    --brown-300: #d6d3d1;
    --brown-200: #e7e5e4;
    --brown-100: #f5f5f4;
    --brown-50: #fafaf9;
    
    --accent-brown: #d2691e;
    --light-brown: #deb887;
    --dark-brown: #8b4513;
    
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--brown-800);
    background-color: var(--brown-50);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brown-800);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid var(--brown-200);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--brown-600);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-brown);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--brown-800);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--brown-50);
}

.hero-content {
    max-width: 800px;
}

.hero-profile {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-brown);
    box-shadow: 0 8px 24px rgba(210, 105, 30, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.25);
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -2px;
    line-height: 0.9;
}

.hero-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--brown-600);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    line-height: 1.4;
}

.hero-featured {
    margin-bottom: 2rem;
}

.featured-text {
    font-size: 0.8rem;
    color: var(--brown-500);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.featured-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.featured-item {
    font-size: 0.9rem;
    color: var(--brown-400);
    padding: 0.5rem 1rem;
    border: 1px solid var(--brown-300);
    border-radius: 4px;
    background: var(--white);
}

.hero-description {
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-brown);
    margin-bottom: 0.5rem;
}

.hero-stat-item .stat-text {
    font-size: 0.9rem;
    color: var(--brown-500);
    font-weight: 500;
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--brown-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--brown-600);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--brown-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    border: 2px solid var(--brown-200);
    border-radius: 12px;
    background: var(--white);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
    border-color: var(--accent-brown);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--brown-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--brown-700);
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-brown);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Expertise Section */
.expertise-section {
    padding: 100px 0;
    background: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-card {
    padding: 2rem;
    border: 1px solid var(--brown-200);
    border-radius: 8px;
    background: var(--brown-50);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.expertise-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--brown-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech {
    background: var(--accent-brown);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Work Section */
.work-section {
    padding: 100px 0;
    background: var(--brown-50);
}

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.project-image {
    height: 300px;
    background: linear-gradient(135deg, var(--brown-800) 0%, var(--brown-700) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-placeholder h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-placeholder p {
    color: var(--brown-300);
    font-size: 1rem;
}

.project-details h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.project-details p {
    color: var(--brown-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--accent-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--dark-brown);
}

.other-projects {
    margin-top: 4rem;
}

.other-projects h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 2rem;
    border: 1px solid var(--brown-200);
    border-radius: 8px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.featured {
    border: 2px solid var(--accent-brown);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-card h4 {
    color: var(--black);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-card p {
    color: var(--brown-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tech-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tech-small {
    background: var(--brown-200);
    color: var(--brown-800);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Experience Section */
.experience-section {
    padding: 100px 0;
    background: var(--white);
}

.certifications {
    margin-bottom: 4rem;
}

.certifications h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.cert-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-badge {
    padding: 2rem;
    background: var(--brown-50);
    border-radius: 12px;
    border: 2px solid var(--accent-brown);
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-badge h4 {
    color: var(--black);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cert-badge p {
    color: var(--brown-600);
    font-size: 0.9rem;
}

.other-courses {
    margin-bottom: 4rem;
}

.other-courses h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--brown-50);
    border-radius: 8px;
    border-left: 4px solid var(--accent-brown);
}

.course-icon {
    color: var(--accent-brown);
    font-weight: bold;
    font-size: 1.2rem;
}

.course-name {
    flex: 1;
    color: var(--brown-800);
    font-weight: 500;
}

.course-platform {
    color: var(--brown-500);
    font-size: 0.9rem;
    font-style: italic;
}

.education {
    margin-top: 4rem;
}

.education h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.education-item {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--brown-50);
    border-radius: 12px;
    border: 2px solid var(--brown-300);
}

.education-item h4 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--accent-brown);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-item .description {
    color: var(--brown-600);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    margin-top: 4rem;
}

.testimonials h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    padding: 2rem;
    background: var(--brown-50);
    border-radius: 8px;
    border-left: 4px solid var(--accent-brown);
}

.testimonial p {
    color: var(--brown-700);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author h4 {
    color: var(--black);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    color: var(--brown-500);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--brown-800);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    color: var(--brown-300);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--brown-600);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-method h3 {
    color: var(--white);
    margin-bottom: 0.3rem;
}

.contact-method p {
    color: var(--brown-300);
    margin: 0;
}

.contact-method a {
    color: var(--brown-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--accent-brown);
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--brown-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--brown-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--brown-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-brown);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--brown-900);
    color: var(--brown-300);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--brown-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-brown);
}

.footer-section a {
    color: var(--brown-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-brown);
}

.footer-bottom {
    border-top: 1px solid var(--brown-700);
    padding-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 998;
        height: calc(100vh - 80px);
        border-top: 1px solid var(--brown-200);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .featured-project {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }

    .services-section,
    .expertise-section,
    .work-section,
    .experience-section,
    .contact {
        padding: 60px 0;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .featured-logos {
        gap: 0.8rem;
    }

    .featured-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}