/* Basic Reset & Body Styles (Dark Theme) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: url('images/cloud-resume-background.jpg') no-repeat center center/cover fixed;
    color: #D3D7D4;
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 25px;
    top: 100px;
    height: calc(100% - 50px);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    justify-content: flex-start;
}

.nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin: 10px 0;
    border-radius: 50%;
    background-color: #b4bbbc;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-icon img {
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.nav-icon.active img,
.nav-icon:hover img {
    filter: grayscale(0%);
}

.nav-icon.active,
.nav-icon:hover {
    transform: scale(1.1);
    background-color: #129990;
}

.nav-icon::after {
    content: attr(data-title);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #129990;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.nav-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Main Content Styling */
.content {
    margin-left: 70px;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content .subtitle {
    font-size: 1.5em;
    color: #00C4B4;
    margin-bottom: 1em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    background-color: rgba(177, 187, 188, 0.4);
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(28, 37, 38, 0.9);
}

.social-icons img {
    width: 40px;
    height: 40px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.social-icons a:hover img {
    filter: grayscale(0%);
}

/* About Section Styling */
.about-content {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.about-photo {
    margin-right: 50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #129990;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-top: 20px;
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.about-text p {
    margin-top: 50px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Tools Section Styling */
.section-intro {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #00C4B4;
}

.tool-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.tool-card {
    background-color: rgba(28, 37, 38, 0.7);
    border: 1px solid #129990;
    border-radius: 10px;
    padding: 15px;
    width: calc(25% - 22.5px);
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: scale(1.05);
}

.tool-icon-circle {
    width: 120px;
    height: 120px;
    background-color: #FFFFFF;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tool-icon-circle img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
}

.tool-details {
    position: relative;
    z-index: 1;
}

.tool-details h4 {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.tool-details p {
    font-size: 0.9em;
    color: #D3D7D4;
    padding: 0 10px;
}

/* Resume Section Styling */
.resume-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.resume-column {
    flex: 1;
    padding: 0 20px;
}

.resume-column h3 {
    font-size: 2em;
    color: #00C4B4;
    margin-bottom: 20px;
    text-align: center;
}

.resume-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.resume-circle {
    width: 15px;
    height: 15px;
    background-color: #00C4B4;
    border-radius: 50%;
    margin-top: 12px;
    flex-shrink: 0;
}

.resume-details {
    margin-left: 20px;
}

.resume-details h4 {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.resume-details h4 a {
    color: #00C4B4;
    text-decoration: none;
}

.resume-details h4 a:hover {
    text-decoration: underline;
}

.resume-date {
    font-size: 1.1em;
    color: #00C4B4;
    margin-bottom: 5px;
}

.resume-details p,
.resume-details ul {
    font-size: 1em;
    color: #D3D7D4;
}

.resume-details ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
}




/* Visitors Section Styling */
.visitor-counter {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2em;
    color: #00C4B4;
}

.visitor-counter p {
    margin: 10px 0;
}

#visitor-count {
    font-weight: bold;
    color: #FFFFFF;
}

#visitor-count.disconnected {
    color: #FF5555; /* Red for disconnected state */
}


/* General Section Styling */
.section {
    padding: 40px 20px;
    color: #D3D7D4;
    margin-bottom: 20px;
    border-bottom: 2px solid #129990;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 2.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-align: center;
}

.section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.section ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(28, 37, 38, 0.9);
    color: #D3D7D4;
    margin-top: 40px;
}

footer a {
    color: #00C4B4;
    text-decoration: none;
}

footer a:hover {
    color: #008C7A;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #129990;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #0a6b63;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #FFFFFF;
    margin: 4px auto;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tool-card {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 1024px) {
    .tool-card {
        width: calc(50% - 20px);
    }
    .resume-content {
        flex-direction: column;
    }
    .resume-column {
        padding: 0;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(28, 37, 38, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        border-right: 2px solid #129990;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .nav-icons {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-icon {
        width: 100%;
        height: 60px;
        border-radius: 10px;
        justify-content: flex-start;
        padding-left: 20px;
        margin: 5px 0;
        background-color: rgba(177, 187, 188, 0.2);
    }
    
    .nav-icon::after {
        position: static;
        transform: none;
        background: none;
        color: #FFFFFF;
        padding: 0;
        margin-left: 15px;
        opacity: 1;
        visibility: visible;
        font-size: 1.1em;
    }
    
    .content {
        margin-left: 0;
        padding: 10px;
    }
    
    .hero-section {
        min-height: 100vh;
        padding: 80px 20px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
        line-height: 1.2;
    }
    
    .hero-content .subtitle {
        font-size: 1.2em;
        margin-bottom: 1.5em;
    }
    
    .social-icons {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .social-icons a {
        padding: 10px;
    }
    
    .social-icons img {
        width: 35px;
        height: 35px;
    }
    
    .visitor-counter {
        margin-top: 20px;
        font-size: 1.1em;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .about-photo {
        width: 180px;
        height: 180px;
        margin-right: 0;
    }
    
    .about-text h3 {
        font-size: 1.5em;
        margin-top: 10px;
    }
    
    .about-text p {
        margin-top: 20px;
        font-size: 1em;
        text-align: left;
    }
    
    .tool-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .tool-card {
        width: 90%;
        max-width: 350px;
        padding: 20px;
    }
    
    .tool-icon-circle {
        width: 100px;
        height: 100px;
    }
    
    .tool-icon-circle img {
        width: 90px;
        height: 90px;
    }
    
    .resume-content {
        flex-direction: column;
    }
    
    .resume-column {
        padding: 0;
        margin-bottom: 30px;
    }
    
    .resume-column h3 {
        font-size: 1.8em;
    }
    
    .resume-details h4 {
        font-size: 1.3em;
    }
    
    .section {
        padding: 30px 15px;
    }
    
    .section h2 {
        font-size: 2em;
    }
    
    .section p, .section ul li {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content .subtitle {
        font-size: 1em;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons img {
        width: 30px;
        height: 30px;
    }
    
    .about-photo {
        width: 150px;
        height: 150px;
    }
    
    .about-text h3 {
        font-size: 1.3em;
    }
    
    .tool-card {
        width: 95%;
        padding: 15px;
    }
    
    .tool-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .tool-icon-circle img {
        width: 70px;
        height: 70px;
    }
    
    .tool-details h4 {
        font-size: 1.1em;
    }
    
    .tool-details p {
        font-size: 0.85em;
    }
    
    .section h2 {
        font-size: 1.8em;
    }
    
    .resume-column h3 {
        font-size: 1.5em;
    }
    
    .resume-details h4 {
        font-size: 1.2em;
    }
    
    .visitor-counter {
        font-size: 1em;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-icon:hover::after {
        opacity: 0;
        visibility: hidden;
    }
    
    .tool-card:hover {
        transform: none;
    }
    
    .nav-icon:active,
    .tool-card:active {
        transform: scale(0.95);
    }
}