:root {
    /* Colors */
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241; 
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --container: 1200px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Responsive Breakpoints */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary);
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-align: center;
    white-space: nowrap;
    min-width: 140px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 140px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 140px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    z-index: 1002;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-text img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-name {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
}

.logo-name span {
    color: var(--primary);
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-links br {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary); 
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-hire {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-hire:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
    z-index: 1002;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
    display: block;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    flex-direction: column;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
    text-align: center;
    display: block;
    font-size: 1rem;
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding-left: 30px;
}

.mobile-hire-btn {
    display: none;
    margin-top: 20px;
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-hire-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== HERO SECTION ========== */
.hero {
    padding-top: 160px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.1;
}

.hero-description {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
    white-space: nowrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1/1;
    max-width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-card {
    position: absolute;
    background: rgb(0, 0, 0);
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    white-space: nowrap;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

.floating-card span {
    font-weight: 500;
}

.card-1 {
    top: 20px;
    left: -10px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.card-3 {
    bottom: 20px;
    left: -10px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: auto;
    width: 100%;
    aspect-ratio: 3/4;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.personal-info {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    flex: 1;
}

.info-label {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}

.info-value {
    color: var(--gray);
    word-break: break-word;
}

.social-profiles {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========== PROJECTS SECTION ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light);
    flex-shrink: 0;
}

.project-category {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.project-links a:hover {
    color: var(--primary);
}

.project-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.project-content p {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    background: var(--gray-light);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

.project-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.projects-cta {
    text-align: center;
}

/* ========== SKILLS SECTION ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-info span:first-child {
    font-weight: 500;
    color: var(--dark);
}

.skill-info span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

/* ========== GALLERY SECTION ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    position: relative;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
}

.gallery-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-description {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-text p {
    color: var(--gray);
    word-break: break-word;
}

.contact-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-logo-name {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.3rem;
    color: black
}

.footer-logo-name span {
    color: var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 10px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-newsletter h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-newsletter p {
    color: var(--gray-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    background: white;
    color: var(--dark);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

/* Tablets and Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-container,
    .about-grid,
    .contact-grid {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .image-wrapper {
        aspect-ratio: 4/5;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .btn-hire {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* Small Tablets and Large Phones (576px - 767px) */
@media (max-width: 767px) {
    /* Hide desktop nav elements */
    .nav-links,
    .btn-hire {
        display: none !important;
    }
    
    /* Show hamburger menu */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Show mobile menu */
    .mobile-menu {
        display: flex;
    }
    
    /* Mobile hire button */
    .mobile-hire-btn {
        display: block;
    }
    
    /* General mobile styles */
    .hero {
        padding-top: 140px !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .image-wrapper {
        aspect-ratio: 1/1;
        max-width: 500px;
        margin: 0 auto;
        display: none;
    }
    
    .floating-card {
        display: none; /* Hide floating cards on mobile */
    }
    
    .info-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Mobile navbar fixes */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text {
        width: 35px;
        height: 35px;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .mobile-menu {
        top: 70px;
    }
}

/* Small Phones (480px - 575px) */
@media (max-width: 575px) {
    .hero {
        padding-top: 120px !important;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-width: auto;
    }
    
    /* Mobile menu adjustments for very small screens */
    .mobile-menu {
        top: 64px;
        padding: 15px;
        gap: 5px;
    }
    
    .mobile-menu .nav-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .mobile-hire-btn {
        padding: 12px 20px;
        margin: 15px 0 0 0;
        font-size: 0.95rem;
    }
    
    /* Smaller logo for very small screens */
    .logo-name {
        font-size: 1rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: 120px;
    }
}

/* Extra Small Phones (Below 480px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .project-links {
        align-self: flex-end;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Hide hero image on very small screens if needed */
    .hero-image {
        display: block; /* Keep it visible by default */
    }
    
    .image-wrapper {
        aspect-ratio: 3/4;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding-top: 100px !important;
        min-height: auto;
    }
    
    .mobile-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .mobile-menu .nav-link {
        padding: 10px 20px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Add styles for high DPI screens if needed */
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .mobile-menu,
    .back-to-top,
    .footer-social,
    .newsletter-form {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    section {
        padding: 40px 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #f9fafb;
        --light: #1f2937;
        --gray-light: #374151;
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.95);
        border-bottom-color: #374151;
    }
    
    .mobile-menu {
        background: #1f2937;
    }
    
    .nav-link {
        color: #f9fafb;
    }
    
    .logo-name {
        color: #f9fafb;
    }
    
    body {
        background: #111827;
        color: #f9fafb;
    }
    
    .hero {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }
    
    .personal-info,
    .project-card,
    .skill-category,
    .stat-card,
    .contact-form {
        background: #1f2937;
        border: 1px solid #374151;
    }
    
    .form-group input,
    .form-group textarea {
        background: #111827;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .newsletter-form input {
        background: #111827;
        color: #f9fafb;
    }
}

