/* Portfolio CSS - Static Version */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #f8fafc;
}

:root {
    --primary: #0f172a;
    --accent: #06b6d4;
    --secondary: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-500: #64748b;
}

/* Container styles defined in responsive sections below */

/* Container and section styles defined above in responsive sections */

/* Center alignment for all content */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }

/* Ensure all content containers are centered */
.section {
    padding: 4rem 0;
}

.section .container {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.section .container > * {
    text-align: left;
}

.section .container > h2,
.section .container > p {
    text-align: center;
}

/* Responsive section padding */
@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
    
    .container {
        max-width: 85rem;
        padding: 0 2.5rem;
    }
}

@media (min-width: 1200px) {
    .section {
        padding: 7rem 0;
    }
    
    .container {
        max-width: 95rem;
        padding: 0 3rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #0891b2;
    transform: translateY(-2px) scale(1.05);
}

.card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Skills card specific styling */
.skills-grid .card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent), #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-social a:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

/* Heading styles */
.heading-lg {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .heading-lg {
        font-size: 3rem;
    }
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-radius: 0 0 1rem 1rem;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu a:hover {
    color: var(--accent);
    background: rgba(6, 182, 212, 0.05);
    border-left-color: var(--accent);
    transform: translateX(0.5rem);
}

.mobile-social {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-social a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(6, 182, 212, 0.05);
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateX(0.5rem) scale(1.02);
}

.mobile-social svg {
    flex-shrink: 0;
}

/* Hide elements on mobile */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .nav-social {
        display: none;
    }
    
    .nav-brand {
        display: block;
    }
    
    .mobile-btn {
        display: flex;
    }
    
    /* Hero adjustments for mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        justify-items: center;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-text {
        order: 2;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-image {
        order: 1;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .hero-image img {
        width: 12rem;
        height: 12rem;
    }
    
    .hero-name {
        font-size: 2rem;
        line-height: 1.1;
        margin: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-college {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-degree {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile stats handled by .hero-stats class */
    
    /* Skills grid mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .skills-grid .card {
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .skill-item {
        margin-bottom: 0.875rem;
    }
    
    /* Ensure skill bars are visible on mobile */
    .skill-bar {
        height: 1rem;
        min-height: 1rem;
        background: #e2e8f0;
        position: relative;
        overflow: hidden;
        display: block;
    }
    
    .skill-progress {
        height: 100%;
        min-height: 1rem;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        display: block;
        background: linear-gradient(to right, var(--accent), #3b82f6);
        transition: width 1.5s ease-out;
    }
    
    /* Projects grid mobile */
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        max-width: 100%;
        width: 100%;
    }
    
    /* Contact grid mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
        flex-direction: row;
    }
    
    .contact-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    /* Section padding and container styles handled above */
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light), var(--white), var(--light));
    width: 100%;
    padding: 2rem 0;
}

.hero .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero-college {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-degree {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Hero button container */
.hero-button-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 2rem;
}

.hero-text .btn {
    margin-top: 0;
}

@media (max-width: 767px) {
    .hero-button-container {
        margin-top: 1.5rem;
        justify-content: center;
    }
    
    .hero-text .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-button-container {
        justify-content: flex-start;
    }
}

.hero-image img {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.hero-stats > div {
    padding: 1rem;
    transition: all 0.3s ease;
}

.hero-stats > div:hover {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-stats > div {
        padding: 1rem;
        background: rgba(6, 182, 212, 0.05);
        border-radius: 0.5rem;
        border: 1px solid rgba(6, 182, 212, 0.1);
    }
    
    .hero-stats > div > div:first-child {
        font-size: 1.5rem !important;
    }
    
    /* Button adjustments for mobile */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 80rem;
    margin: 0 auto;
    justify-items: center;
}

.skills-grid .card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.skills-grid .card > div:last-child {
    width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    width: 100%;
}

.skill-item > div:first-child {
    margin-bottom: 0.5rem;
    width: 100%;
}

.skill-item span {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.875rem;
    text-align: left;
    display: block;
    width: 100%;
}

.skill-bar {
    width: 100%;
    height: 0.75rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    display: block;
    min-height: 0.75rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--accent), #3b82f6);
    border-radius: 9999px;
    width: 0%;
    transition: width 1.5s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    min-height: 0.75rem;
    z-index: 1;
}

/* Projects */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.project-card {
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    flex: 0 0 auto;
}

.project-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(6,182,212,0.1);
    color: var(--accent);
    border-radius: 0.25rem;
    margin: 0.25rem 0.25rem 0 0;
}

