/* Core Variables & Reset */
:root {
    --bg-dark: #121212; /* Very dark background */
    --card-dark: rgba(29, 29, 29, 0.7); /* Semi-transparent dark for cards */
    --border-color: rgba(255, 255, 255, 0.1); /* Subtle white border for glass effect */
    --text-light: #e0e0e0; /* Light gray for main text */
    --text-accent: #90ee90; /* Light Green for headings/accents (e.g., lime green) */
    --primary-button-bg: #8c7ae6; /* Violet for primary actions */
    --primary-button-hover: #7b6ac6;
    --secondary-button-bg: #4ddbff; /* Light Blue for secondary actions */
    --secondary-button-hover: #37c8e6;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --border-radius-lg: 15px;
    --border-radius-md: 10px;
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s ease-out;
    --transition-slow: 0.6s ease-out;

    /* Glassmorphism properties */
    --glass-blur: 10px;
    --glass-saturate: 180%;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* New variables for skill levels */
    --proficiency-proficient: #90ee90; /* Light green */
    --proficiency-experienced: #4ddbff; /* Light blue */
    --proficiency-familiar: #8c7ae6; /* Violet */

    /* NEW: Variables for 3D background colors */
    --bg-3d-color-1: rgba(140, 122, 230, 0.1); /* Subtle violet */
    --bg-3d-color-2: rgba(77, 219, 255, 0.1);  /* Subtle light blue */
    --bg-3d-color-3: rgba(144, 238, 144, 0.1); /* Subtle light green */
    --bg-3d-shadow: 0 0 15px rgba(140, 122, 230, 0.1); /* Keep a violet base for shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7; /* Slightly reduced for a more compact, modern feel */
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Background gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep a consistent overall gradient if desired, or adjust */
    background: linear-gradient(135deg, rgba(140, 122, 230, 0.15) 0%, rgba(77, 219, 255, 0.15) 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- NEW CSS for 3D Background Container --- */
.background-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    perspective: 1500px;
}

.grid-item {
    position: absolute;
    /* CHANGE: Removed direct background-color, now using nth-child */
    border: 1px solid var(--border-color);
    box-shadow: var(--bg-3d-shadow);
    backdrop-filter: blur(5px) saturate(150%);
    -webkit-backdrop-filter: blur(5px) saturate(150%);
    border-radius: var(--border-radius-md);
    animation: floatAndRotate 25s infinite ease-in-out alternate;
    opacity: 0.7;
}

/* NEW: Assign different background colors using nth-child */
.grid-item:nth-child(3n+1) { /* Every 1st, 4th, 7th... item */
    background-color: var(--bg-3d-color-1); /* Violet tint */
}
.grid-item:nth-child(3n+2) { /* Every 2nd, 5th, 8th... item */
    background-color: var(--bg-3d-color-2); /* Light blue tint */
}
.grid-item:nth-child(3n) { /* Every 3rd, 6th, 9th... item */
    background-color: var(--bg-3d-color-3); /* Light green tint */
}


/* Example sizes and positions for a few items. You can adjust or add more */
/* To make this truly dynamic, you might use JavaScript to create and position these elements randomly */
.grid-item:nth-child(1) { width: 150px; height: 150px; top: 10%; left: 5%; animation-delay: 0s; transform: rotateX(20deg) rotateY(30deg) translateZ(-50px); }
.grid-item:nth-child(2) { width: 100px; height: 100px; bottom: 15%; right: 10%; animation-delay: 3s; transform: rotateX(-15deg) rotateY(45deg) translateZ(-100px); }
.grid-item:nth-child(3) { width: 200px; height: 200px; top: 30%; right: 20%; animation-delay: 6s; transform: rotateX(10deg) rotateY(-20deg) translateZ(-20px); }
.grid-item:nth-child(4) { width: 80px; height: 80px; top: 60%; left: 15%; animation-delay: 9s; transform: rotateX(-25deg) rotateY(-35deg) translateZ(-80px); }
.grid-item:nth-child(5) { width: 120px; height: 120px; bottom: 5%; left: 40%; animation-delay: 12s; transform: rotateX(30deg) rotateY(10deg) translateZ(-60px); }
.grid-item:nth-child(6) { width: 180px; height: 180px; top: 50%; right: 5%; animation-delay: 15s; transform: rotateX(-5deg) rotateY(25deg) translateZ(-90px); }
.grid-item:nth-child(7) { width: 90px; height: 90px; top: 20%; left: 30%; animation-delay: 18s; transform: rotateX(40deg) rotateY(-10deg) translateZ(-40px); }
.grid-item:nth-child(8) { width: 160px; height: 160px; bottom: 25%; left: 20%; animation-delay: 21s; transform: rotateX(-10deg) rotateY(20deg) translateZ(-70px); }
.grid-item:nth-child(9) { width: 70px; height: 70px; top: 5%; right: 40%; animation-delay: 24s; transform: rotateX(50deg) rotateY(5deg) translateZ(-30px); }
.grid-item:nth-child(10) { width: 110px; height: 110px; top: 70%; left: 50%; animation-delay: 2s; transform: rotateX(10deg) rotateY(-15deg) translateZ(-60px); }
.grid-item:nth-child(11) { width: 130px; height: 130px; bottom: 30%; right: 30%; animation-delay: 7s; transform: rotateX(-20deg) rotateY(10deg) translateZ(-40px); }
.grid-item:nth-child(12) { width: 95px; height: 95px; top: 40%; left: 70%; animation-delay: 11s; transform: rotateX(25deg) rotateY(5deg) translateZ(-80px); }
.grid-item:nth-child(13) { width: 170px; height: 170px; bottom: 10%; left: 10%; animation-delay: 16s; transform: rotateX(-5deg) rotateY(-30deg) translateZ(-20px); }
.grid-item:nth-child(14) { width: 60px; height: 60px; top: 85%; right: 5%; animation-delay: 20s; transform: rotateX(30deg) rotateY(40deg) translateZ(-90px); }
.grid-item:nth-child(15) { width: 140px; height: 140px; top: 5%; left: 80%; animation-delay: 23s; transform: rotateX(-10deg) rotateY(-50deg) translateZ(-50px); }


@keyframes floatAndRotate {
    0% {
        transform: translateZ(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateZ(50px) rotateX(15deg) rotateY(25deg);
        opacity: 0.8;
    }
    100% {
        transform: translateZ(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.7;
    }
}
/* --- END NEW CSS for 3D Background Container --- */


/* Glassmorphism Effect Class */
.glass-effect {
    background: var(--card-dark);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Headings & Text */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-accent);
    margin-bottom: 20px;
    /* Multi-layered text shadow for a more pronounced, vibrant glow */
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.7), 0 0 15px rgba(144, 238, 144, 0.4), 0 0 25px rgba(144, 238, 144, 0.1);
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: -0.03em; /* Tighter letter spacing for prominent titles */
}
h2 {
    font-size: 2.8em;
    font-weight: 600;
    letter-spacing: -0.02em;
}
h3 {
    font-size: 1.8em;
    font-weight: 500;
    letter-spacing: 0em; /* Standard letter spacing for sub-headings */
}
p {
    font-size: 1.15em; /* Slightly larger for better readability */
    margin-bottom: 1.2em; /* More spacing after paragraphs */
    color: var(--text-light);
    /* Subtle, soft text shadow for depth, preventing flat look on dark backgrounds */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.section-header .underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--text-accent);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.5); /* Glowing underline */
}

