/* =======================
   🔷 MAIN SITE STYLES
======================= */

/* -------- Top Header -------- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px 40px;
    height: 59px;
    background: #fff;
    position: relative;
    z-index: 1200;
}

/* Aligns hamburger + name properly */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* -------- Hamburger Button -------- */
#hamburger {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 1300;
    position: fixed;
    top: 15px;
    left: 15px;
}

#hamburger:hover {
    color: #0056b3;
    transform: scale(1.1);
}

/* -------- Sidebar (Hidden Drawer) -------- */
#sidebar {
    position: fixed;
    top: 0;
    left: -270px; /* Hidden off-screen initially */
    width: 260px;
    height: 100%;
    background: #111;
    color: #fff;
    transition: left 0.4s ease;
    z-index: 3000;
    padding: 25px 20px;
    overflow-y: auto;
    box-shadow: 3px 0 10px rgba(0,0,0,0.2);
}

/* Slide-in effect when active */
#sidebar.active {
    left: 0;
}

.sidebar-open .top-header{
    z-index: 1000;
}

/* Sidebar inner content */
.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-title {
    font-size: 1.2rem;
    color: #00bfff;
    margin-bottom: 10px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.menu-list li {
    margin: 10px 0;
}

.menu-list a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-list a:hover {
    color: #00bfff;
}

/* -------- Sidebar Get in Touch Section -------- */
.get-in-touch {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.get-in-touch h3 {
    color: #00bfff;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    margin-bottom: 8px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00bfff;
}

/* -------- Overlay (Background dim when sidebar open) -------- */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1900;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* -------- Main Content -------- */
#main-content {
    transition: margin-left 0.3s ease;
    padding: 20px;
}

body.sidebar-open #main-content {
    margin-left: 260px;
}

/* -------- Logo -------- */
.logo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.92rem;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}

.logo strong {
    color: #000;
    font-size: 1.06rem;
}

.portfolio-text {
    color: #aaa;
    margin-left: 5px;
}

.logo:hover strong,
.logo:hover .portfolio-text {
    color: #007bff;
}

/* -------- Social Icons -------- */
.header-socials {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.header-socials a {
    color: #aaa;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-socials a:hover {
    color: #007bff;
}

/* Blue Line */
.blue-line {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px;
}

/* -------- Hero Section -------- */
.hero-section {
    padding: 25px 40px 60px 40px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

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

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
}

.contact-btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    background-color: #a5d8ff;
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: #007bff;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 60px;
    margin-left: -79px;
}

.hero-image img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 12px solid #ddd;
    box-shadow: 0 10px 12px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* -------- Skills Section -------- */
.skills-section {
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 1200px;
}

.skills-section h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 25px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.skills-section h3:hover {
    color: #007bff;
}

.skills-divider {
    width: 100%;
    height: 2px;
    background-color: #ccc;
    margin: 20px 0;
}

/* Grid for skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    align-items: stretch;
}

/* Skill Card */
.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Diamond Skill Icon */
.skill-icon {
    width: 55px;
    height: 55px;
    background: #f0f8ff;
    border: 2px solid #ddd;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.skill-icon img {
    width: 26px;
    height: 26px;
    transform: rotate(-45deg);
    object-fit: contain;
}

/* Skill Info */
.skill-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.skill-info p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

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

@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-section {
        padding: 20px;
    }

    #hamburger {
        display: block;
    }

    body.sidebar-open #main-content {
        margin-left: 0;
    }
    .main-content{
        margin-left: 260px;
        padding: 20px;
        transition: margin-left 0.3s ease;
    }
    @media(max-width: 768px){
        .main-content{
            margin-left:0;
        }
    }
    /* Optional visual polish for resume page */
     .resume-container iframe {
        border: none;
        border-radius: 8px;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
}
