/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0095f6;
    --secondary-color: #f77737;
    --text-dark: #262626;
    --text-light: #999;
    --border-color: #dbdbdb;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Instagram-style Header */
.ig-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.75rem 0;
}

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

.ig-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.ig-logo i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ig-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.ig-nav-icons {
    display: none;
}

.icon-link {
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.icon-link:hover {
    color: var(--primary-color);
}

/* Profile Section */
.ig-profile-section {
    margin-top: 60px;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ig-profile-container {
    max-width: 935px;
    margin: 0 auto;
}

.ig-profile-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.ig-profile-pic {
    flex-shrink: 0;
}

.ig-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ig-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ig-username {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ig-bio {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ig-bio-desc {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* Buttons */
.ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.ig-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.ig-btn-primary:hover {
    background-color: #0980d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
}

.ig-btn-download {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem;
}

.ig-btn-download:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Section Styles */
.ig-section {
    padding: 4rem 1rem;
    max-width: 935px;
    margin: 0 auto;
}

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

.ig-section-container {
    width: 100%;
}

.ig-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.ig-subsection-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cards */
.ig-about-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.ig-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ig-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 149, 246, 0.1);
}

.ig-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.ig-card-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ig-card-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ig-card-subtitle {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.ig-card-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.ig-card-list li {
    padding: 0.4rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.ig-card-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.ig-text {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1rem;
}

/* Projects Grid */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ig-project-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.ig-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.ig-project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.ig-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ig-project-card:hover .ig-project-image img {
    transform: scale(1.05);
}

.ig-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-project-card:hover .ig-project-overlay {
    opacity: 1;
}

.ig-project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ig-project-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.ig-project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ig-tech {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: auto;
}

.ig-project-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Skills */
.ig-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ig-skill-category {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ig-skill-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.ig-skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ig-skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Footer */
.ig-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.ig-footer-content {
    max-width: 935px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ig-footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ig-footer-section ul {
    list-style: none;
}

.ig-footer-section ul li {
    margin-bottom: 0.5rem;
}

.ig-footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.ig-footer-section a:hover {
    color: var(--primary-color);
}

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

.ig-social-links a {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ig-social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.ig-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .ig-header-content {
        padding: 0 1rem;
    }

    .ig-nav {
        display: none;
    }

    .ig-nav-icons {
        display: flex;
    }

    .ig-section-title {
        font-size: 1.5rem;
    }

    .ig-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .ig-avatar {
        width: 120px;
        height: 120px;
    }

    .ig-username {
        font-size: 1.8rem;
    }

    .ig-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .ig-project-image {
        height: 200px;
    }

    .ig-skills-grid {
        grid-template-columns: 1fr;
    }

    .ig-footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ig-header {
        padding: 0.5rem 0;
    }

    .ig-header-content {
        padding: 0 0.75rem;
    }

    .ig-logo {
        font-size: 1.2rem;
    }

    .ig-logo i {
        font-size: 1.3rem;
    }

    .ig-section {
        padding: 2rem 0.75rem;
    }

    .ig-section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .ig-profile-section {
        padding: 2rem 0.75rem;
    }

    .ig-avatar {
        width: 100px;
        height: 100px;
    }

    .ig-username {
        font-size: 1.5rem;
    }

    .ig-bio {
        font-size: 0.95rem;
    }

    .ig-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .ig-card {
        padding: 1rem;
    }

    .ig-card-title {
        font-size: 1.1rem;
    }

    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .ig-project-image {
        height: 150px;
    }

    .ig-project-info {
        padding: 1rem;
    }

    .ig-project-info h4 {
        font-size: 0.95rem;
    }

    .ig-skill-tags {
        gap: 0.5rem;
    }

    .ig-skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .ig-footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ig-footer {
        padding: 2rem 0.75rem;
    }

    .ig-social-links {
        justify-content: center;
    }
}