/* Links & Buttons */
a {
    color: var(--secondary-button-bg);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

a:hover {
    color: var(--primary-button-bg);
    text-decoration: underline; /* Subtle underline on hover for clarity */
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 1.1em;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.1em; /* More prominent letter spacing for buttons */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow for depth */
}

.primary-button {
    background-color: var(--primary-button-bg);
    color: #fff;
}

.primary-button:hover {
    background-color: var(--primary-button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.secondary-button {
    background-color: var(--secondary-button-bg);
    color: var(--bg-dark); /* Dark text on light button */
}

.secondary-button:hover {
    background-color: var(--secondary-button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-button i {
    margin-right: 10px;
}

/* Sidebar Toggle */
.menu-toggle {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1001;
    background-color: var(--primary-button-bg);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--primary-button-hover);
    transform: scale(1.05);
}

.menu-toggle i {
    font-size: 26px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Hidden by default */
    width: 280px;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Slightly more opaque for sidebar */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 100px;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
    transition: left var(--transition-medium);
    z-index: 1000;
    border-right: 1px solid var(--border-color);
}

.sidebar.active {
    left: 0;
}

.sidebar ul li {
    margin-bottom: 5px;
}

.sidebar ul li a {
    display: block;
    padding: 15px 30px;
    color: var(--text-light);
    font-size: 1.15em;
    font-weight: 500;
    border-left: 5px solid transparent;
    transition: background-color var(--transition-fast), border-left-color var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
    letter-spacing: 0.04em; /* Subtle letter spacing for navigation links */
}

.sidebar ul li a i {
    margin-right: 15px;
    font-size: 1.3em;
    color: var(--text-accent);
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-button-bg);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); /* Enhanced subtle glow on active/hover sidebar link */
}

/* Main Content */
.main-content {
    margin-left: 0; /* Default for mobile */
    transition: margin-left var(--transition-medium);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero-section {
    text-align: center;
    background: none;
    background-size: cover;
    background-position: center;
}

.hero-container {
    width: 100%;
}

.hero-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-image {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--text-accent);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.4); /* Accent glow */
    transition: transform var(--transition-medium);
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image .overlay-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2em;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hero-image:hover .overlay-icon {
    opacity: 1;
}

.hero-text h1 {
    margin-bottom: 10px;
    color: #fff; /* White for name */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.4), 0 0 45px rgba(255, 255, 255, 0.1);
}

.hero-text .role-title {
    font-size: 1.5em; /* Slightly larger for more impact */
    font-weight: 500;
    color: var(--secondary-button-bg); /* Light blue for role */
    margin-bottom: 25px;
    letter-spacing: 0.12em; /* Increased letter spacing for emphasis */
    text-shadow: 0 0 10px rgba(77, 219, 255, 0.6), 0 0 20px rgba(77, 219, 255, 0.3);
}

.hero-text .contact-info {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.hero-text .contact-info a {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
}

.hero-text .contact-info a i {
    margin-right: 8px;
    color: var(--text-accent);
}

.hero-text .contact-info a:hover {
    color: var(--secondary-button-bg);
    text-decoration: none;
}

.hero-text .primary-button {
    margin-top: 30px;
}

/* About Section */
.about-content {
    padding: 40px;
    text-align: left;
}

.about-content ul {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.about-content ul li {
    margin-bottom: 12px;
    font-size: 1.15em;
    display: flex;
    align-items: flex-start;
}

.about-content ul li i {
    margin-right: 15px;
    color: var(--text-accent);
    font-size: 1.3em;
    margin-top: 2px;
}

/* Skills Section - NEW MODEL */
.skills-container {
    padding: 30px;
    max-width: 800px;
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-category {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.skill-category:hover {
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.2);
    transform: translateY(-2px);
}

.category-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 18px 25px;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    color: var(--text-accent);
    text-shadow: 0 0 8px rgba(144, 238, 144, 0.4);
    transition: background-color var(--transition-fast);
}

.category-header:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.category-header i {
    margin-right: 12px;
    color: var(--text-accent);
    font-size: 1.1em;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform var(--transition-fast);
}

.skill-category.open .toggle-icon {
    transform: rotate(180deg);
}

.skill-list {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease-in-out;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

.skill-category.open .skill-list {
    max-height: 500px;
}

.skill-list li {
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05em;
    color: var(--text-light);
    transition: background-color var(--transition-fast);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.skill-icon {
    margin-right: 15px;
    font-size: 1.2em;
    color: var(--secondary-button-bg);
}

.skill-level {
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bg-dark);
}

/* Proficiency level specific colors */
.skill-level.Proficient {
    background-color: var(--proficiency-proficient);
}
.skill-level.Experienced {
    background-color: var(--proficiency-experienced);
}
.skill-level.Familiar {
    background-color: var(--proficiency-familiar);
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.project-card h3 {
    color: var(--secondary-button-bg);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(77, 219, 255, 0.5), 0 0 15px rgba(77, 219, 255, 0.2);
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-card .action-button {
    margin-top: auto;
    align-self: center;
}

/* Contact Section */
.contact-content {
    padding: 40px;
    text-align: center;
}

.contact-content p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-item i {
    font-size: 2.5em;
    margin-bottom: 15px;
    transition: color var(--transition-fast);
}

.contact-item p {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-light);
}

.contact-item a {
    font-size: 1.05em;
    font-weight: 400;
    color: var(--secondary-button-bg);
    word-break: break-all;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-button-bg);
    text-shadow: 0 0 8px rgba(140, 122, 230, 0.7);
}

/* Specific icon colors (adjust as needed) */
.icon-email { color: #D44638; }
.icon-linkedin { color: #0077B5; }
.icon-phone { color: #28B463; }
.icon-github { color: #6e5494; }
.icon-whatsapp { color: #25D366; }


/* Download Resume Section */
.download-resume-content {
    padding: 50px;
    text-align: center;
}

.download-resume-content h2 {
    margin-bottom: 25px;
}

.download-resume-content p {
    max-width: 600px;
    margin: 0 auto 35px auto;
    color: var(--text-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
    margin-bottom: 20px;
    font-size: 0.95em;
}

.social-links a {
    margin: 0 15px;
    color: var(--text-light);
    font-size: 1.8em;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-links a .fa-github:hover { color: #ffffff; }
.social-links a .fa-linkedin:hover { color: #0077B5; }
.social-links a .fa-whatsapp:hover { color: #25D366; }
.social-links a .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Crop Modal (mostly unchanged, added glass-effect) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 30px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
}

.modal-content button {
    background-color: var(--primary-button-bg);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-content button:hover {
    background-color: var(--primary-button-hover);
    transform: translateY(-2px);
}

.close {
    color: var(--text-light);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close:hover,
.close:focus {
    color: var(--text-accent);
    text-decoration: none;
}

/* Media Queries */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .sidebar {
        left: 0;
        width: 280px;
    }

    .main-content {
        margin-left: 280px;
    }

    section {
        padding: 100px 40px;
    }

    .hero-wrapper {
        flex-direction: row;
        text-align: left;
        gap: 50px;
    }

    .hero-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h1, .hero-text .role-title, .hero-text .contact-info {
        text-align: left;
    }

    .action-button {
        align-self: flex-start;
    }

    .about-content {
        padding: 50px;
    }

    .contact-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-item {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.5em; }
    p { font-size: 1.05em; }

    .hero-image {
        width: 160px;
        height: 160px;
    }

    .hero-text .role-title {
        font-size: 1.2em;
    }

    .action-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .sidebar {
        width: 250px;
    }

    .sidebar ul li a {
        font-size: 1em;
        padding: 12px 25px;
    }

    section {
        padding: 80px 15px;
    }

    .glass-effect {
        padding: 25px;
    }

    .skill-card, .project-card, .contact-content, .download-resume-content {
        padding: 25px;
    }

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

    .skills-container {
        padding: 20px;
        gap: 10px;
    }

    .category-header {
        font-size: 1.2em;
        padding: 15px 20px;
    }

    .skill-list {
        max-height: 400px;
    }

    .skill-list li {
        font-size: 0.95em;
        padding: 10px 20px;
    }

    .skill-icon {
        font-size: 1em;
        margin-right: 10px;
    }

    .skill-level {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    .menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .sidebar {
        width: 220px;
    }

    .hero-image {
        width: 140px;
        height: 140px;
    }

    .hero-card {
        padding: 25px;
    }

    .hero-wrapper {
        gap: 20px;
    }

    .hero-text .role-title {
        font-size: 1em;
    }

    .action-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-content, .project-card, .contact-content, .download-resume-content {
        padding: 20px;
    }

    .skills-container {
        padding: 15px;
    }

    .category-header {
        font-size: 1.1em;
        padding: 12px 15px;
    }

    .skill-list {
        max-height: 300px;
    }

    .skill-list li {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .skill-icon {
        font-size: 0.9em;
        margin-right: 8px;
    }

    .skill-level {
        font-size: 0.75em;
        padding: 2px 5px;
    }
}