/* Filter buttons */
.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--secondary);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: rgba(6,182,212,0.1);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(6,182,212,0.2);
    transform: scale(1.05);
}

/* Achievements and certifications */
.achievement-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.achievement-link:hover {
    color: #0891b2;
    text-decoration: underline;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 80rem;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-left-color: #0891b2;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 0.75rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-details span {
    color: var(--secondary);
    font-size: 0.95rem;
}

.contact-additional {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: 1rem;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form-card {
    padding: 2rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form-card .btn {
    margin-top: auto;
}

/* Form improvements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
    transform: translateY(-1px);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Desktop layout */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
        align-items: start;
    }
    
    .contact-info {
        gap: 2.5rem;
    }
    
    .contact-cards {
        gap: 1.25rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .contact-additional {
        margin-top: 1rem;
    }
    
    .contact-form-card {
        min-height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: 5rem;
        max-width: 90rem;
    }
    
    .contact-info {
        gap: 3rem;
    }
    
    .contact-cards {
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .contact-form-card {
        min-height: 650px;
        padding: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .contact-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 6rem;
        max-width: 95rem;
    }
    
    .contact-form-card {
        min-height: 700px;
        padding: 3rem;
    }
}

/* SVG Icons Styling */
svg {
    transition: all 0.3s ease;
}

/* Header social icons */
nav a svg {
    color: var(--secondary);
    stroke: currentColor;
}

nav a:hover svg {
    color: var(--accent);
    stroke: currentColor;
    transform: scale(1.1);
}

/* Footer social icons */
footer a svg {
    color: white;
    stroke: currentColor;
}

footer a:hover svg {
    color: var(--accent);
    stroke: currentColor;
    transform: scale(1.1);
}

/* Contact section icons */
.card h4 svg {
    color: var(--accent);
    stroke: currentColor;
}

/* Skills section icons */
.skills-grid svg {
    color: var(--accent);
    stroke: currentColor;
}

/* Button icons */
.btn svg {
    color: inherit;
    stroke: currentColor;
}

/* Mobile menu button */
.mobile-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

/* Tablet and Desktop Responsive Design */
@media (min-width: 768px) {
    .nav-links { 
        display: flex;
    }
    
    .nav-social {
        display: flex;
    }
    
    .mobile-btn { 
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .hero-content { 
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        max-width: 80rem;
        margin: 0 auto;
        width: 100%;
        align-items: center;
        justify-items: center;
        text-align: center;
    }
    
    .hero-text { 
        text-align: left;
        order: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    .hero-image {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-image img {
        width: 18rem;
        height: 18rem;
    }
    
    .hero-name {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-college {
        font-size: 1.25rem;
    }
    
    .hero-degree {
        font-size: 1.125rem;
    }
    
    /* Stats grid handled by .hero-stats class */
    
    .skills-grid { 
        grid-template-columns: repeat(2, 1fr);
        max-width: 65rem;
        gap: 2rem;
    }
    
    .skills-grid .card {
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .projects-grid { 
        justify-content: center;
        flex-direction: row;
        gap: 2rem;
        max-width: 80rem;
    }
}

@media (min-width: 1024px) {
    .skills-grid { 
        grid-template-columns: repeat(4, 1fr);
        max-width: 85rem;
        gap: 2.5rem;
    }
    
    .skills-grid .card {
        max-width: 320px;
        padding: 1.5rem;
    }
    
    .projects-grid { 
        justify-content: center;
        gap: 2.5rem;
        max-width: 90rem;
    }
    
    .hero-content {
        gap: 4rem;
        max-width: 90rem;
        margin: 0 auto;
        justify-items: center;
        align-items: center;
    }
    
    .hero-image img {
        width: 20rem;
        height: 20rem;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-college {
        font-size: 1.375rem;
    }
    
    .hero-degree {
        font-size: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .skills-grid {
        max-width: 90rem;
        gap: 3rem;
    }
    
    .projects-grid {
        max-width: 95rem;
        gap: 3rem;
    }
    
    .hero-content {
        gap: 5rem;
        max-width: 95rem;
        margin: 0 auto;
        justify-items: center;
        align-items: center;
    }
    
    .hero-name {
        font-size: 3.5rem;
    }
}

/* Animations */
.animate { animation: fadeIn 0.8s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}