/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #fb923c;
    --secondary-color: #f97316;
    --text-color: #f3f4f6;
    --light-text: #9ca3af;
    --background: #111827;
    --section-bg: #1f2937;
    --card-bg: #1f2937;
    --border-color: #374151;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background-color: var(--section-bg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--background) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero h2 {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin: 0.5rem;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn i {
    margin-right: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] .btn:hover {
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Projects Section */

.projects {
    background-color: var(--section-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    color: var(--primary-color);
    padding: 1rem;
    font-size: 1.25rem;
}

.project-card p {
    padding: 0 1rem;
    color: var(--light-text);
}

.project-tech {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--section-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

.project-links {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    background: var(--section-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #10b981;
    color: white;
    border: 1px solid #059669;
}

.form-message.error {
    display: block;
    background-color: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

/* Footer */
.footer {
    background: var(--section-bg);
    color: var(--text-color);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* High contrast mode support */
@media (forced-colors: active) {
    .footer {
        border-top: 1px solid CanvasText;
    }

    .social-links a {
        color: CanvasText;
    }

    .social-links a:hover {
        color: Highlight;
    }

    .form-message.success {
        border: 1px solid CanvasText;
        background-color: Canvas;
        color: CanvasText;
    }

    .form-message.error {
        border: 1px solid CanvasText;
        background-color: Canvas;
        color: CanvasText;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .about-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Leadership Section */
.leadership {
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
}

.leadership-content {
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.leadership-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leadership-category {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.leadership-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leadership-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.leadership-category:hover::before {
    opacity: 1;
}

.leadership-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.leadership-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.leadership-category:hover h3::after {
    width: 60px;
}

.leadership-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leadership-category li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.leadership-category li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.leadership-category li:hover::before {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .leadership {
        padding: 3rem 1rem;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .leadership-category {
        padding: 2rem;
    }
}