/* Responsive Design Styles */

/* Portfolio Page Styles */
@media (max-width: 1200px) {
    .portfolio-container {
        padding: 1rem;
    }
    
    .portfolio-grid {
        margin-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    .portfolio-item {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .portfolio-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    
    .portfolio-grid {
        border-right: none;
        margin-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .portfolio-item {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .portfolio-item img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        padding: 0.5rem;
    }
    
    .portfolio-item {
        margin: 1rem 0;
        min-height: auto;
    }
    
    .portfolio-description {
        padding: 1rem;
    }
    
    .back-button {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        padding: 0.5rem;
    }
    
    .portfolio-item {
        margin: 0.5rem 0;
    }
    
    .portfolio-content {
        padding: 0.75rem;
    }
    
    .portfolio-item .content {
        padding: 0.75rem;
    }
}

/* Contact Page Styles */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .profile-section {
        text-align: center;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 992px) {
    .contact-container {
        padding: 1.5rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-control {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-control {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0.5rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .form-control {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .profile-top-box {
        margin: 1rem 0 2rem;
    }
}

/* Base Responsive Styles */
@media (max-width: 1200px) {
    .profile-section {
        padding: 2rem 1rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 992px) {
    .profile-section {
        padding: 1.5rem 1rem;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .profile-info h2 {
        font-size: 2.2rem;
    }
    
    .profile-info p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    nav a {
        display: block;
        text-align: center;
        padding: 0.8rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.2rem;
    }
    
    .profile-info h2 {
        font-size: 2rem;
    }
    
    .profile-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.5rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }
    
    .profile-info h2 {
        font-size: 1.8rem;
    }
    
    .profile-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Animations */
.hero-content {
    animation: slideIn 0.8s ease forwards;
}

.nav-links {
    animation: fadeIn 0.4s ease forwards;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .profile-image img {
        transition: none;
    }
    
    nav a {
        padding: 0.8rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Index Page Styles */

/* Mobile Navigation */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-content .content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin: 2rem auto;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
        object-fit: cover;
    }

    .text-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .social-icon {
        font-size: 1.5rem;
    }
}

/* Tablet Navigation */
@media (max-width: 992px) {
    .hero-content .content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin: 2rem auto;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
        object-fit: cover;
    }

    .text-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Desktop Navigation */
@media (min-width: 993px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .search-bar {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .search-bar input {
        width: 200px;
        padding: 0.5rem;
        border-radius: 20px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
    }

    .search-bar button {
        background: none;
        border: none;
        color: #ffd700;
        cursor: pointer;
        padding: 0.5rem;
    }
}

/* Search Bar Responsive */
@media (max-width: 768px) {
    .search-bar {
        display: none;
    }
}

/* Stars Container Responsive */
@media (max-width: 768px) {
    .stars-container {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-links a {
        padding: 1rem;
    }

    .social-icon {
        font-size: 2rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Animations */
.hero-content {
    animation: slideIn 0.8s ease forwards;
}

.nav-links {
    animation: fadeIn 0.4s ease forwards;
}

/* Base Responsive Styles */
@media (max-width: 1200px) {
    .profile-section {
        padding: 2rem 1rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
}

/* Tablet and Medium Screens */
@media (max-width: 992px) {
    .profile-section {
        padding: 1.5rem 1rem;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .profile-info h2 {
        font-size: 2.2rem;
    }
    
    .profile-info p {
        font-size: 1.1rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    nav a {
        display: block;
        text-align: center;
        padding: 0.8rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.2rem;
    }
    
    .profile-info h2 {
        font-size: 2rem;
    }
    
    .profile-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    nav {
        padding: 0.5rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }
    
    .profile-info h2 {
        font-size: 1.8rem;
    }
    
    .profile-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Animations */
.profile-section {
    animation: slideIn 0.6s ease forwards;
}

nav {
    animation: fadeIn 0.4s ease forwards;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .profile-image img {
        transition: none;
    }
    
    nav a {
        padding: 0.8rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
    }
}
