/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #28a745;
    --dark-green: #218838;
    --light-green: #34ce57;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Dark Mode */
body.dark-mode {
    background-color: #000;
    color: #fff;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(40, 167, 69, 0.1);
    min-height: 70px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

body.dark-mode header {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(40, 167, 69, 0.3);
}

header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 1.4rem;
    gap: 0.75rem;
    transition: var(--transition);
    letter-spacing: -0.02em;
}

body.dark-mode header a {
    color: var(--white);
}

header img {
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--primary-green);
}

header img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
}

/* Navigation */
nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

nav a:hover::before {
    width: 100%;
}

body.dark-mode nav a {
    color: var(--white);
}

body.dark-mode nav a:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
}

.logo {
  width: 60px;       /* default desktop size */
  height: auto;      /* keeps aspect ratio */
  max-width: 100%;   /* makes sure it never overflows */
}

/* Buttons */
/* Apply button styles to links with class 'btn' */
.btn {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}


/* Main Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Hero Section */
section:first-of-type {
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 50%, var(--white) 100%);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

section:first-of-type::before {
    display: none;
}

section:first-of-type::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

body.dark-mode section:first-of-type {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 50%, var(--black) 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    color: var(--black);
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: translateX(-50%);
    border-radius: 2px;
}

body.dark-mode h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    color: var(--primary-green);
    font-weight: 700;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
    text-align: center;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1.5rem;
    color: var(--black);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
}

body.dark-mode h3 {
    color: var(--white);
}

p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--gray-dark);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode p {
    color: rgba(255, 255, 255, 0.9);
}

section:first-of-type p {
    margin: 0 auto 3rem;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    position: relative;
    z-index: 2;
}

/* Lists */
ul {
    margin-bottom: 3rem;
    display: grid;
    gap: 1.5rem;
}

/* Regular List Items */
li {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    position: relative;
    background: rgba(40, 167, 69, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-green);
    transition: var(--transition);
}

li:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateX(8px);
}

li::before {
    content: '✓';
    color: var(--primary-green);
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

body.dark-mode li {
    background: rgba(40, 167, 69, 0.15);
    border-left-color: var(--light-green);
}

body.dark-mode li:hover {
    background: rgba(40, 167, 69, 0.25);
}

/* Project Cards */
#projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

#projects ul li {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0;
    border: 1px solid rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--primary-green);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

#projects ul li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

body.dark-mode #projects ul li {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#projects ul li:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-left-color: var(--light-green);
}

body.dark-mode #projects ul li:hover {
    box-shadow: 0 8px 40px rgba(40, 167, 69, 0.2);
}



#projects ul li h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

#projects ul li p {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: none;
}

#projects ul li a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    background: transparent;
}

#projects ul li a:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Internship Section */
#internships {
  padding: 60px 20px;
  background-color: #f9f9f9; /* light background to separate section */
}

#internships h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

#internships h3 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

#internships h4 {
  font-size: 1.4rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

#internships ul {
  list-style: disc inside;
  margin-bottom: 20px;
}

#internships li {
  margin-bottom: 10px;
  line-height: 1.6;
}

#internships button {
  display: block;
  margin: 30px auto 0;
  padding: 12px 30px;
  background-color: #0070f3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#internships button:hover {
  background-color: #0051c3;
}


/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border-radius: var(--border-radius);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

body.dark-mode #contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#contact::before {
    background: linear-gradient(90deg, var(--light-green), var(--primary-green));
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
}

input, textarea {
    padding: 1.5rem;
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--black);
    font-family: inherit;
    box-shadow: var(--shadow-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-medium);
    opacity: 0.8;
}

body.dark-mode input,
body.dark-mode textarea {
    background: #2d2d2d;
    color: var(--white);
    border-color: rgba(40, 167, 69, 0.3);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1), var(--shadow-medium);
    transform: translateY(-2px);
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

form button {
    align-self: center;
    margin-top: 1rem;
}

/* Contact Email and Social Links */
#contact p:nth-last-of-type(2) {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

#contact p:nth-last-of-type(2) a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

#contact p:nth-last-of-type(2) a:hover {
    color: var(--light-green);
    text-decoration: underline;
}

