/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Viewport and Scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Main Content */
#content {
    flex: 1;
    padding: 20px;
    background: #ffffff;
    width: 100%;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Sections */
.section {
    padding: 60px 20px;
    text-align: center;
    scroll-margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Profile Image */
.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Check Icon */
.check-icon {
    color: #00838f;
    margin-right: 5px;
}

/* Hamburger Icon */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    color: #333333;
    background: rgba(245, 245, 245, 0.8);
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sidebar Navigation */
#sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: rgba(245, 245, 245, 0.98);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

#sidebar.active {
    left: 0;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 80px 0 0 0;
}

#sidebar ul li {
    margin: 20px 0;
    position: relative;
}

#sidebar ul li > a {
    color: #333333;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 20px 12px 30px;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

#sidebar ul li > a:hover {
    background: #e0e0e0;
    color: #4f46e5;
}

/* Dropdown arrow indicator */
#sidebar ul li > a.has-submenu:after {
    content: "\f054"; /* FontAwesome right arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 12px;
}

#sidebar ul li > a.has-submenu.active:after {
    transform: translateY(-50%) rotate(90deg);
}

/* Sub-Menu Styling */
#sidebar ul .sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    border-left: 3px solid #2563eb;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#sidebar ul .sub-menu.active {
    display: block;
}

#sidebar ul .sub-menu li {
    margin: 10px 0;
}

#sidebar ul .sub-menu li a {
    font-size: 16px;
    padding: 8px 20px;
    background: transparent;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

#sidebar ul .sub-menu li a:hover {
    background: rgba(224, 224, 224, 0.5);
    color: #4f46e5;
}

/* Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
    display: none;
}

/* Home Section */
#home {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 40px 20px;
    padding-bottom: 40px;
}

#home h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #333333;
}

#home h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 0;
    color: #555555;
}

.contact-section {
    margin-top: 40px;
    text-align: center;
}

.contact-heading {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: normal;
}

.contact-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.contact-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #333;
    min-width: 48px;
    min-height: 48px;
    text-decoration: none;
}

.contact-icon-link:hover {
    transform: translateY(-3px);
    color: #4f46e5;
}

.fab.fa-github {
    font-size: 28px;
    color: #333;
    transition: color 0.3s ease;
}

.contact-icon-link:hover .fab.fa-github {
    color: #4f46e5;
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.phone-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: left;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.about-content h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 1.3em;
}

.about-skills {
    padding-left: 20px;
    margin: 15px 0;
}

.about-skills li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.education-highlight {
    background: rgba(224, 247, 250, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 3px solid #00838f;
}

.education-highlight p {
    margin: 8px 0;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.skill-pill {
    background: #ffeeee;
    color: #c62828;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ef9a9a;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    margin: 4px;
}

.skill-pill:hover {
    background: #ffcdd2;
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.project-card {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    background: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
    color: #333333;
}

.project-card .description {
    margin-bottom: 15px;
    line-height: 1.6;
    padding-bottom: 15px;
    text-align: justify;
    border-bottom: 1px solid #e0e0e0;
    flex: 1;
}

.project-card .description .check-icon {
    color: #00838f;
    margin-right: 5px;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    background: #ffffff;
    padding: 5px;
    border: 1px solid #e0e0e0;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.project-skill-tag, .skill-tag {
    background: #e0f7fa;
    color: #00838f;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid #b2ebf2;
}

.project-links {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #e0e0e0;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    min-width: 48px;
    min-height: 48px;
}

.project-links a:hover {
    background: #d0d0d0;
    color: #4f46e5;
}

.project-links a i {
    font-size: 16px;
}

/* Footer */
footer {
    background: #f5f5f5;
    color: #333333;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 100;
    border-top: 1px solid #e0e0e0;
}

/* Experience Section */
.experience-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.experience-item {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.date {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.position-company {
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.location {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.description {
    margin-bottom: 15px;
    line-height: 1.6;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.skills {
    margin-top: 15px;
}

.skill-tag {
    background: #e0f7fa;
    color: #00838f;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid #b2ebf2;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Education Section */
.education-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.education-item {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.university {
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
}

.course {
    font-style: italic;
    color: #7f8c8d;
    margin: 5px 0;
}

/* Touch Feedback */
.touch-active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #content {
        padding: 10px;
    }

    .section {
        padding: 30px 10px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
    
    #home h1 {
        font-size: 2.5rem;
    }
    
    #home h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .contact-items {
        gap: 15px;
    }
    
    .skills-grid {
        gap: 8px;
    }
    
    .experience-item, .education-item {
        padding: 15px;
    }
    
    .project-card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    #sidebar {
        width: 85%;
        left: -85%;
    }

    .profile-image-container {
        width: 180px;
        height: 180px;
    }
    
    #home h1 {
        font-size: 2rem;
    }
    
    #home h2 {
        font-size: 1.5rem;
    }
    
    .contact-items {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .phone-item {
        margin: 0;
    }
    
    .project-card .description p {
        font-size: 0.9rem;
    }
    
    .skill-pill, .project-skill-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* SQL Practice Page Specific Styles */

/* Container for all SQL content */
.sql-queries-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Section headers */
.sql-section h3 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Table schema description */
.table-schema {
    text-align: left;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

/* Individual query card */
.sql-query-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #00838f;
}

/* SQL question text */
.sql-question {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.sql-question::before {
    content: "Q. ";
    font-weight: bold;
}

/* SQL code block */
.sql-code {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
    border: 1px solid #e0e0e0;
    text-align: left;
}

/* Certification-specific styles */
.certification-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.certification-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00838f;
}

.certification-badge {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.certification-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 5px solid #4f46e5;
}

.certification-title {
    color: #4f46e5;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certification-icon {
    width: 24px;  /* Adjust size as needed */
    height: 24px; /* Adjust size as needed */
    vertical-align: middle;
    margin-right: 10px;
}

.hacker-text {
    color: #2EC866; /* HackerRank's green color */
}

.rank-text {
    color: #000000; /* Black color */
    margin-left: -0.55em; /* Adjust this value as needed */
}

.certification-title i {
    font-size: 1.5em;
}

.certification-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.query-container {
    margin: 25px 0;
}

.query-question {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    color: #2c3e50;
    border-left: 3px solid #4f46e5;
}

.query-solution {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
    overflow-x: auto;
}

.query-solution pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}

.difficulty-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

.easy {
    background: #e6f7ee;
    color: #10b981;
}

.medium {
    background: #fff4e6;
    color: #f59e0b;
}

.hard {
    background: #fee2e2;
    color: #ef4444;
}

@media (max-width: 768px) {
    .certification-section {
        padding: 15px;
    }
    
    .query-question, .query-solution {
        padding: 12px;
    }
    
    .certification-badge {
        width: 80px;
        height: 80px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sql-code {
        font-size: 0.8em;
    }
    
    .sql-queries-container {
        padding: 10px;
    }
}

/* Disable text selection on interactive elements */
a, button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide focus outlines for touch devices */
@media (hover: none) {
    a:focus, button:focus {
        outline: none;
    }
}