:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --text-color: #2d3436;
    --light-bg: #f5f6fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation Bar */
.top-nav {
    background: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    width: 250px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
    justify-content: flex-end;
    width: 200px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 4px;
    transition: var(--transition);
    width: 80px;
    text-align: center;
    display: inline-block;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links a.active {
    background: var(--secondary-color);
}

/* Header Styles */
header {
    background: var(--primary-color);
    color: white;
    padding: 100px 0 70px;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.header-text {
    flex: 1;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

/* Profile Info Styles */
.profile-info {
    flex: 1;
}

.header-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.header-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Navigation Container Styles */
.nav-container {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-button {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-button:hover {
    color: var(--secondary-color);
}

.nav-button:hover::after {
    transform: scaleX(1);
}

.nav-button.active {
    color: var(--secondary-color);
}

.nav-button.active::after {
    transform: scaleX(1);
}

/* When hovering any button, hide the active underline */
.nav-buttons:hover .nav-button.active::after {
    transform: scaleX(0);
}

/* But keep the hover underline visible */
.nav-buttons:hover .nav-button:hover::after {
    transform: scaleX(1);
}

/* Card Animations */
.section.active .skill-card,
.section.active .education-card {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect */
.section.active .skill-card:hover,
.section.active .education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    transition-delay: 0s;
}

/* Staggered animation delays */
.section.active .skill-card:not(:hover):nth-child(1),
.section.active .education-card:not(:hover):nth-child(1) {
    transition-delay: 0.1s;
}

.section.active .skill-card:not(:hover):nth-child(2),
.section.active .education-card:not(:hover):nth-child(2) {
    transition-delay: 0.2s;
}

.section.active .skill-card:not(:hover):nth-child(3),
.section.active .education-card:not(:hover):nth-child(3) {
    transition-delay: 0.3s;
}

/* Section specific styles */
.skills,
.education,
.hobbies {
    padding: 60px 0;
    background: var(--light-bg);
    min-height: 400px;
}

/* Education card specific styles */
.education-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.education-card h4 {
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.education-card p {
    font-size: 0.85rem;
    margin-bottom: 2px;
    line-height: 1.3;
    padding: 0 5px;
}

.education-card .year {
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 4px;
    font-size: 0.85rem;
}

/* Skill card specific styles */
.skill-card h3,
.hobbies .skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.skill-card p,
.hobbies .skill-card p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
    padding: 0 10px;
}

/* Additional mobile styles */
@media (max-width: 768px) {
    .skill-card,
    .education-card {
        height: 160px;
        padding: 15px 10px;
    }

    .skill-card i,
    .hobbies .skill-card i {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .university-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .skill-card h3,
    .education-card h3,
    .hobbies .skill-card h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .education-card h4 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .skill-card p,
    .education-card p,
    .hobbies .skill-card p {
        font-size: 0.8rem;
        padding: 0 5px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .education-card .year {
        margin-top: 3px;
        font-size: 0.8rem;
    }
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Skills and Education Grid */
.skills-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Card Styles */
.skill-card,
.education-card {
    background: white;
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, box-shadow, opacity;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.6s ease;
    overflow: hidden;
}

/* Icon Styles */
.skill-card i,
.hobbies .skill-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

/* Company Icons */
.company-icon {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 12px;
}

.company-icon.coreai-icon {
    background-color: black;
    padding: 10px;
    border-radius: 8px;
}

.company-icon.dataheroes-icon {
    width: 140px;
    height: 140px;
}

/* University Icon */
.university-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* Section Transitions */
.sections-container {
    position: relative;
    min-height: 400px;
    background: var(--light-bg);
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Projects Page Specific Styles */
.projects-header {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.projects-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 20px;
}

.project-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

.tech-stack {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-logo {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

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

    .profile-image {
        margin-bottom: 20px;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }

    .projects-header h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 20px 0;
    }

    .project-card {
        margin: 0 10px;
    }
} 