body.dark-mode #contact p:nth-last-of-type(2) a {
    color: var(--light-green);
}

body.dark-mode #contact p:nth-last-of-type(2) a:hover {
    color: var(--primary-green);
}

#contact p:last-of-type {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

#contact p:last-of-type a {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: transparent;
    position: relative;
    overflow: hidden;
}

#contact p:last-of-type a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    transition: left 0.3s ease;
    z-index: -1;
}

#contact p:last-of-type a:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

#contact p:last-of-type a:hover::before {
    left: 0;
}

body.dark-mode #contact p:last-of-type a {
    border-color: var(--light-green);
    color: var(--light-green);
}

body.dark-mode #contact p:last-of-type a:hover {
    color: var(--white);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green), var(--primary-green));
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

footer p {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    max-width: none;
    color: rgba(255, 255, 255, 0.9);
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transition: var(--transition);
}

footer a:hover {
    color: var(--light-green);
    transform: translateY(-1px);
}

footer a:hover::after {
    width: 100%;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(40, 167, 69, 0.1);
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

body.dark-mode .menu-toggle span {
    background-color: var(--white);
}

body.dark-mode .menu-toggle:hover {
    background: rgba(40, 167, 69, 0.2);
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    section {
        max-width: 1400px;
        padding: 8rem 3rem;
    }
    
    #projects ul {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Large Tablet */
@media (max-width: 1200px) {
    section {
        padding: 5rem 2rem;
    }
    
    header {
        padding: 1rem 1.5rem;
    }
    
    .header-controls {
        gap: 1.5rem;
    }
    
    nav {
        gap: 1.8rem;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
    
    .dark-mode-toggle {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    header {
        padding: 0.8rem 1.2rem;
    }
    
    .header-controls {
        gap: 1.2rem;
    }
    
    nav {
        gap: 1.2rem;
    }
    
    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .dark-mode-toggle {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    #projects ul {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    form {
        max-width: 500px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    .dark-mode-toggle {
        order: 2;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-heavy);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        gap: 0.8rem;
        z-index: 999;
    }
    
    body.dark-mode nav {
        background: rgba(0, 0, 0, 0.98);
    }
    
    nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    /* On smaller screens, make the logo smaller */
    @media (max-width: 600px) {
        .logo {
        width: 40px;
        }
    }


    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav a {
        padding: 0.8rem 1rem;
        text-align: center;
        border-radius: var(--border-radius);
        background: rgba(40, 167, 69, 0.1);
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    header {
        padding: 0.8rem 1rem;
        position: relative;
    }
    
    .header-controls {
        gap: 0.8rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
    
    section:first-of-type {
        min-height: 70vh;
        padding: 4rem 1.5rem;
    }
    
    #projects ul {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #projects ul li {
        padding: 2rem;
    }
    
    ul {
        gap: 1rem;
    }
    
    li {
        padding: 0.8rem 1.2rem;
    }
    
    form {
        max-width: 100%;
        gap: 1.5rem;
    }
    
    input, textarea {
        padding: 1.2rem;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    header {
        padding: 0.6rem 0.8rem;
        min-height: 60px;
    }
    
    header a {
        font-size: 1.1rem;
        gap: 0.4rem;
    }
    
    header img {
        width: 35px;
    }
    
    .header-controls {
        gap: 0.6rem;
    }
    
    .dark-mode-toggle {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    nav {
        padding: 1.2rem 0.8rem;
        gap: 0.6rem;
    }
    
    nav a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2.5rem 1rem;
    }
    
    section:first-of-type {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    
    button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    #projects ul li {
        padding: 1.5rem;
    }
    
    li {
        padding: 0.7rem 1rem;
        margin-bottom: 1rem;
    }
    
    input, textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    footer {
        padding: 3rem 1rem 2rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    header {
        padding: 0.5rem 0.6rem;
        min-height: 55px;
    }
    
    header a {
        font-size: 1rem;
        gap: 0.3rem;
    }
    
    header img {
        width: 32px;
    }
    
    .header-controls {
        gap: 0.4rem;
    }
    
    .dark-mode-toggle {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
    
    .menu-toggle {
        padding: 0.3rem;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2.5px;
    }
    
    nav {
        padding: 1rem 0.6rem;
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }
    
    section {
        padding: 2rem 0.8rem;
    }
    
    section:first-of-type {
        padding: 2.5rem 0.8rem;
    }
    
    button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    #projects ul li {
        padding: 1.2rem;
    }
    
    li {
        padding: 0.6rem 0.8rem;
    }
    
    input, textarea {
        padding: 0.8rem;
    }
    
    form {
        gap: 1.2rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    header {
        padding: 0.4rem 0.5rem;
        min-height: 50px;
    }
    
    header a {
        font-size: 0.9rem;
        gap: 0.2rem;
    }
    
    header img {
        width: 28px;
    }
    
    .header-controls {
        gap: 0.3rem;
    }
    
    .dark-mode-toggle {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
    }
    
    .menu-toggle {
        padding: 0.2rem;
    }
    
    .menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    nav {
        padding: 0.8rem 0.5rem;
        gap: 0.4rem;
    }
    
    nav a {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    section {
        padding: 1.5rem 0.5rem;
    }
    
    #projects ul li {
        padding: 1rem;
    }
    
    button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Mobile Ultra Small */
@media (max-width: 320px) {
    header {
        padding: 0.3rem 0.4rem;
        min-height: 45px;
    }
    
    header a {
        font-size: 0.85rem;
        gap: 0.15rem;
    }
    
    header img {
        width: 25px;
    }
    
    .header-controls {
        gap: 0.2rem;
    }
    
    .dark-mode-toggle {
        font-size: 0.55rem;
        padding: 0.15rem 0.25rem;
    }
    
    .menu-toggle {
        padding: 0.15rem;
    }
    
    .menu-toggle span {
        width: 16px;
        height: 1.5px;
    }
    
    nav {
        padding: 0.6rem 0.4rem;
        gap: 0.3rem;
    }
    
    nav a {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Section-Specific Styles */

/* About Section */
#about {
    background: linear-gradient(135deg, var(--white) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

body.dark-mode #about {
    background: linear-gradient(135deg, var(--black) 0%, rgba(40, 167, 69, 0.1) 100%);
}

#about::before {
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
}

#about ul {
    display: block;
}

#about li {
    background: rgba(40, 167, 69, 0.08);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-green);
}

body.dark-mode #about li {
    background: rgba(40, 167, 69, 0.2);
}

/* Articles Section */
#articles {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, var(--white) 100%);
    border-radius: var(--border-radius);
    position: relative;
}

body.dark-mode #articles {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, var(--black) 100%);
}

#articles::before {
    background: linear-gradient(90deg, var(--light-green), var(--primary-green));
}

#articles ul {
    display: block;
}

#articles li {
    background: rgba(40, 167, 69, 0.08);
    border-left: 4px solid var(--light-green);
    position: relative;
    padding-left: 3rem;
}

#articles li::before {
    content: '📝';
    font-size: 1.5rem;
    left: 1rem;
    top: 0.8rem;
}

body.dark-mode #articles li {
    background: rgba(40, 167, 69, 0.2);
}

/* Internships Section */
#internships {
    background: linear-gradient(135deg, var(--gray-light) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

body.dark-mode #internships {
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(40, 167, 69, 0.1) 100%);
}

#internships::before {
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
}

#internships::after {
    content: '🚀';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    opacity: 0.1;
    z-index: 1;
}

#internships ul {
    display: block;
}

#internships li {
    background: rgba(40, 167, 69, 0.08);
    border-left: 4px solid var(--primary-green);
    position: relative;
    padding-left: 3rem;
}

#internships li::before {
    content: '🎯';
    font-size: 1.3rem;
    left: 1rem;
    top: 0.9rem;
}

body.dark-mode #internships li {
    background: rgba(40, 167, 69, 0.2);
}

/* Team Section Styling */
#about h3:last-of-type {
    margin-top: 3rem;
    position: relative;
}

#about h3:last-of-type::before {
    content: '👥';
    margin-right: 0.5rem;
}

/* Special Button Styling for CTA sections */
section:first-of-type button,
#internships button {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

section:first-of-type button:hover,
#internships button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: var(--scroll-progress, 0%);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection styles */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--white);
}