/* Base Styles */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --box-bg: #5bc1ac;
    --box-border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    line-height: 1.1;
    background-color:rgba(91, 193, 172,0.5);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Header & Navigation */
header {
    background-color: #5bc1ac;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display:block;
    width:100px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Home Section with PPT Layout */
.home-section {
    padding: 100px 0 50px;
}

.home-container {
    display: grid;
    grid-template-columns: 70% 30%;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    min-height: 80vh; /* Ensure minimum height */
}

.block-1 {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    gap: 20px;
}

.block-2 {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for grid children */
}
.block-3 {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 20px;
}

.box {
    background: var(--box-bg);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid var(--box-border);
    overflow: auto;
}

.box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
}

.box p, .box li {
    font-size: 0.9rem;
    line-height: 1.5;
}

.box ul {
    padding-left: 20px;
}

.box li {
    margin-bottom: 8px;
}

/* Block 1 Boxes */
.about-intro-box {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    text-align: right;
}
.about-intro-box h3 {
    margin-top: auto; /* Push content to bottom */

}

/* Image Box - Photo frame style */
.image-box {
    width: 40%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    padding: 0px;
    background-image: linear-gradient(rgba(6,18,22,0.55), rgba(6,18,22,0.55)), url('images/about-head.png') !important;
    background-size: cover;
    background-position: center;
}

.placeholder-img {
    position: relative;
    margin-bottom: 0;
    margin-right: 0;
}


/* Block 2 Boxes - FIXED */
.articles-projects-box {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0; /* Important for flex children */
}

.linkedin-box, .projects-box {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.linkedin-box h3, .projects-box h3 {
    text-align: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.linkedin-box ul, .projects-box ul {
    display: inline-block;
    text-align: left;
    padding-left: 0;
    list-style-position: inside;
}

.linkedin-box li, .projects-box li {
    text-align: left;
    margin-bottom: 10px;
    padding-left: 0;
}

.social-box {
    flex-shrink: 0; /* Prevent shrinking */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: auto; /* Push to bottom */
}
/* Block 3 Boxes */
.description-box {
    width: 50%;
}

.poems-intro-box {
    width: 50%;
}

/* Placeholder Image */
.placeholder-img img {
    max-width: 100%;
    border-radius: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #5bc1ac;
}

/* About Section - GRID SOLUTION */
/* About Section - COMPLETELY NEW SOLUTION */
.about-section {
    background-color: rgba(91, 193, 172, 0.5);
}

/* Reset and clear any previous about-grid styles */
.about-grid {
    display: block;
    width: 100%;
}

/* Create a container for the 50% boxes */
.about-top-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

/* Force exact 50% width for cricket and poetry boxes */
.cricket-box,
.poetry-details-box {
    flex: 0 0 calc(50% - 15px);
    min-width: 0; /* Prevent overflow */
}

/* Force 100% width for summary and experience boxes */
.summary-box,
.experience-box {
    width: 100%;
    margin-bottom: 30px;
}

/* Box styling */
.about-grid .box {
    background: var(--box-bg);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid var(--box-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-grid .box h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
    width: 100%;
}

.about-grid .box p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    width: 100%;
}
/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.card {
    min-width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.card img {
    max-width: 50%;
    max-height: 180px;
    object-fit: contain;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-arrow:hover {
    background: rgba(44, 62, 80, 0.9);
}

.nav-arrow.left {
    left: 15px;
}

.nav-arrow.right {
    right: 15px;
}

.member-info {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.member-name {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bdc3c7;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #3498db;
}

.experience-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.experience-description h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.experience-description p {
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-image {
    text-align: center;
}

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

/* added new contact code */
/* Contact Section - Fixed Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

.contact-image {
    text-align: center;
    width: 100%;
}

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

.contact-social {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}
.contact-social {
    margin-top: 30px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Form Message */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1199px) {
    .home-container,
    .contact-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        height: auto;
    }

    .block-1,
    .block-2,
    .block-3 {
        grid-column: 1;
        grid-row: auto;
        flex-direction: column;
    }

    .about-intro-box,
    .image-box,
    .description-box,
    .poems-intro-box {
        width: 100%;
    }

    .home-section {
        height: auto;
        padding: 10vh 0 50px;
    }

    /* Fix for About section */
    .about-top-row {
        flex-direction: column;
    }

    .cricket-box,
    .poetry-details-box {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    /* Fix for Contact section */
    .contact-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    /* Carousel responsive adjustments */
    .carousel-container {
        max-width: 100%;
    }

    .box-header h1 {
        font-size: 2rem;
    }

    .member-name {
        font-size: 1.5rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Additional mobile breakpoint */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    section {
        padding: 60px 0;
    }

    .home-container {
        gap: 15px;
    }

    .box {
        padding: 15px;
    }
}
    /* About section responsive - GRID */
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .cricket-box {
        grid-column: 1;
        grid-row: 1;
    }

    .poetry-details-box {
        grid-column: 1;
        grid-row: 2;
    }

    .summary-box {
        grid-column: 1;
        grid-row: 3;
    }

    .experience-box {
        grid-column: 1;
        grid-row: 4;
    }
}
