:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.contact-btn {
    background: #333333;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: transparent;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.typing-container {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.dynamic-text {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.primary-btn {
    background: #333333;
    color: var(--secondary-color);
}

.secondary-btn {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

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

.social-links a:hover {
    color: #888888;
    transform: translateY(-3px);
}

/* Projects Section */
.projects-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.project-description ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.project-description li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.project-description li:before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.project-links a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: fit-content;
}

.project-links a:hover {
    color: #888888;
}

/* Education Section */
.education-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
    background: #000000;
}

.education-container {
    max-width: 1000px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.education-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-logo i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.education-details {
    flex: 1;
}

.education-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-degree {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.education-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.year {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.gpa {
    font-weight: 600;
}

/* Skills Section - New Grid Layout */
.skills-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
}

.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skills-grid-item {
    background-color: rgba(18, 18, 18, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.skill-tag i {
    font-size: 1.2rem;
}

.skill-tag span {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Achievements Section */
.achievements-section {
    padding: 6rem 2rem;
    background: #000000;
    position: relative;
    z-index: 2;
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.achievement-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.achievement-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.achievement-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.achievement-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.achievement-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #000000;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 2rem 0;
}

.footer-bottom {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.last-update {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000000;
        padding: 1rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .education-period {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skills-grid-container {
        grid-template-columns: 1fr;
    }
    
    .skills-tags {
        gap: 0.6rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.7rem;
    }
    
    .skill-tag i {
        font-size: 1.1rem;
    }
    
    .skill-tag span {
        font-size: 0.8rem;
    }

    .achievements-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .project-tech {
        justify-content: center;
    }
}

/* Menu Toggle Animation */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .typing-container {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .skill-tag i {
        font-size: 1rem;
    }
}
/* Enhanced Project Section Styling with Colored Icons */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-tech span i {
    font-size: 1.1rem;
}


/* Contact Section Styles */
.contact-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-method:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details a {
    color: var(--secondary-color);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.contact-details a:hover {
    opacity: 1;
    color: #FFA116;
}

.contact-form-container {
    background: rgba(18, 18, 18, 0.8);
    border-radius: 10px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #333333;
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #444444;
    transform: translateY(-2px);
}

/* Responsive design for contact section */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-method {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}