/* Basic Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a:hover::after {
    width: 100%;
}
/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 15px;
    border: none;
    background: transparent;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 4px;
    background-color: #333;
    border-radius: 4px;
    position: absolute;
    transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
    transition: top 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

/* Overlay Menu */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-x: hidden;
    transition: 0.5s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 15px;
    text-decoration: none;
    font-size: 36px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #007bff;
}

.overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

body.overlay-active {
    overflow: hidden;
}

main.blur {
    filter: blur(5px);
    transition: filter 0.5s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    height: 100vh;
    gap: 2rem;
}

.hero-text {
    max-width: 50%;
    text-align: left;
}

.hero-text .subheading {
    font-weight: 300;
    display: inline-block;
}

.waving-hand {
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-text h1 span {
    color: #007bff;
}

.hero-text h2 {
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.hero-image img {
    max-width: 800px; /* Doubled from 400px */
    border-radius: 10px;
}

/* About Section */
#about {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-image-new img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.certifications-new {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.certifications-new img {
    max-width: 150px;
    border-radius: 5px;
}

.about-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    line-height: 1.8;
    color: #555;
}

.life-philosophy {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
}

.life-philosophy p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.life-philosophy cite {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 1rem;
    color: #777;
}

.telugu-philosophy {
    font-size: 2rem;
    color: #87CEEB;
    font-weight: 700;
    margin: 0.5rem 0;
}

.english-philosophy {
    font-size: 1rem;
    font-style: italic;
}

/* General Section Styling */
section {
    padding: 5rem 0;
}

.heading {
    text-align: center;
    margin-bottom: 3rem;
}

.heading .subheading {
    font-weight: 300;
}

.heading h2 {
    font-size: 2.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.social-links a {
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.skill-item {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Timeline */
.timeline-items {
    position: relative;
    padding: 2rem 0;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #007bff;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background-color: #007bff;
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -0.5rem;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -0.5rem;
}

.timeline-date {
    font-weight: 700;
    color: #007bff;
}

.timeline-content .read-more-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.timeline-content .read-more-btn:hover {
    background-color: #0056b3;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    margin-top: 0;
}

.project-info p {
    flex-grow: 1;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

.social-buttons {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-btn.linkedin { background-color: #0077b5; }
.social-btn.github { background-color: #333; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input[name="_gotcha"] {
    display: none;
}

/* Learning List */
.learning-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.learning-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #007bff;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.learning-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
}

.learning-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Counter Section */
#counter-section {
    background-image: url(images/background.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

#counter-section .container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.counter-item h3 {
    font-size: 3rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 6rem 0;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-image img {
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-new {
        max-width: 250px; /* Or any size that looks good */
        margin: 0 auto 2rem;
    }

    .timeline-items::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-image {
        display: none; /* Hide image on smaller screens */
    }

    #counter-section .container {
        width: 100%;
        padding: 3rem 1rem;
        border-radius: 0;
    }

    footer .container {
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

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

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.6rem 1rem;
    }

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Skills Tabs */
.skills-tabs {
    width: 100%;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-link {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border: none;
    background-color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-link.active {
    background-color: #007bff;
    color: #fff;
}

.tab-link:hover {
    background-color: #0056b3;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.skill-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-item span {
    font-weight: 500;
}
