/* Global Styles */
:root {
    --bg-color: #f9fafb;
    /* Light bluish grey */
    --text-primary: #111827;
    /* Near black */
    --text-secondary: #6b7280;
    /* Grey */
    --accent-blue: #1e3a8a;
    /* Dark blue */
    --accent-hover: #1e40af;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --btn-primary-bg: #1e3a8a;
    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #374151;
    --skill-tag-bg: #f3f4f6;
    --icon-green: #10b981;
    --icon-teal: #14b8a6;
    --icon-blue: #3b82f6;
    --icon-cyan: #06b6d4;
    --font-main: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Helper Classes */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: white;
    border: 1px solid var(--btn-primary-bg);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: white;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(240, 244, 248, 0.2) 100%);
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #111827;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero .description {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.img-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1.5;
    font-size: 1.05rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.project-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.icon-link {
    color: var(--text-secondary);
    font-size: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background-color: var(--skill-tag-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dropdown/Expandable Content */
.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    border-top: 1px solid transparent;
    font-size: 0.9rem;
    color: #4b5563;
}

.project-card.active .project-details {
    max-height: 200px;
    /* Adjust according to content */
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top-color: #f3f4f6;
}

.all-projects-btn-container {
    text-align: center;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-header h3 {
    font-size: 1.1rem;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.green-icon {
    background-color: var(--icon-green);
}

.blue-icon {
    background-color: var(--icon-blue);
}

.teal-icon {
    background-color: var(--icon-teal);
}

.cyan-icon {
    background-color: var(--icon-cyan);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--skill-tag-bg);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #111827;
}

.footer-column p,
.footer-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.center-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--text-primary);
    background-color: #f9fafb;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        justify-content: center;
    }

    .img-placeholder {
        width: 200px;
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .center-column {
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}