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

:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --text-primary: #F0F0F0;
    --text-secondary: #8B949E;
    --accent-color: #FFD700;
    --accent-hover: #FFA500;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Background */
#constellation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.8);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}

.profile-frame {
    position: relative;
    width: 350px;
    height: auto;
    padding: 15px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.profile-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    aspect-ratio: 3072 / 4080;
    object-fit: cover;
}

.hero-name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.social-link .fab, .social-link .fas {
    font-size: 20px;
}

/* Section Styles */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Skills Section - New Tools Grid */
.skills-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.tools-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.category {
    text-align: center;
}

.category-title {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    width: 100%;
    height: 150px; /* Fixed height for consistent sizing */
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-color);
}

.tool-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tool-card span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 30px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.job-title {
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.company {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .company {
    justify-content: flex-start;
}

.company-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-left: 10px;
}

/* Location styling for work experience */
.location {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-style: italic;
}

.duration {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.job-description {
    list-style: none;
    text-align: left;
}

.job-description li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
}

.job-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
    border-color: var(--accent-color);
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: var(--bg-primary);
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.project-duration {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 5px 12px;
    background: var(--bg-primary);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-primary);
}

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

.project-link {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
}

/* Education Section */
.education-section {
    padding: 80px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.education-degree {
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.education-university {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.education-details {
    font-size: 15px;
    color: var(--text-secondary);
}

.education-duration {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Certifications Section */
.certifications-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.certification-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certification-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.certification-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
}

.certification-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.certification-link {
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.certification-link:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.certification-link i {
    margin-left: 8px;
}


/* Contact Section */
.contact-section {
    padding: 80px 0;
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.availability-status {
    margin-bottom: 25px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--accent-color);
    border-radius: 25px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-badge:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.contact-email {
    font-size: 24px;
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-email:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-frame {
        width: 280px;
        margin: 0 auto 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
    
    .company {
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-name {
        font-size: 36px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}