:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --text-color: #e2e8f0; /* Lighter text for dark backgrounds */
    --light-text: #a0aec0;
    --background: #1f2937;
    --card-bg: #2d3748; /* Darker background for cards */
    --gradient-start: #4f46e5;
    --gradient-end: #7c3aed;
}

* {
    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);
    background-color: #1f2937; /* Dark background color */
}

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

/* Header Styles */
header {
    background: #1a202c; /* Dark background color */
    color: white;
    padding-top: 130px; /* Adjust based on navbar height */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex; /* Use flexbox for alignment */
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>'); /* Subtle pattern */
    opacity: 0.1;
}

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

.header-text-content {
    flex: 1;
    min-width: 300px;
}

.header-text-content h1 {
    font-size: 3.5rem; /* Larger font size */
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: none;
}

.header-text-content .highlight-name {
    color: #4f46e5; /* Primary color for highlighted name */
}

.header-text-content h2 {
    font-size: 1.8rem;
    color: #a0aec0; /* Lighter color for subtitle */
    margin-bottom: 20px;
}

.header-text-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.header-image-content {
    flex-shrink: 0;
}

.profile-img {
    width: 250px; /* Adjust size as needed */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color); /* Blue border */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Responsive Design for Header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column-reverse; /* Image above text on small screens */
        text-align: center;
        gap: 30px;
    }

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

    .header-text-content h2 {
        font-size: 1.5rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .header-buttons {
        justify-content: center;
    }

    header {
        padding-top: 100px; /* Smaller padding for mobile header */
    }
}

/* Section Styles */
section {
    scroll-margin-top: 80px;
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: #1a202c; /* Darker background for even sections */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Skills Section */
.skills-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted for icon cards */
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.skill-icon-card {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.skill-logo-icon {
    font-size: 4rem; /* Larger icon size */
    color: var(--accent-color); /* Cyan color for icons */
    margin-bottom: 15px;
}

.skill-icon-card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
}

.resume-download-section {
    text-align: center;
    margin-top: 50px;
}

.download-resume-btn {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.download-resume-btn i {
    font-size: 1.2rem;
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.certificate-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.certificate-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.certificate-info .issuer {
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 5px;
}

.certificate-info .date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.view-certificate {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(79, 70, 229, 0.1);
}

.view-certificate:hover {
    color: var(--secondary-color);
    background: rgba(79, 70, 229, 0.2);
}

/* Projects Section Styles */
#projects {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.project-tech span {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.project-tech span:hover {
    transform: translateY(-2px);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .project-image {
        height: 180px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 160px;
    }

    .project-link {
        width: 40px;
        height: 40px;
    }
}

/* Contact Section Styles */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-text);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.submit-btn i {
    font-size: 1.1rem;
}

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

.contact-info-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-info-item p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-info-item {
        flex: 1 1 250px;
    }
}

/* Footer Styles */
footer {
    background-color: #1a202c;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-socials a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    footer {
        padding: 30px 0;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
    
    .footer-socials {
        gap: 15px;
    }
    
    .footer-socials a {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
    }
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* Top Navigation Bar Styles */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a202c; /* Dark background */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    color: var(--primary-color); /* Blue for Portfolio */
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: var(--secondary-color);
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-menu li a:hover::after,
.navbar-menu li a.active::after {
    width: 100%;
}

.navbar-menu li a:hover {
    color: var(--primary-color);
}

/* Remove old .main-nav styles as they are replaced */
.main-nav, .main-nav ul, .main-nav a, .main-nav a::after, .main-nav a:hover, .main-nav a.active, .main-nav a.active::after {
    /* These styles are no longer needed, keeping them here to ensure they are removed */
    display: none;
}

/* General button styling (adjust if needed to match new primary/secondary buttons) */


/* Responsive Design - Adjust existing media queries for new header/navbar */
@media (max-width: 768px) {
    .top-navbar {
        padding: 10px 0;
    }

    .navbar-logo {
        font-size: 1.5rem;
    }

    .navbar-menu {
        gap: 15px;
    }

    .navbar-menu li a {
        font-size: 0.9rem;
    }

    header {
        padding-top: 100px; /* Smaller padding for mobile header */
    }

    .skills-icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .skill-logo-icon {
        font-size: 3rem;
    }

    .download-resume-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .header-text-content h1 {
        font-size: 2.5rem; /* Re-adjust for mobile */
    }

    .header-text-content h2 {
        font-size: 1.5rem; /* Re-adjust for mobile */
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }
}

/* Connect With Me Section */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center; /* Center items if they don't fill the grid */
}

.social-link-card {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.social-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.social-link-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* Adjust existing sections for top-navbar */
section {
    scroll-margin-top: 80px; /* Ensure enough space for fixed header */
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.contact-link i {
    font-size: 1rem;
    color: var(--primary-color);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transform: translateX(5px);
}

.contact-link:hover i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card img {
        height: 180px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .view-project {
        text-align: center;
        justify-content: center;
    }
} 